On May 15, 2008, at 10:45 AM, Christoph Egger wrote:
...catching up on old mail...
The problem, sysmon_power_daemon is NULL when powerd is not running.
So when I inject the event into sysmon (which is _before_ powerd) runs,
the event is lost.
The idea there is for sysmon to be able to do something "reasonable"
when a power switch event occurs when the daemon is not running, like
call cpu_reboot() or whatever.
Any ideas on how to fix that?
You could special-case the different kinds of switches and choose to
enqueue events for certain kinds of keys (or, rather, for keys
!stuff-that-needs-to-be-acted-on-immediately).