While this setting will persist after suspending to RAM, it will be reset when resuming from hibernation. ![]() etc/udev/rules.d/les ACTION="add", KERNEL="asus-nb-wmi", RUN+="/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'" Persist after hibernation Create a udev rule for asus-nb-wmi to set the battery's charge threshold: It is added to the sysfs(5) directory by the asus-nb-wmi kernel module. The battery's charge_control_end_threshold power supply class attribute does not initially exist. ![]() Note: As of, this is the only functional workaround as neither path-based activation or systemd-tmpfiles were working.
0 Comments
Leave a Reply. |