Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #This fix works by manually setting the powerstate of the GPU to high/performance. This issue that a lot of AMD users
- #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
- #issue only affect users, using AMD Hawaii GPU's, with the open-source MESA video drivers. So that small group of us
- #that are fucked; use this fix.You will want to run this script at boot up everytime. You can run this before or after
- #Xorg sessions start; it doesn't matter.
- #
- # Init
- FILE="/tmp/out.$$"
- GREP="/bin/grep"
- #....
- # Make sure only root can run our script
- if [ "$(id -u)" != "0" ]; then
- echo "This script must be run as root" 1>&2
- exit 1
- fi
- #
- #AMDGPU Powerstate fix for 390x
- #
- echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
- echo performance > /sys/class/drm/card0/device/power_dpm_state
- #</FIX>
- echo "Powerstates changed"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement