File tree 3 files changed +13
-1
lines changed
system_files/deck/shared/etc
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Maximum amount the battery will charge to, including when the device is off.
2
+ MAX_BATTERY_CHARGE_LEVEL=80
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =Service for setting the Steam Deck Battery Charging Limit
3
+
4
+ [Service]
5
+ Type =oneshot
6
+ EnvironmentFile =-/etc/default/%p
7
+ ExecStart =echo ${MAX_BATTERY_CHARGE_LEVEL} > /sys/class/hwmon/hwmon*/max_battery_charge_level
8
+
9
+ [Install]
10
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Description=CPU Curve Undervolt for Steam Deck
4
4
[Service]
5
5
Type =oneshot
6
6
EnvironmentFile =-/etc/default/%p
7
- ExecStart =/usr/sbin/ryzenadj --set-coall ={UNDERVOLT_AMOUNT}
7
+ ExecStart =/usr/sbin/ryzenadj --set-coall =$ {UNDERVOLT_AMOUNT}
8
8
9
9
[Install]
10
10
WantedBy =multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target ac.target battery.target
You can’t perform that action at this time.
0 commit comments