Subject: Re: acpi functional porting
To: None <tgen@netphreax.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 02/20/2007 21:22:29
On Tue, 20 Feb 2007 17:09:41 +0000
"Thomas E. Spanjaard" <tgen@netphreax.net> wrote:
> Alexander V. Butenko wrote:
> > Sure, NetBSD already has some feature implemented. But the ones
> > that i wrote in my mail it doesnt have, as i see. At least acpi
> > poweroff,acpi hardware monitoring and dock station detection.
>
> ACPI powerdown works, ACPI suspend (S3) works,
...
> This all on my ThinkPad R40, running 3.99.21.
>
When you resume, do the USB ports work? Do you have to switch to text
consoles to preserve X?
For reference, here is my /etc/powerd/apm/lid_switch script:
#!/bin/sh
logger "$0: event $2 on $1"
sleep 1;sync
case "$2" in
pressed)
/etc/powerd/scripts/suspend
sysctl -w machdep.sleep_state=3
/etc/powerd/scripts/resume
exit 0
;;
released)
echo lid release >/dev/console
exit 0
;;
*)
logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
exit 1
;;
esac
--Steve Bellovin, http://www.cs.columbia.edu/~smb