[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561660: sleepd: Only one battery is checked with --battery



also sprach Thomas Arendsen Hein <thomas@intevation.de> [2017-01-16 18:30 +1100]:
> > I think it'd be best to compare against the average of the load
> > level of all available batteries.
> 
> Sounds good enough.
> 
> One could argue that only the battery with the highest level
> should be checked, but this might assume certain features in the
> hardware that can't be guaranteed, so above will be safe.

acpitool or upower should expose combined data.

> If you change something here, I will no longer be able to easily
> test it, because I no longer have an external battery for my
> laptop.

I could, but I am not ready to touch the code.

-- 
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
a common mistake that people make
when trying to design something completely foolproof
was to underestimate the ingenuity of complete fools.
                                 -- douglas adams, "mostly harmless"

Attachment: digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Reply to: