Re: automatic wireless powersave

Jesse Guardiani <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Organization WingNET
Message-ID <[email protected]>
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

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.