Overlocking / Undervolting AMD GPU (and maybe CPU)
Page: 1/2»
  Go to:
Raphty Feb 2, 2020
Hey Guys, I am new to desktop Linux in general, I was administrator of a couple of Linux servers a couple of years ago, so I am familiar with Linux in general, but overclocking and stuff especially GPUs was never something I had to deal with in that context.

I was used to use MSI afterburner on Windows, to set custom fan curves and undervolt and overclock my GPU. I believe that the CPU isn't bottlenecking my gaming that is why I am focused on the GPU.

I am looking for guides how to go about this. I have an AMD Vega64 with MESA drivers (which was already an improvement over the AMD drivers, Dota2 was crashing quite frequent before I made the switch) and an Ryzen 2700x.
The distro I use is Pop!_OS 19.10.

I am quite happy with Pop!_OS but I would switch if that would make things easier. But since its based on Ubuntu there weren't to many difficulties fining what I needed in the past.

Hopefully this is the right place for this question, I was searching for Overclocking in this forum, but there were 0 results. For me overclocking is part of my gamer lifestyle, together with building my own PC. Now switching to Linux was the next step, taking more charge over my software, I thought that this would give me more control over my hardware as well, but sadly easy tasks on windows have proven quite difficult on Linux when it comes to hardware.

Thank You in advance! I appreciate all help
Koopacabras Feb 8, 2020
first you have to add this to grub

Quoteamdgpu.ppfeaturemask=0xffffffff

edit the file /etc/default/grub

find the line GRUB_CMDLINE_LINUX_DEAFULT and add that to the end, like this

QuoteGRUB_CMDLINE_LINUX_DEFAULT="splash=silent quiet showopts amdgpu.ppfeaturemask=0xffffffff"

then run

update-grub

and reboot

after rebooting overclocking is unlocked, running a command like this will overclock your gpu memory

echo "m 2 2200 900" > /sys/class/drm/card0/device/pp_od_clk_voltage
and then commit the change

echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage
(look for the correct values for your card)




for controlling the GPU fan I personally use this
https://github.com/wepiha/qt-amdgpu-fan-ctl


or the other option you have if you don't want to input commands for overclocking, you could use this app that it has more features

https://github.com/marazmista/radeon-profile

you have to compile it manually because I don't think there is a repo for radeon-profile.


and then the other GUI app there is, is WattmanGTK

https://github.com/BoukeHaarsma23/WattmanGTK

for overclocking the CPU I use Zenstates

https://github.com/r4m0n/ZenStates-Linux

you need to read the wiki and use this spreadsheet to calculate the correct values
https://docs.google.com/spreadsheets/d/1icKFa0COFFpIKmkXOXVUrTt7mnMqdYYLbtRiedat5zs/edit?usp=drivesdk

for example this is the script I use

#!/bin/sh
./zenstates.py -p 1 -f A0 && \
./zenstates.py -p 0 -f A0 && \
./zenstates.py -p 2 -f 8C


Last edited by Koopacabras on 8 February 2020 at 9:17 pm UTC
Raphty Mar 1, 2020
Thanks,

I am still on it. It isn't as straight forward as I thought.

I am currently stuck in building the marazmista/radeon-profile app.
the QT5 thing is beyond me. I looked if I have the lib, and it appeared so, but it didnt work, then I went and stalled the QT5 thing from their homepage, still nothing and now I am not sure if I even had to do that.

Do you have a guide for how to build stuff like that on Ubuntu?

thanks!
Koopacabras Mar 1, 2020
Quoting: RaphtyThanks,

I am still on it. It isn't as straight forward as I thought.

I am currently stuck in building the marazmista/radeon-profile app.
the QT5 thing is beyond me. I looked if I have the lib, and it appeared so, but it didnt work, then I went and stalled the QT5 thing from their homepage, still nothing and now I am not sure if I even had to do that.

Do you have a guide for how to build stuff like that on Ubuntu?

thanks!

did you install the dependencies


sudo apt-get qt5-base qt5-charts qt5-defaults libxrandr

also just in case

sudo apt-get install build-essential autotools-dev autoconf automake git

then

git clone https://github.com/marazmista/radeon-profile.git
cd radeon-profile/radeon-profile
qmake
make 



or you could also use this ppa (I haven't tried but I suppose it works)

https://launchpad.net/~trebelnik-stefina/+archive/ubuntu/radeon-profile

sudo add-apt-repository ppa:trebelnik-stefina/radeon-profile
sudo apt-get update
sudo apt-get install radeon-profile        


Last edited by Koopacabras on 1 March 2020 at 11:16 pm UTC
Raphty Mar 2, 2020
Thanks,

I checked the dependencies and I think I got all of them, but I guess installing them again wouldn't hurt?

I try it later this week.

thank you very much
Koopacabras Mar 2, 2020
try installing the package from the ppa, it's some months behind but should work
sudo add-apt-repository ppa:trebelnik-stefina/radeon-profile

sudo apt-get update

sudo apt-get install radeon-profile
Raphty Mar 8, 2020
Thanks for the help I appreciate it a lot!

I want to learn and get better with my linux skills that is partly why I want to build it myself.

qmake: could not find a Qt installation of ''

is the response I get and I am not sure what it wants. I figured it doesnt find the file it should interact with?

I am in the Git/radeon-profile/radeon-profile directory.

total 504K
drwxr-xr-x 8 raphty raphty 4.0K Feb 23 09:17 .
drwxr-xr-x 4 raphty raphty 4.0K Feb 23 09:17 ..
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 components
-rw-r--r-- 1 raphty raphty 1.9K Feb 23 09:17 daemonComm.cpp
-rw-r--r-- 1 raphty raphty 1.2K Feb 23 09:17 daemonComm.h
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 dialogs
-rw-r--r-- 1 raphty raphty  707 Feb 23 09:17 Doxyfile
-rw-r--r-- 1 raphty raphty  29K Feb 23 09:17 dxorg.cpp
-rw-r--r-- 1 raphty raphty 3.3K Feb 23 09:17 dxorg.h
-rw-r--r-- 1 raphty raphty 3.0K Feb 23 09:17 execbin.cpp
-rw-r--r-- 1 raphty raphty 1.4K Feb 23 09:17 execbin.h
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 extra
-rw-r--r-- 1 raphty raphty  17K Feb 23 09:17 globalStuff.h
-rw-r--r-- 1 raphty raphty  41K Feb 23 09:17 gpu.cpp
-rw-r--r-- 1 raphty raphty 3.2K Feb 23 09:17 gpu.h
-rw-r--r-- 1 raphty raphty 5.1K Feb 23 09:17 ioctl_amdgpu.cpp
-rw-r--r-- 1 raphty raphty 3.7K Feb 23 09:17 ioctlHandler.cpp
-rw-r--r-- 1 raphty raphty 7.6K Feb 23 09:17 ioctlHandler.h
-rw-r--r-- 1 raphty raphty 4.2K Feb 23 09:17 ioctl_radeon.cpp
-rw-r--r-- 1 raphty raphty  743 Feb 23 09:17 main.cpp
-rw-r--r-- 1 raphty raphty  22K Feb 23 09:17 radeon_profile.cpp
-rw-r--r-- 1 raphty raphty 9.9K Feb 23 09:17 radeon_profile.h
-rw-r--r-- 1 raphty raphty 3.4K Feb 23 09:17 radeon-profile.pro
-rw-r--r-- 1 raphty raphty 159K Feb 23 09:17 radeon_profile.ui
-rw-r--r-- 1 raphty raphty  473 Feb 23 09:17 radeon-resource.qrc
-rw-r--r-- 1 raphty raphty 1012 Feb 23 09:17 rpevent.h
-rw-r--r-- 1 raphty raphty  23K Feb 23 09:17 settings.cpp
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 symbols
-rw-r--r-- 1 raphty raphty 6.9K Feb 23 09:17 tab_events.cpp
-rw-r--r-- 1 raphty raphty  12K Feb 23 09:17 tab_exec.cpp
-rw-r--r-- 1 raphty raphty 9.6K Feb 23 09:17 tab_fanControl.cpp
-rw-r--r-- 1 raphty raphty  15K Feb 23 09:17 tab_overclock.cpp
-rw-r--r-- 1 raphty raphty 4.9K Feb 23 09:17 tab_plots.cpp
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 translations
-rw-r--r-- 1 raphty raphty  13K Feb 23 09:17 uiElements.cpp
-rw-r--r-- 1 raphty raphty  10K Feb 23 09:17 uiEvents.cpp
drwxr-xr-x 2 raphty raphty 4.0K Feb 23 09:17 variables
Koopacabras Mar 8, 2020
try installing qtbase5-dev also libqt5charts5-dev and libxrandr-dev

sudo apt-get install qtbase5-dev libqt5charts5-dev libxrandr-dev

Last edited by Koopacabras on 8 March 2020 at 6:59 pm UTC
Raphty Mar 10, 2020
still qmake gave the same error I am on POP_OS! could this be an issue?
Raphty Mar 10, 2020
ok I found a solution on Stackoverflow!
https://stackoverflow.com/questions/16607003/qmake-could-not-find-a-qt-installation-of

I think I build it now!
but an awkward question now, how do I run it?
I looked with ls, but there is no executable file.
Koopacabras Mar 10, 2020
I think that you need to install with make install

just run "make install" in the same directory you ran qmake and then
sudo radeon-profile

Last edited by Koopacabras on 10 March 2020 at 11:34 pm UTC
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.