Created
February 15, 2024 14:30
-
-
Save llybin/b11260355a775fc0ab426ac5046d6b79 to your computer and use it in GitHub Desktop.
Asus battery charge threshold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=To set charging threshold | |
After=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target | |
StartLimitBurst=0 | |
[Service] | |
Type=oneshot | |
Restart=on-failure | |
User=root | |
ExecStart= /bin/bash -c 'echo 80 > /sys/class/power_supply/BAT*/charge_control_end_threshold' | |
[Install] | |
WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment