posajar.blogg.se

Asus rog zephyrus g15 fan control
Asus rog zephyrus g15 fan control











asus rog zephyrus g15 fan control

usr/lib/systemd/system-sleep/battery-threshold.sh #!/bin/shĮcho 60 > /sys/class/power_supply/BAT0/charge_control_end_thresholdĭo not forget to make the script executable.Īnother (more simple) way to force the charging threshold is by using bat-asus-battery-bin AUR, which provides a rvice systemd service and an intuitive terminal interface to change the threshold by typing. # systemctl enable creating a script as described in Power management#Hooks in /usr/lib/systemd/system-sleep, use something similar to: if using Power management#Generic service template, enable an instance of the created template using: In order to re-execute the service after hibernation, use one of the methods described in Power management#Sleep hooks.Į.g. 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.

asus rog zephyrus g15 fan control

Note: As of, this is the only functional workaround as neither path-based activation or systemd-tmpfiles were working.













Asus rog zephyrus g15 fan control