totalcow.blogg.se

Asus laptop lid switch
Asus laptop lid switch




# 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.

asus laptop lid switch

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.






Asus laptop lid switch