Date: Thu, 16 Dec 1999 10:17:16 -0000 (GMT) From: "Steve O'Hara-Smith" <steve@pooh.elsevier.nl> To: freebsd-mobile@freebsd.org Subject: Script to suspend (sort of) when you can't Message-ID: <XFMail.991216101716.steve@pooh.elsevier.nl>
next in thread | raw e-mail | index | archive | help
Hi, I would like to share this little script that works around a problem with my Compaq laptop. The problem is that I cannot suspend to disk but can suspend to RAM (the disk option is a windows file) and suspend to RAM tries to suspend to disk after one hour (bios option that won't go away). I think I am far from alone in this situation. The script will keep the system suspended to RAM (with a 10 second wakeup every 55 minutes) until the battery hits 10% or lower and then halt -p. ------------------- Cut here to destroy your monitor ----------------- #!/bin/sh while true do apm -r 3300 apm -z sleep 10 POWER=`apm -l` if [ $POWER -lt 10 ] then halt -p fi echo $POWER done ------------------------------------------------- Tell a computer to WIN and ... ... You lose ------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.991216101716.steve>