Date: Thu, 19 Jun 2003 18:06:54 -0400 From: Jesse Guardiani <jesse@wingnet.net> To: freebsd-mobile@freebsd.org Subject: Re: automatic wireless powersave Message-ID: <bctc5p$9al$1@main.gmane.org> References: <bct6gi$c4g$1@main.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1488101.6tbHRuRpEN Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Jesse Guardiani wrote: Check this out. I threw a quick little script together that does this pretty well. See attached. I call it from apmd.conf using this event stub: apm_event POWERSTATECHANGE { exec "/etc/rc.powerstatechange"; } Unfortunately, I've noticed that the POWERSTATECHANGE event is tossed three or four times each time I unplug or plug in the power cord. This isn't really a big deal to me, but it would be nice if I could execute a script when the kernel changes my system profile to economy, rather than on each POWERSTATECHANGE event. Does anyone know if that is possible? Thanks. -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net --nextPart1488101.6tbHRuRpEN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bctc5p$9al$1>