public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* ACPI very nearly working on Thinkpad 240x
@ 2003-03-02 18:47 Matthew Garrett
       [not found] ` <20030302184737.GA28806-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2003-03-02 18:47 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Having upgraded my BIOS to the latest available from IBM, I've very 
nearly got working ACPI.

1) S1 usually works correctly, but the backlight doesn't get switched 
off. Is there any trivial way of dealing with this?

2) S3 suspends and resumes. On resume, the backlight comes back on the
machine is responsive from the network. The keyboard and mouse don't
work, though - if I use modular input drivers, a rmmod i8042 && modprobe
i8042 brings things back to life. Switching on the Toshiba keyboard 
kicking code doesn't result in any change in behaviour. The symptoms are 
that no input results in an increase in interrupts until I reload the 
module. 

The other problem is that the screen doesn't come back. The backlight
comes on but no text appears. This is the case with both vesafb and 
vgacon - sometimes (but not predictably) a small amount of text is 
printed, but it looks like it's left over from lilo or something. The 
screen seems to be in 640x480 text mode, rather than the 800x600 it 
should be in when I'm using the VESA driver. Killing X and restarting it 
results in X starting up, but I can't switch back to a text console 
(they're just garbage). Passing acpi_sleep=s3_bios or s3_mode doesn't 
seem to make any difference.

3) S4 with SWSUSP sometimes works, but usually I hit the BUG() in 
ide-disk that others have reported. Is there any understanding behind 
why that one's happening?

It certainly seems a lot better than things have been before now.
-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ACPI very nearly working on Thinkpad 240x
       [not found] ` <20030302184737.GA28806-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
@ 2003-03-02 19:33   ` Matthew Garrett
  2003-03-07 11:02   ` Pavel Machek
  1 sibling, 0 replies; 5+ messages in thread
From: Matthew Garrett @ 2003-03-02 19:33 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: ACPI very nearly working on Thinkpad 240x
@ 2003-03-03 17:07 Grover, Andrew
  0 siblings, 0 replies; 5+ messages in thread
From: Grover, Andrew @ 2003-03-03 17:07 UTC (permalink / raw)
  To: Matthew Garrett, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Matthew Garrett [mailto:mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org] 

> Having upgraded my BIOS to the latest available from IBM, I've very 
> nearly got working ACPI.
> 
> 1) S1 usually works correctly, but the backlight doesn't get switched 
> off. Is there any trivial way of dealing with this?
> 
> 2) S3 suspends and resumes. On resume, the backlight comes back on the
> machine is responsive from the network. The keyboard and mouse don't
> work, though - if I use modular input drivers, a rmmod i8042 
> && modprobe
> i8042 brings things back to life. Switching on the Toshiba keyboard 
> kicking code doesn't result in any change in behaviour. The 
> symptoms are 
> that no input results in an increase in interrupts until I reload the 
> module. 

Given what I know about the state of the code, I am AMAZED you get even
this far. :) You are running into problems because your devices (mouse,
keyb, video) are not saving and restoring context properly on resume.
That code has yet to be written, although it's nice to know that
reinitializing seems to kind of work, too.

Regards -- Andy


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ACPI very nearly working on Thinkpad 240x
       [not found] ` <20030302184737.GA28806-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
  2003-03-02 19:33   ` Matthew Garrett
@ 2003-03-07 11:02   ` Pavel Machek
  1 sibling, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2003-03-07 11:02 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

> Having upgraded my BIOS to the latest available from IBM, I've very 
> nearly got working ACPI.

What kernel version?

> 1) S1 usually works correctly, but the backlight doesn't get switched 
> off. Is there any trivial way of dealing with this?

Backlight is a problem... big one.

> 2) S3 suspends and resumes. On resume, the backlight comes back on the
> machine is responsive from the network. The keyboard and mouse don't
> work, though - if I use modular input drivers, a rmmod i8042 && modprobe
> i8042 brings things back to life. 
Feel free to write suspend/resume code
for your keyboard. Given that you
already know how it works, it should
be fairly easy.
				Pavel
-- 
				Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: ACPI very nearly working on Thinkpad 240x
@ 2003-04-16  9:42 Yu, Luming
  0 siblings, 0 replies; 5+ messages in thread
From: Yu, Luming @ 2003-04-16  9:42 UTC (permalink / raw)
  To: Matthew Garrett, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Would you please collect debug message for each of below issues. 

That will help me better understand these issues, and help us to know the status of current ACPI.

Thanks,
Luming
-----Original Message-----
From: Matthew Garrett [mailto:mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org]
Sent: 2003?3?3? 2:48
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [ACPI] ACPI very nearly working on Thinkpad 240x


Having upgraded my BIOS to the latest available from IBM, I've very 
nearly got working ACPI.

1) S1 usually works correctly, but the backlight doesn't get switched 
off. Is there any trivial way of dealing with this?

2) S3 suspends and resumes. On resume, the backlight comes back on the
machine is responsive from the network. The keyboard and mouse don't
work, though - if I use modular input drivers, a rmmod i8042 && modprobe
i8042 brings things back to life. Switching on the Toshiba keyboard 
kicking code doesn't result in any change in behaviour. The symptoms are 
that no input results in an increase in interrupts until I reload the 
module. 

The other problem is that the screen doesn't come back. The backlight
comes on but no text appears. This is the case with both vesafb and 
vgacon - sometimes (but not predictably) a small amount of text is 
printed, but it looks like it's left over from lilo or something. The 
screen seems to be in 640x480 text mode, rather than the 800x600 it 
should be in when I'm using the VESA driver. Killing X and restarting it 
results in X starting up, but I can't switch back to a text console 
(they're just garbage). Passing acpi_sleep=s3_bios or s3_mode doesn't 
seem to make any difference.

3) S4 with SWSUSP sometimes works, but usually I hit the BUG() in 
ide-disk that others have reported. Is there any understanding behind 
why that one's happening?

It certainly seems a lot better than things have been before now.
-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Acpi-devel mailing list
Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-16  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-02 18:47 ACPI very nearly working on Thinkpad 240x Matthew Garrett
     [not found] ` <20030302184737.GA28806-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2003-03-02 19:33   ` Matthew Garrett
2003-03-07 11:02   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2003-03-03 17:07 Grover, Andrew
2003-04-16  9:42 Yu, Luming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox