I have EOS installed on a Lenovo Ideapad 330. From a full charge to a level of 40% power usage seems normal. When I finish using my computer I put it in hibernation.
When I reactivate it, after having hibernated it at a level of 40%, it shows power is down to zero.
Highly unlikely as I have hardly used this computer ever since I bought it.
How can I check that?
If it does not hibernate, the 40% is a wrong level indication, or,
if it does hibernate, then either the 40% indication is wrong or something strange happens when it reaches that level and suddenly āturbo-drainsā.
Journal shows problems with your hourly snapshots, disk space runs out.
But hibernation looks like working. Note that I canāt compare the log with my machine since Iām not using hibernation. Hopefully some who uses hibernation can compare and report if anything suspicious is detected.
#!/bin/sh
# Check whether 0anacron was run today already
if test -r /var/spool/anacron/cron.daily; then
day=`cat /var/spool/anacron/cron.daily`
fi
if [ `date +%Y%m%d` = "$day" ]; then
exit 0
fi
# Do not run jobs when on battery power
online=1
for psupply in /sys/class/power_supply/* ; do
if [ `cat "$psupply/type" 2>/dev/null`x = Mainsx ] && [ -f "$psupply/online" ]; then
if [ `cat "$psupply/online" 2>/dev/null`x = 1x ]; then
online=1
break
else
online=0
fi
fi
done
if [ $online = 0 ]; then
exit 0
fi
/usr/sbin/anacron -s
As far as I can tell there is no hourly command.
Itās funny, but when I was using Mint I did not manage to run Timeshift properly, now it is the same. I have disabled the snapshots.
Interesting to see if that helps.
But I assume others will help too, with different and possibly better perspective.
The latest experience (last Summer) Iāve had with battery drain was when my laptopās battery was already showing lots of signs of wearing out. And one day it refused to charge, so I had to buy a new one.
Nevertheless, it seems your new battery is in a bad shapeā¦
condition: 34.8/45.0 Wh (77.4%)
From the journal, it seems hibernation works fine, unless any jobs during sleep are not logged, but I am not sure this can happen.
One thing that is clearly an issue is a bad udev rule, that you should correct or disable/delete.
Process ā/bin/chgrp video /sys/class/backlight/intel_backlight/brightnessā failed with exit code 1.
This task is trying to run for (assuming) every event of the system, or something horribly similar.
I suggest you grep/find the relevant file and disable/remove it. This may create an unmetered workload, that might possibly relate to your battery drainage.
Have you intentionally set cinnamon screensaver, or maybe it conflicts? You might find it in /etc/xdg/autostart/, or ~/.config/autostart, or even as a user service.
Thermald isnāt used for throttling the cpu when itās past 90C?
Install auto-cpufreq, it should help with battery life. You can also configure it to disable turbo on battery
The name Thermald has ātemperatureā in it, so it was stupid of me to mention that. I also have auto-cpufreq installed for months, but it does not seem to have prevented this sudden drain.
OK, that is now the 2nd Lenovo PC I bought with a crappy battery life, and there are 5 years between them. I am through with Lenovo. Donāt ever buy a Lenovo, if for no other reason.
The bad udev rule rings a bell because I struggled with the backlight just after I had installed EOS.
So, should I run the 2 grep commands you indicated?
If the OS drains the battery because of misconfiguration, would it be wise to blame the HW vendor? I would first find the cause of the excessive battery drainage, and accuse the vendor later. Lenovo is the No1 PC manufacturer globally.
They are tips on how you might find the file with relevant contents. Use them, or use something else, or open each .rules file one-by-one. Mainly, read about rules.
That is not fair. It strikes me, though, that on my previous Lenovo my battery went down the drain pretty quickly too when I only had Windows on it, before I installed Linux.
Still, you are right to point this out; I would be fooling myself if it was the OS indeed.
From the 2 commands you suggested I got output from the 2nd one only: