mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-06 00:58:16 +00:00
feat: Add systemd service and config file in /etc/default for ryzenadj curve undervolting.
This service is not enabled by default.
This commit is contained in:
parent
c95b431ae5
commit
6d5daa3259
8
deck/etc/default/ryzenadj
Normal file
8
deck/etc/default/ryzenadj
Normal file
@ -0,0 +1,8 @@
|
||||
# https://github.com/NGnius/PowerTools/issues/84#issuecomment-1482736698
|
||||
# https://www.amd.com/system/files/documents/faq-curve-optimizer.pdf
|
||||
# Expect your UV to be 3-5x your set curve value. IE: -5 = -15mv to -25mv
|
||||
# 0x100000 - 5 (Range: -30, 30)
|
||||
UNDERVOLT_AMOUNT=0xFFFFB
|
||||
# WARNING: As with any undervolt exercise caution.
|
||||
# There is no guarantee you won't damage your hardware.
|
||||
# USE AT YOUR OWN RISK.
|
10
deck/etc/systemd/system/ryzenadj.service
Normal file
10
deck/etc/systemd/system/ryzenadj.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=CPU Curve Undervolt for Steam Deck
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=-/etc/default/%p
|
||||
ExecStart=/usr/sbin/ryzenadj --set-coall={UNDERVOLT_AMOUNT}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target ac.target battery.target
|
Loading…
Reference in New Issue
Block a user