device model wakeup

Johannes Berg johannes at sipsolutions.net
Thu Apr 12 23:44:01 PDT 2007


On Thu, 2007-04-12 at 16:07 -0400, David Zeuthen wrote:

> I'm all for supporting this; if I understand correctly this is
> replacing /proc/acpi/wakeup functionality, yes?

Yes, it was talked about, I don't know if it's going to happen. I for
one would use it in the power/iBook code.

> So I think if this is the case we just introduce a new capability
> "wakeup" along with an interface with two methods
> 
>  bool org.freedesktop.Hal.Device.Wakeup.GetWakeUp()
>  void org.freedesktop.Hal.Device.Wakeup.SetWakeUp(bool should_wakeup)
> 
> and then gpm, kpowersave and other policy agents can present a nice UI
> around that for common devices like keyboards / mice etc.? Would that
> work?

Yeah, sounds good, as long as the "wakeup" capability is present if and
only if the power/wakeup file in sysfs contains "enabled\n" or "disabled
\n" (rather than "\n").

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/hal/attachments/20070413/79dbed89/attachment.pgp


More information about the hal mailing list