ansible-desktop/roles/laptop/files/lib/systemd/system/battery-charge-threshold.service

12 lines
267 B
SYSTEMD
Raw Normal View History

2022-07-14 19:06:42 +00:00
[Unit]
Description=Set the battery charge threshold
After=multi-user.target
StartLimitBurst=0
[Service]
Type=oneshot
Restart=on-failure
2023-04-24 02:04:17 +00:00
ExecStart=/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold'
2022-07-14 19:06:42 +00:00
[Install]
WantedBy=multi-user.target