#7536 NORM 8.2.0 (: Lid open should wake from suspend, but lid close shouldn't.

Zarro Boogs per Child bugtracker at laptop.org
Wed Jul 16 17:48:34 EDT 2008


#7536: Lid open should wake from suspend, but lid close shouldn't.
--------------------------+-------------------------------------------------
 Reporter:  cjb           |         Owner:  dsaxena             
     Type:  defect        |        Status:  new                 
 Priority:  normal        |     Milestone:  8.2.0 (was Update.2)
Component:  not assigned  |       Version:  not specified       
 Keywords:                |   Next_action:  never set           
 Verified:  0             |     Blockedby:                      
 Blocking:                |  
--------------------------+-------------------------------------------------
 {{{
 <CosmicPenguin> cjb: I'm pretty sure that the wakeup logic obeys
 the standard GPIO logic set for that pin
 <CosmicPenguin> when you sleep, just make sure you have negative
 edge enabled and positive edge disabled, and it should wake up
 like you want
 <CosmicPenguin> cjb: make sure you correct the logic when you
 wake up, so you can get accurate lid status
 }}}

 Deepak, think you could do this?  Richard, Mitch or Jordan would be able
 to tell you which GPIO is involved.  It would save us from having to do a
 userspace check which is proving unreliable.

 Since I think we always want lid open -> wake and lid close -> not wake
 while suspended, and to see both events while awake, I don't think there's
 any need to export setting this to userspace.  Just setting the GPIOs at
 suspend time and resetting at resume time in the kernel would be fine.

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


More information about the Bugs mailing list