diff --git a/rootfs/etc/systemd/system/battery-threshold.service b/rootfs/etc/systemd/system/battery-threshold.service new file mode 100644 index 0000000..1552285 --- /dev/null +++ b/rootfs/etc/systemd/system/battery-threshold.service @@ -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