Power Mangement Interfaces

Zhang Rui rui.zhang at intel.com
Mon Apr 2 06:07:01 EDT 2007


> > The Geode (and most other platforms, I presume) allows us to configure
> > which wakeup events are actually allowed to wake the system.  Currently,
> > we are permanently enabling the power button as a wakeup source, but I
> > want to eventually be able to pick and chose from any of our main wakeup
> > sources:
> > 
> > * Power button
> > * RTC Alarm
> > * LID event (GPIO26)
> > * wake event from the EC (GPIO27) 
> 
> Yes ...
> 
> 
> > Of the four, the only device that can actually be configured to do anything
> > is the RTC alarm, and for that we would use the /sys/devices/../power/wakeup
> > infrastructure, but we would still need something in place to allow the 
> > software to tell the hardware to enable the RTC event to wake the system.
> 
> As in "echo enabled > /sys/devices/.../power/wakeup" (to get the default),
> or "echo disabled > ..." to disable it.  For PCs, with ACPI, that involves
> two patches I just posted to the RTC list (and CC'd Len on), and replacing
> the ancient/legacy/ACPI-only /proc/acpi/alarm interface.
> 
That's great. :)
It would be better if you added linux-acpi at vger.kernel.org to the cc
list.

Thanks,
Rui



More information about the Devel mailing list