tech-kern archive

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

Re: pmf(9) and Xen domU suspending?



On Thu, 03 Apr 2008 17:03:59 +0200
Jean-Yves Migeon <jean-yves.migeon%espci.fr@localhost> wrote:

> Question regarding sysmon events though: in 
> dev/sysmon/sysmon_power.c:965, the PSWITCH_TYPE_SLEEP case seems to 
> catch the event for the SLEEP, but ends in a NOOP (when comparing it to 
> other entries like RESET or POWERDOWN, which calls cpu_reboot(...) ). 
> Does that mean that the SLEEP event should be handled somewhere else?

Yes, the event will be sent to the powerd(8) daemon via a proplib(4)
dictionary with all details (try powerd -d to look at it) and it will
run the 'pressed' action in the /etc/powerd/scripts/sleep_button file.

When powerd(8) is not running, the kernel tries to do something, but
in this case as there's no current policy it just prints an informative
message.

-- 
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
        The NetBSD Project

Make your own NetBSD/x86 Live CD
http://www.netbsd.org/~xtraeme/mklivecd/


Home | Main Index | Thread Index | Old Index