Fix batteryservice on latest bioses (#1103)

Based on my testing with my Deck LCD on 0131 it seems that it randomly loses the setting after sleep/reboot/shutdown.

Run this command after each possible systemd stage to force it to leave this applied correctly. Tested locally.
This commit is contained in:
Marco Rodolfi 2024-05-11 04:27:51 +02:00 committed by GitHub
parent f11bcdd4de
commit c263c40b8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,4 +7,4 @@ EnvironmentFile=-/etc/default/%p
ExecStart=/usr/bin/bash -c "echo ${MAX_BATTERY_CHARGE_LEVEL} > /sys/class/hwmon/hwmon*/max_battery_charge_level"
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target reboot.target hibernate.target hybrid-sleep.target sleep.target suspend-then-hibernate.target suspend.target