From owner-freebsd-mobile@FreeBSD.ORG Mon Apr 14 08:18:04 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390071065673 for ; Mon, 14 Apr 2008 08:18:04 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from slimak.dkm.cz (smtp.dkm.cz [62.24.64.34]) by mx1.freebsd.org (Postfix) with SMTP id 9F6E78FC15 for ; Mon, 14 Apr 2008 08:18:03 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: (qmail 44929 invoked by uid 0); 14 Apr 2008 08:18:01 -0000 Received: from r5j117.net.upc.cz (HELO ?192.168.11.3?) (86.49.9.117) by smtp.dkm.cz with SMTP; 14 Apr 2008 08:18:00 -0000 Message-ID: <48031338.5050801@users.sf.net> Date: Mon, 14 Apr 2008 10:18:00 +0200 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.13) Gecko/20080402 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Ian Smith References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Lars Engels , freebsd-mobile@freebsd.org Subject: Re: battery monitor with KDE 64 bit X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 08:18:04 -0000 Ian Smith wrote: > On Mon, 7 Apr 2008, martinko wrote: > > Lars Engels wrote: > > > Quoting martinko : > > >> Hi Lars, > > >> > > >> sysutils/nbosd looks very nice and rather useful, thanks! :-) > > >> > > >> However, I can think of the following: > > >> > > >> There are 2 important/interesting information missing: > > >> - remaining run-time in hours:minutes when running on battery > > >> - CPU temperature (especially on laptops) > > > > > > Good idea, it should be no problem to use sysctl to get those values. > > > > > >> Also, it might be quite useful to render battery related info in red > > >> colour once battery charge drops below some (configurable) limit when > > >> not running on AC power. > > >> > > >> The last but not least important is this -- nbosd shows you info on > > >> demand only. I find that most often I forget about my battery running > > >> flat and thus nbosd wouldn't help. Any idea how to deal with it ? > > > > > > nbosd was designed to show the value on demand. I have a keyboard > > > shortcut which shows me the OSD whenever I need it. > > > But the shortcut doesn't work in every case e.g. when playing > > > fullscreen games. So I taught nbosd to work together with devd and now > > > nbosd has an option to run as a daemon and only shows up when the > > > battery percentage falls below a user-defined value. > > > It still has some rough corners and the code needs to be cleaned up > > > that's why I haven't committed the new version. > > > I hope that my (very limited atm :-( ) time allows me get it finished, > > > soon. > > > > > > > Hi Lars, > > > > Remaining run-time (hours:minutes) could be next to the percentage value. > > I'm not sure about the temperature, though. > > > > I've set up a keyboard shotcut too (in WMaker) and it works great. > > However, sometimes I forget I'm running on battery and only find out > > when my laptop dies abruptly. That's why I'm trying to figure out how > > best to prevent such situations. > > > > And what do you say about my suggestion to render battery life text and > > graphics in red when running on DC and too low ? Would it be possible ? > > You may also like to have a look at sysutils/asapm which I've been using > for years to good effect in KDE. Despite the name, and the initial > blurb in pkg_descr, it works fine (better, actually) with ACPI, as > detailed in the manual. It's also fully configurable regarding display > colours etc, and if the remaining runtime isn't directly available, it > can monitor state of charge over time to provide pretty good estimates, > along with configurable setpoints for 'warning' and 'alarm' colours. I > can't say whether it works on amd64 though .. > > On later (i386) machines I tend to use gkrellm which includes CPU temp, > speed and much more, but again I don't know if it works with amd64. > > hth, Ian > > Ian, thanks! :-) I've been using wmbsdbatt but it isn't configurable at all and often I just didn't notice my battery gone flat. Now I've switched to asapm which provides better visual attention (battery turning red) and more importantly I could configure it to produce notifications via notify-send and xmessage, so it's unlikely I'll miss my battery running flat. :-)) Cheers, Martin