2013/11/25 Chen Wayne <chunweic...@outlook.com>

> Sounds reasonable, I will try to build another implementation on top of
> upower.
>
> Thanks for your hint.
>
> - wayne
>
>
You can have a look at lxqt-powermanagement. It contains the application
lxqt-battery which monitors the battery and shows status in the system
tray. It's upower based.

br. Chr.


> ------------------------------
> Date: Mon, 25 Nov 2013 16:58:16 +0800
> Subject: Re: [Lxde-list] New power plugin for lxqt-panel for showing
> battery information
> From: pcman...@gmail.com
> To: chunweic...@outlook.com; Lxde-list@lists.sourceforge.net;
> razor...@googlegroups.com
>
>
> Thanks for the contribution.
> Maybe you can consider using upower instead.
> Directly reading from /sys is definitely faster.
> However, some buggy hardware drivers either reported wrong values or use
> different formats for the output.
> We encountered this problems long time ago while developing a battery
> plugin for old lxde gtk+ version.
> Internally, upower may did many workarounds for them and report correct
> values to us.
> In addition, letting upower monitor for the changes in an event-driven
> manner is easier than polling it ourselves.
> What do you think?
>
> On Mon, Nov 25, 2013 at 2:00 PM, Chen Wayne <chunweic...@outlook.com>wrote:
>
>  Hello List,
>
> I have implemented a new plugin for showing battery icon and remained
> power percentage on lxqt-panel.
>
> Code is put here:
> https://github.com/waynecw/lxqt-panel/tree/master/plugin-power
>
> This plugin periodically checks /sys directory to grab the latest battery
> information, and shows a corresponding icon and percentage on the right
> side of lxqt-panel. The current support icon themes are "gnome", "oxygen",
> and "ubuntu-mono-dark/light".
>
> Please feel free to play it, any comment is very welcome.
>
> I hope this plugin can be integrated into lxqt-panel, and if no problem, I
> will pull request to the main repository.
>
> Thanks,
> Wayne
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxde-list mailing list
> Lxde-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxde-list
>
>
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxde-list mailing list
> Lxde-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxde-list
>
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to