Re: Trying to understand new wakeup events architecture

Daniel Drake
2011-01-12T15:01:15Z

Hi Rafael,

On 16 December 2010 14:39, Daniel Drake <dsd@laptop.org> wrote:
> On 15 December 2010 22:33, Rafael J. Wysocki <rjw@sisk.pl> wrote:
>> I guess it's sufficient to read the article at http://lwn.net/Articles/416690/
>> (or the PDF linked from there is that's not enough :-)).
>
> Thanks, that helps a lot.
>
>> I don't really think it solves your problem right now, because it's only a
>> high-level framework and it's missing some mechanics for this purpose.
>
> OK, so we'll push for a sysfs node that can be used by userspace to
> determine the wakeup source.

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.

Thanks,
Daniel