Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 1999 19:51:49 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        Bryan Collins <bryan@casper.spirit.net.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: more softpower/apm..
Message-ID:  <199911291051.TAA24550@tasogare.imasy.or.jp>

next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911291051.TAA24550>