Skip to content

Instantly share code, notes, and snippets.

@SinSquare
Last active October 27, 2021 05:26
Show Gist options
  • Save SinSquare/0a6e3d600379f69b3e259dfb7bd34da0 to your computer and use it in GitHub Desktop.
Save SinSquare/0a6e3d600379f69b3e259dfb7bd34da0 to your computer and use it in GitHub Desktop.
Fedora amdgpu disable DPM
https://bugzilla.redhat.com/show_bug.cgi?id=1478219
1) download radcard script:
https://raw.githubusercontent.com/superjamie/snippets/master/radcard
2) chmod +x radcard
3) sudo cp radcard /usr/local/bin/radcard
4) Create systemd unit to change value at logon, unit file:
sudo gedit /etc/systemd/system/amdgpu-dpm.service
[Unit]
Description=Change dpm to performance high
[Service]
Type=oneshot
ExecStart=/usr/local/bin/radcard set high
ExecStop=/usr/local/bin/radcard set bal
[Install]
WantedBy=multi-user.target
5) Start and see status
sudo systemctl start amdgpu-dpm.service
sudo systemctl status amdgpu-dpm.service
6) Enable
systemctl enable amdgpu-dpm.service
systemctl list-unit-files | grep enabled
cat /sys/class/drm/card0/device/power_dpm_force_performance_level
glmark2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment