Skip to content

Instantly share code, notes, and snippets.

View saimonn's full-sized avatar

Simon Séhier saimonn

View GitHub Profile
# This simple systemd unit sets battery thresholds to preserve battery life on Lenovo Thinkpad
# (works on T470 but might work for others models)
#
# use this command to create the unit file:
#
# systemctl edit --force --full battery_thresholds.service
#
# to enable the service and start it now, type:
#
# systemctl enable battery_thresholds.service --now