Hi, Bryan.
> Does anyone know if its possible for FreeBSD to execute a halt from
> the powerswitch?
>
> >From reading the apmd doco, this is what apmd is suppose to do, handle
> events from the APM bios and execute according to apmd.conf
>
> If an ATX powersupply/motherboard is setup to suspend on power button,
> (i.e hold down for 5 seconds to turn off)
> can FreeBSD pick up this button press and do clean shutdown?
> I tried running apmd -dv, but I cant seem to see any events from the power
> button pressing.
Apmd was developed for you :-)
You can reject suspend request on power button and execute shutdown -p
instead.
For example, My box was setup to suspend on power button and issues
USERSUSPENDREQ, so my apmd.conf is like this;
apm_event USERSUSPENDREQ {
reject;
exec "shutdown -p now";
}
Have fun!
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message