I have tried to change the low and critical battery thresholds but the OS still does not seem to recognize that.
What I have tried:
- Changing
/etc/UPower/UPower.conf
to:
UsePercentageForPolicy=true
PercentageLow=30
PercentageCritical=20
PercentageAction=20
CriticalPowerAction=HybridSleep
The file maintains the modifications but still the laptop notifies me of low battery at the default 10%
- Changing the same values with
dconf-editor
inorg
->gnome
->settings-daemon
->plugins
->power
Still the laptop notifies me when the battery reaches 10% instead of 30%.
- using the command line, like:
gsettings set org.gnome.settings-daemon.plugins.power percentage-low 30
The the laptop continues to behave as if there's no change. I have been trying to solve this problem for weeks but I couldn't find a way. I searched a lot on the internet but couldn't find anything that could solve this issue. Any help would be greatly appreciated.
EDIT 1:
Thank you sancho.s for your great suggestions. I did set the use-time-for-policy
value to false already. I double checked and it seems that is indeed false.
Your temporary workaround unfortunately doesn't seem to work. I calculated the ratio you mentioned and I had it at 5%. I changed it to 30% by modifying alarm
to a number 6x higher. Nothing seems to happen when the battery reaches 30%.
The related links were indeed useful but I already read those answers previously, and tried the suggestions in them, which I also reported in my original question. Unfortunately I couldn't solve the problem.
The version of my Ubuntu is 20.04 LTS, and it's running on a Thinkpad X1. I should point out that I formatted my laptop a few weeks ago, and before formatting, UPower was working correctly on 20.10. Afterwards I changed in the BIOS settings the AHCI to RST but I reverted all the changes before formatting and installing 20.04 LTS. I thought this might be related, but I reverted all the changes and I wouldn't know what to check to make sure there isn't a problem there.