My HP-745 G2 laptop is fully charged, I then unplug it and close the lid.
When I next turn it on (a day or two later) by opening the lid the battery is fully drained.
uname -a
Linux HP-745-G2 4.10.14-041014-generic #201705031501 SMP Wed May 3 19:03:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
grep HandleLid /etc/systemd/logind.conf
HandleLidSwitch=hibernate
#HandleLidSwitchDocked=ignore
There are various similar questions and suggestions on how to prevent this (although they don't seem to work for me).
However, what I am interested in is a way of monitoring the battery usage in some way e.g.
- did it hibernate or not?
- if not, what has prevented it?
- which processes are draining the most battery
etc, etc
Is there anything like batterystats in android that can be analysed via the command line or an application?
/var/log/syslog
file but I haven't researched this one myself as I only suspend twice daily with power plugged in 24/7. – WinEunuuchs2Unix Sep 08 '17 at 02:57