2022-07-14 21:06:42 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Set the battery charge threshold
|
|
|
|
After=multi-user.target
|
|
|
|
StartLimitBurst=0
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Restart=on-failure
|
2024-02-06 18:28:29 +01:00
|
|
|
ExecStart=/bin/bash -c 'echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
|
2022-07-14 21:06:42 +02:00
|
|
|
|
|
|
|
[Install]
|
2024-02-06 18:28:29 +01:00
|
|
|
WantedBy=multi-user.target
|