Skip to content

Commit

Permalink
Merge pull request #17 from ublue-os/main
Browse files Browse the repository at this point in the history
[pull] main from ublue-os:main
  • Loading branch information
pull[bot] authored May 20, 2024
2 parents 13fd6e8 + 4fb122d commit 9e2324b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Variant designed for usage as an alternative to SteamOS on the Steam Deck, and f
- Applies SteamOS's kernel parameters.
- Color calibrated display profiles for matte and reflective Steam Deck screens included.
- Default-disabled power-user features, including:
- Service for low-risk undervolting of the Steam Deck via [RyzenAdj](https://github.com/FlyGoat/RyzenAdj) and [Ryzen SMU](https://gitlab.com/leogx9r/ryzen_smu), see `ryzenadj.service` and `/etc/default/ryzenadj`.
- Service for limiting the max charge level of the battery, see `batterylimit.service` and `/etc/default/batterylimit`. <sup><sub>(Works even when the device is off)</sub></sup>
- Built in support for display overclocking. For example, add `GAMESCOPE_OVERRIDE_REFRESH_RATE=40,70` to `/etc/environment`.
- 32GB RAM mod your Steam Deck? Enjoy double the maximum VRAM amount, automatically applied. <sup><sub>(Can you share your soldering skills?)</sub></sup>
Expand Down
8 changes: 8 additions & 0 deletions system_files/deck/shared/usr/etc/default/ryzenadj
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 system_files/deck/shared/usr/lib/systemd/system/ryzenadj.service
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

0 comments on commit 9e2324b

Please sign in to comment.