For the record this is the content of the nf file that I added in /etc/tmpfiles.d/: w /sys/class/power_supply/BAT0/charge_control_end_threshold - 60
First I tried to create a systemd-tmpfile following this thread on Arch forums, but it didn't seem to have any effect and the note at the end of the relevant Arch wiki section didn't make me feel like investigating this further. KERNEL="BAT0", SUBSYSTEM="power_supply", ATTR="60" appears in the first output but not in the second one, which is the one showing what gets activated during udev triggering (from my rather limited understanding).īecause many distros don't ship with a cron implementation anymore, I tried to find a systemd-native way of setting this parameter. les within /etc/udev/rules.d/ and fill it with the following content (based on the rule suggested in the previously linked AskUbuntu answer): To do so wih udev, you can create a file named e.g. $ cat /sys/class/power_supply/BAT0/statusįor the setting to persist a reboot, you need to set up a udev rule or equivalent in your distribution because apparently TLP doesn't support it (haven't checked yet but the warning seems clear, let us know in the comments if you find otherwise).Įdit : there is an issue discussing adding this feature, please chime in with the result of the commands described in this and this comments. $ echo 60 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold $ cat /sys/class/power_supply/BAT0/capacity Turns out the exact same ability was added in kernel 5.4 thanks to this commit, so that now we can interact with this setting using the sysfs subsystem: $ cat /sys/class/power_supply/BAT0/status if your are always on A/C you can limit the charge to 60% so as not to overvolt it etc.).
More general: /r/buildapc or /r/hardware.
#ASUS BATTERY HEALTH CHARGING INSTALL MODS#
If you notice any problems or think a comment/submission was wrongfully removed, message the mods Browse Categories
#ASUS BATTERY HEALTH CHARGING INSTALL HOW TO#
A subreddit where you can ask questions about what hardware supports GNU/Linux, how to get things working, places to buy from (i.e.