#4394 NORM First D: EC needs to implement wakeup source command

Zarro Boogs per Child bugtracker at laptop.org
Mon Oct 22 17:53:23 EDT 2007


#4394: EC needs to implement wakeup source command
---------------------------------+------------------------------------------
 Reporter:  dilinger             |       Owner:  David.Lin             
     Type:  defect               |      Status:  new                   
 Priority:  normal               |   Milestone:  First Deployment, V1.0
Component:  embedded controller  |     Version:                        
 Keywords:                       |    Verified:  0                     
---------------------------------+------------------------------------------
 Currently when we wake up from an SCI, generally we get a 0x1.  This could
 be caused by a keyboard press, a gamekey press, inserting/removing the AC
 adapter, hitting the touchpad, etc.  Userspace (OHM, etc) may want more
 information about the wakeup source.  One way to do this is to implement a
 0x1-specific wakeup source command; however, what makes even more sense is
 to have a generic wakeup-source EC command.  So, we get an SCI (whether
 it's battery, 0x1, wlan, etc), and the kernel immediately runs the wakeup-
 source EC cmd to find out what woke us up.  We only need a buffer of 1
 event (though probably >= 2 bytes wide if possible), as long as userspace
 isn't racy.

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



More information about the Bugs mailing list