Advertisement
Guest User

Hawaii GPU Powerstate Fix for Linux

a guest
May 2nd, 2016
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. #!/bin/bash
  2. #This fix works by manually setting the powerstate of the GPU to high/performance. This issue that a lot of AMD users
  3. #have with DPM is that the auto state is broken and an actual fix to dpm does not look likely to happen soon as this
  4. #issue only affect users, using AMD Hawaii GPU's, with the open-source MESA video drivers. So that small group of us
  5. #that are fucked; use this fix.You will want to run this script at boot up everytime. You can run this before or after
  6. #Xorg sessions start; it doesn't matter.
  7. #
  8. # Init
  9. FILE="/tmp/out.$$"
  10. GREP="/bin/grep"
  11. #....
  12. # Make sure only root can run our script
  13. if [ "$(id -u)" != "0" ]; then
  14.    echo "This script must be run as root" 1>&2
  15.    exit 1
  16. fi
  17.  
  18. #
  19. #AMDGPU Powerstate fix for 390x
  20. #
  21. echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
  22. echo performance > /sys/class/drm/card0/device/power_dpm_state
  23. #</FIX>
  24.  
  25. echo "Powerstates changed"
  26. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement