So today in the news, the new open-source AMDGPU driver was released for Ubuntu 18.04 and is available on Github
Source: Article on Phoronix
I want to install this to take advantage of the performance gain because I play some demanding games through Wine and Steam. I also want to learn to comfortably try these out and still be able to revert to the drivers my install came with, in case everything goes wrong.
In the past (on another install of regular Ubuntu 18.04) I installed the amdgpu-pro drivers through AMD website. I had carefully followed all their directions. When I had it installed correctly (and rebooted) I was not able to launch any native steam games at all, but I could launch Wine games. I also had a bit of screen tearing in browsers, in OBS-studio, Blender, and video playback, whereas I hadn't experienced any of that with the kernel driver.
I solved it by re-installing my whole OS and kind of forgot to backup some video tutorials I had, oops.
On this page it describes the install process with the .deb file I would download ( which I block-quoted below).
Then it shows runtime settings , PAL GpuProfiler Layer , and some other information as you keep scrolling down that page and I don't understand any the instructions after the 'Install with pre-built driver' section.
I'm am confused about all this because I'm really new to using Linux.
Here are my three questions:
After I install this, will I be able to utilize hardware encoding in OBS-studio? Right now I have to use the software encoding and I'd rather use the GPU.
Do I need anything after the install process I posted below to get the driver working?
And If I go ahead and install this .deb file, how do I revert to the AMDdriver that came with my distro?
Install with pre-built driver
You could download and install pre-built deb package (compatible with Ubuntu 16.04 and 18.04) from Releases · GPUOpen-Drivers/AMDVLK · GitHub for each stable code promotion in master branch:
sudo dpkg -r amdvlk /* If old version is installed on the machine, remove it first */ sudo dpkg -i amdvlk_x.x.x_amd64.deb sudo apt-get -f install
You could also install the latest driver build from http://repo.radeon.com:
sudo wget -qO - http://repo.radeon.com/amdvlk/apt/debian/amdvlk.gpg.key | sudo apt-key add - sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/amdvlk/apt/debian/ bionic main > /etc/apt/sources.list.d/amdvlk.list' sudo apt-get remove amdvlk /* If old version is installed on the machine, remove it first */ sudo apt update sudo apt-get install amdvlk
Here is my output of lspci -k | grep VGA -A2
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Polaris11] (rev cf)
Subsystem: Micro-Star International Co., Ltd. [MSI] Baffin [Radeon RX 560]
Kernel driver in use: amdgpu
Thank you for your time and efforts.