tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: powerd on boot

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 even 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).


-- thorpej

Home | Main Index | Thread Index | Old Index