User Tools

Site Tools


scripts:max_performance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
scripts:max_performance [2021/11/04 21:01] – external edit 127.0.0.1scripts:max_performance [2024/08/13 18:58] (current) – removed Sean Rhone
Line 1: Line 1:
-  * https://wiki.archlinux.org/index.php/CPU_frequency_scaling 
-  * https://wiki.realmofespionage.xyz/devices:amd_graphics 
  
-  sudo -e '/usr/local/bin/max-perf.sh' && sudo chmod +x '/usr/local/bin/max-perf.sh' 
- 
-<code> 
-#!/usr/bin/bash 
- 
-echo '' 
-echo '~~~~~~~~~~~~' 
-echo 'GPU Scaling' 
-echo '~~~~~~~~~~~~' 
-echo '' 
-echo 'Enabling GPU scaling...' 
-xrandr --output 'HDMI-1' --set 'scaling mode' 'Full aspect' 
-echo 'Done' 
- 
-echo '' 
-echo '~~~~~~~~~~~~' 
-echo 'CPU Governor' 
-echo '~~~~~~~~~~~~' 
-echo '' 
-echo 'Setting performance governor...' 
-sudo cpupower frequency-set --governor 'performance' > '/dev/null' 
-echo 'Done' 
- 
-echo '' 
-echo '~~~~~~~~~~~~' 
-echo 'AMD GPU Power Limit' 
-echo '~~~~~~~~~~~~' 
-echo '' 
-echo 'Current Power Limit:' "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap')" 
-echo 'Max Power Limit:' "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap_max')" 
-echo '' 
-echo 'Setting Max Power Limit...' 
-echo "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap_max')" | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap' > '/dev/null' 
-echo 'Done' 
-echo '' 
-echo 'New Power Limit:' "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap')" 
- 
-echo '' 
-echo '~~~~~~~~~~~~' 
-echo 'Maximum performance activated!' 
-echo '~~~~~~~~~~~~' 
- 
-sync 
-sleep 5</code> 
- 
-  gnome-terminal -- sh -c '/usr/local/bin/max-perf.sh' 
/srv/www/wiki/data/attic/scripts/max_performance.1636074068.txt.gz · Last modified: by 127.0.0.1