Date: Fri, 20 Jul 2012 11:13:56 +0200 From: Matthias Apitz <guru@unixarea.de> To: Erich Dollansky <erichfreebsdlist@ovitrap.com> Cc: freebsd-current@freebsd.org, Lars Engels <lars.engels@0x20.net> Subject: Re: Script to monitor battery status on X220 Message-ID: <20120720091356.GA31015@sh4-5.1blu.de> In-Reply-To: <201207201545.23915.erichfreebsdlist@ovitrap.com> References: <201207201004.59451.erichfreebsdlist@ovitrap.com> <20120720053108.GD70259@e-new.0x20.net> <201207201545.23915.erichfreebsdlist@ovitrap.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, July 20, 2012 a las 03:45:23PM +0700, Erich Dollansky escribió: > > ... > > Is it necessary to poll? Usually devd generates an event when the > > battery status and/or percentage changes. Just read the events from > > /var/run/devd.pipe. > > > this is a good idea. I did not like this solution either but did not get a better idea when I did it. I wrote and used something similar for my netbook EeePC 900; it turned out that the battery is not showing the remaining capacity in a linear way; the last 5% are 'consumed' in a few seconds, i.e. below 20% I polled every 2 seconds; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@unixarea.de> - w http://www.unixarea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120720091356.GA31015>