Re: Trying to understand new wakeup events architecture

Daniel Drake
2011-01-13T15:06:28Z

On Wed, 2011-01-12 at 21:02 +0100, Rafael J. Wysocki wrote:
> > How do you feel about us using power_kobj to create
> > /sys/power/wakeup_source from inside our OLPC code?
> > This would include a textual representation of the last wakeup source.
> >
> > Alternatively we could put it as a sysfs attribute of our own platform device.
>
> I'm basically fine with /sys/power/source as long as its contents are generally
> suitable. What exactly do you want to show up in that file?

Do you mean /sys/power/source or /sys/power/wakeup_source? I prefer the
latter as the first one sounds like "power source" (AC, battery,
solar, ...)

As for contents, it will read back a string. One of:

rtc alarm
power button
lid
key press
battery
battery state changed
battery error
ebook
wlan packet
ac power
battery critical
gp timer
hda
usb
unknown

Thanks,
Daniel