From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: ACPI very nearly working on Thinkpad 240x Date: Sun, 2 Mar 2003 19:33:27 +0000 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20030302193327.GA29280@srcf.ucam.org> References: <20030302184737.GA28806@srcf.ucam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20030302184737.GA28806-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org > 2) S3 suspends and resumes. Ok. I've now got the following in my acpid default.sh: case "$1" in button*) case "$2" in power) echo -n 4 >/proc/acpi/sleep ;; SBTN) rmmod i8042 MYTERM=`fgconsole` chvt 12 echo -n 3 >/proc/acpi/sleep sleep 5 modprobe i8042 chvt $MYTERM ;; The i8042 stuff results in working keyboard and mouse, the chvts cause X to reinitialise the screen and gives me my display back. My text consoles are unusable, though. -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf