#10398 NORM 10.1.3: can't inhibit lid wakeups on XO-1

Zarro Boogs per Child bugtracker at laptop.org
Fri Oct 15 15:30:19 EDT 2010

#10398: can't inhibit lid wakeups on XO-1
 Reporter:  pgf     |                 Owner:  pgf          
     Type:  defect  |                Status:  new          
 Priority:  normal  |             Milestone:  10.1.3       
Component:  kernel  |               Version:  not specified
 Keywords:          |           Next_action:  never set    
 Verified:  0       |   Deployment_affected:               
Blockedby:          |              Blocking:               
 there are cases in which it would be desirable for opening the laptop to
 not wake it from suspend.

 there is a sysfs node (/sys/devices/platform/lid/power/wakeup) which
 should allow us to disable such wakeups.  and it works: once.  after
 writing "disabled", the next lid open will not wake the laptop.
 unfortunately, _all_ lid reporting is disabled as well, and can't be re-
 enabled by writing "enabled" to that node.

 looking at olpc-pm.c, it seems that the event status bits for the lid edge
 detection aren't cleared except in the actual wakeup case.  the attached
 tentative (untested) patch causes them to be cleared

Ticket URL: <http://dev.laptop.org/ticket/10398>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list