Add battery threshold systemd service
This commit is contained in:
parent
7c5bfbca21
commit
5974e0ad51
1 changed files with 10 additions and 0 deletions
10
rootfs/etc/systemd/system/battery-threshold.service
Normal file
10
rootfs/etc/systemd/system/battery-threshold.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Set ASUS BAT1 charge threshold to 80%%
|
||||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/sh -c 'echo 80 > /sys/class/power_supply/BAT1/charge_control_end_threshold'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in a new issue