Re: Trying to understand new wakeup events architecture

Alan Stern
2011-01-13T15:14:04Z

On Thu, 13 Jan 2011, Daniel Drake wrote:

> 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

Wouldn't it be better to read back a device pathname when the wakeup
source can be identified as a particular device? Whoever uses this
field should be responsible for converting it to one of those more
generic forms.

Alan Stern