[Bug 37372] Should check the status of lid switch on resume

WillDyson will.dyson at gmail.com
Thu Mar 30 18:19:00 UTC 2006


Public bug reported:

Affects: linux-source-2.6.15 (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed


Description:
On my notebook (a dell 700m), if the lid switch changes state durring
sleep, then the kernel will not notice this change of state on wakeup.
This commonly happens when the change of lid switch state is what brings
the notebook out of sleep.

Detail:

I set the notebook to sleep when the lid switch is closed, and wakeup
when it is opened (via gnome-power-manager on-battery profile). On
wakeup, /proc/acpi/button/lid/LID0/state still shows the lid as closed,
even though it is open.

I theorize that the kernel is relying on button state change events, and
that it does not recieve such events for state changes that happened
before it finishes waking up. I suggest having the kernel poll the lid
switch state on wakeup.
-- 
Should check the status of lid switch on resume
https://launchpad.net/malone/bugs/37372




More information about the kernel-bugs mailing list