scripts:max_performance
This is an old revision of the document!
#!/usr/bin/bash echo '' echo '~~~~~~~~~~~~' echo 'Enable GPU Scaling' echo '~~~~~~~~~~~~' echo '' echo 'Enabling GPU scaling...' xrandr --output 'HDMI-1' --set 'scaling mode' 'Full aspect' echo 'Done' echo '' echo '' echo '~~~~~~~~~~~~' echo 'CPU Governor adjustment' echo '~~~~~~~~~~~~' echo '' echo 'Setting performance governor...' sudo cpupower frequency-set --governor 'performance' echo 'Done' echo '' echo '~~~~~~~~~~~~' echo 'AMD GPU Power Limit adjustment' 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 '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 'New Power Limit:' "$(cat '/sys/class/drm/card0/device/hwmon/hwmon'*'/power1_cap')" echo '~~~~~~~~~~~~' echo 'Maximum performance activated!' echo '~~~~~~~~~~~~' sync
/var/www/wiki/data/attic/scripts/max_performance.1636073652.txt.gz · Last modified: 2021/11/04 20:54 by Sean Rhone