Comment 17 for bug 44825

Revision history for this message
sudarsha (sudarsha) wrote :

I am using Ubuntu 8.10 Intrepid Ibex beta with kernel 2.6.27-7-generic on my Toshiba A100 laptop. The problem of having to close the lid twice still exist. When I close the lid for the first time after a reboot the laptop suspends correctly. When I open the lid the laptop resumes correctly. The only issue is the lid state in /proc/acpi/button/lid/LID/state is reported as:

state: closed

Since the state is reported as closed the suspend script will not suspend the laptop when I close the lid the second time. When I open the lid after closing for the second time the state is reported correctly as open. Hence the third time when I close the lid the laptop will suspend properly.

The cause of the problem is the status of the lid is not reported correctly in /proc/acpi/button/lid/LID/state when I resume the laptop by opening the lid. Is this a bug in the kernel or the acpi scripts? I can not seem to manually reset the state so I tend to believe it is something set from the kernel.