Commit graph

7 commits

Author SHA1 Message Date
Jeremy Sowden f802c222bb wmbattery: move labels to the beginning of the line.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Jeremy Sowden 8cefc3925d wmbattery: fix format-specifier.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-10-28 07:25:39 +00:00
Doug Torrance 13d3321f14 wmbattery: Fix memory leak.
Patch by David Johnson <davijoh3@cisco.com> to fix Debian bug #816872 [1]:

> wmbattery appears to have a memory leak.  When invoked with "wmbattery -w 2"
> it is leaking approx 350KB/minute on my system.  Eventually it runs out of
> memory and is killed by kernel.

...

> I've concluded libupower-glib is just super leaky.  The below patch
> moves the upower API calls into a child process that doesn't exist for
> long to keep the leaks out of the main process.

> Tested against stretch versions, looks good.

[1] https://bugs.debian.org/816872
2017-11-06 16:36:06 +00:00
Christoph Fritz 9c6faa3682 wmbattery: upower - don't exit after suspend/hibernation wakup
Immediately after suspend/hibernation wakup cycle, up_client_get_devices()
can fail:

 libupower-glib-WARNING **: up_client_get_devices failed: Timeout was reached

Since we do not interpret the UPower signals, just don't exit wmbattery after
first up_client_get_devices() failure.
2015-05-14 11:44:03 +01:00
Ludwig Nussel 9db8262d65 wmbattery: update upower support
* reuse dbus connection
* set delay to actually refresh values
2015-01-17 15:02:06 +00:00
Doug Torrance 539ef9f52c wmbattery: Consistent formatting in source.
Modified source files to minimize warnings from checkpatch.pl in Window Maker
source tree.
2014-10-05 19:18:50 +01:00
Doug Torrance 51380525e7 wmbattery: Add to repository.
Version 2.44.  Source obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmbattery/wmbattery_2.44.tar.gz
2014-09-21 10:11:55 +01:00