[Goodies-dev] [xfce4-battery-plugin][Patch] Show current power usage

Yves-Alexis Perez corsac at debian.org
Fri Nov 16 08:08:58 CET 2012


On jeu., 2012-11-15 at 09:16 +0100, David Rosca wrote:
> Hi,
> I have made a small patch that adds support for showing current power
> usage (in Watts)
> next to approximate remaining time. So in panel, it will be shown
> like:
>         
>                                     04:25 (9 W)
> 
> It is using data from libacpi.c
> (from /sys/class/power_supply/BAT{x}/power_now).
> It is working great for my laptop (Thinkpad X220) running 3.5.7
> kernel. It may however need
> some tweaking to get it working properly on every laptop.
> 
> Current power usage will only be shown when on battery (I used !acline
> check, so I hope it's correct).
> I have integrated it into remaining time box because i didn't want to
> create a new box just for this.
> 
> I'm not really sure if I can send attachements to mailing lists, so I
> will append the patch at the end
> of the mail.
> 
> Please let me know what you think about this patch.
> 
Can you please attach it to bugzilla so it doesn't get lost? However,
I'm unsure if the battery plugin is really maintained these days, so it
might be a bit hard to have it reviewed and committed…

Regards,
-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20121116/f0fe04da/attachment.pgp>


More information about the Goodies-dev mailing list