forked from ublue-os/bazzite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ublue-os/main
[pull] main from ublue-os:main
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
11 changes: 11 additions & 0 deletions
11
system_files/deck/shared/usr/lib/systemd/system/ryzenadj.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=CPU Curve Undervolt for Steam Deck | ||
|
||
[Service] | ||
Type=oneshot | ||
EnvironmentFile=-/etc/default/%p | ||
ExecStartPre=/usr/bin/sleep 10 | ||
ExecStart=/usr/bin/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 |