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:
Kyle Gospodnetich 2023-06-21 17:02:04 -07:00
parent c95b431ae5
commit 6d5daa3259
2 changed files with 18 additions and 0 deletions

View 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.

View 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