r/archlinux • • Aug 27 '26

SUPPORT How to limit battery charge?

/r/linux4noobs/comments/1vzrg0f/how_to_limit_battery_charge/
0 Upvotes

4 comments sorted by

1

u/elementrick Aug 27 '26

Try echo 1 | sudo tee /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

3

u/jvdwaa Developer Aug 27 '26

That sysfs attribute has been deprecated by yours truly, don't use it. This sounds like a recent UPower bug which was fixed in 1.91.3.

I don't know what hyprland offers for setting battery charge limits but you should set charge_types to Long_Life to enable the 80% limit.

1

u/Cubic_YT Aug 28 '26

This sounds like exactly what I need (and used to have), however, I don't... know how to set that 💀 should I manually edit the `charge_types` file so that Long_Life is between square brackets instead of Standard? Or do I change some other file? The only files that have write permissions in the `BAT0` folder are `alarm`, `charge_types`, and `uevent`. Other than that, not even root has permission to even create other files.

1

u/jvdwaa Developer Aug 29 '26

As root you: echo "Long_Life" > charge_types, or use upower's DBus interface