#4321 NORM Never A: kernel needs to export reason for wakeup

Zarro Boogs per Child bugtracker at laptop.org
Thu Oct 18 21:17:11 EDT 2007


#4321: kernel needs to export reason for wakeup
--------------------------+-------------------------------------------------
  Reporter:  dilinger     |       Owner:  dilinger      
      Type:  enhancement  |      Status:  new           
  Priority:  normal       |   Milestone:  Never Assigned
 Component:  kernel       |     Version:                
Resolution:               |    Keywords:                
  Verified:  0            |  
--------------------------+-------------------------------------------------

Comment(by dilinger):

 Ok, /sys/power/wakeup-source will contain a string representing what
 caused us to wake up.  One thing we need to watch out for is races; for
 example, this scenario:

  - machine wakes up from touchpad event
  - SCI handler sets wakeup-source to "touchpad"
  - before OHM gets scheduled, we get another SCI
  - SCI handler sets wakeup-source to "1% Battery Change"
  - OHM is scheduled to run
  - OHM checks /sys//power/wakeup-source, sees a battery change event, and
 puts the machine (incorrectly) back to sleep
  - user gets angry and cries

-- 
Ticket URL: <https://dev.laptop.org/ticket/4321#comment:1>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list