You are not logged in.
Hallo,
I am trying to configure some battery saving mode on my laptop with Laptop-mode tools. I have a problem, that is not connected to it though.
When I am on full battery, everything seems fine. I am using GNOME, I check the status of the battery from the UI there. I get something like 95% left, 2 and a half hours hours left. That seems fine. Then I keep checking it every 5 minutes the next 50-70 minutes. The battery gets empty normally at first.
When it hits around 40%, the percentage drops immediately to 3-4 % and I get the message: Critical battery, please plug in AC supply. Just like that, from nothing.
I have enabled battery polling in laptop mode tools, thinking that the charged state is not read properly or smth like taht, but that didn't fix it. Does anybody have any idea what might be the problem here?
Last edited by Mladia (2017-02-14 14:07:15)
Offline
LMT is notoriously unreliable/useless.
Offline
What happens if you do the following?
cat /sys/class/power_supply/BAT0/capacity
This should tell you battery remaining as a percentage if I recall correctly. To build a CLI battery monitor in one line...
watch -n60 cat /sys/class/power_supply/BAT0/capacity
The above query's your battery state once per minute. If the erratic behavior described in your original post is the same as shown from my CLI method, then I would suspect that your battery may be going bad.
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
Yep, the battery is not working right.
Thanks! Nice that one can read the battery in this manner, I have never seen also the watch command, it's pretty neat.
Offline
Your welcome. And watch is great for repeating timed tasks, such as this battery monitor. But you can also use watch to verify that files are being copied over to a directory correctly, by watching the size of your directory grow/shrink, among other things. Check the watch man page out.
Last edited by JohnBobSmith (2017-02-14 19:57:34)
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline