From owner-freebsd-questions Sat Dec 7 21:56: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 912F737B401 for ; Sat, 7 Dec 2002 21:56:04 -0800 (PST) Received: from web41312.mail.yahoo.com (web41312.mail.yahoo.com [66.218.93.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 3FC2243EBE for ; Sat, 7 Dec 2002 21:56:04 -0800 (PST) (envelope-from wayneclubin@yahoo.com) Message-ID: <20021208055604.90440.qmail@web41312.mail.yahoo.com> Received: from [64.131.161.101] by web41312.mail.yahoo.com via HTTP; Sat, 07 Dec 2002 21:56:04 PST Date: Sat, 7 Dec 2002 21:56:04 -0800 (PST) From: Wayne Lubin Subject: apm To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: 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