Date: Sat, 7 Dec 2002 21:56:04 -0800 (PST) From: Wayne Lubin <wayneclubin@yahoo.com> To: freebsd-questions@freebsd.org Subject: apm Message-ID: <20021208055604.90440.qmail@web41312.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi, Sleep mode works when I manually do apm -z or equivalently zzz. The problem is it is not automatically invoked when the computer is idol for 20 mins. which I have set my bios for. dmesg gives: apm0: <APM BIOS> on motherboard apm: found APM BIOS v1.2, connected at v1.2 so the device is being detected. /etc/rc.conf has got the line: apmd_enable="YES" /etc/apmd.conf has got: apm_event SUSPENDREQ { exec "/etc/rc.suspend"; } apm_event USERSUSPENDREQ { exec "sync && sync && sync"; exec "sleep 1"; exec "apm -z"; } apm_event NORMRESUME, STANDBYRESUME { exec "/etc/rc.resume"; } /etc/rc.suspend looks like: if [ -r /var/run/rc.suspend.pid ]; then exit 1 fi echo $$ > /var/run/rc.suspend.pid # If you have troubles on suspending with PC-CARD modem, try this. # See also contrib/pccardq.c (Only for PAO users). # pccardq | awk -F '~' '$5 == "filled" && $4 ~ /sio/ \ # { printf("pccardc power %d 0", $1); }' | sh logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'` sync && sync && sync sleep 3 rm -f /var/run/rc.suspend.pid zzz exit 0 /etc/rc.resume looks like: if [ -r /var/run/rc.suspend.pid ]; then kill -9 `cat /var/run/rc.suspend.pid` rm -f /var/run/rc.suspend.pid echo 'rc.suspend is killed' fi # Turns on a power supply of a card in the slot inactivated. # See also contrib/pccardq.c (only for PAO users). # pccardq | awk -F '~' '$5 == "inactive" \ # { printf("pccardc power %d 1", $1); }' | sh logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'` sync && sync && sync exit 0 I think that is most of the important info. Any help? Thanks. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021208055604.90440.qmail>