How do I install AMDGPU-Pro on Mint 19?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Dukenukemx
Level 4
Level 4
Posts: 232
Joined: Thu Nov 24, 2011 1:06 am

How do I install AMDGPU-Pro on Mint 19?

Post by Dukenukemx »

I installed Mint 19 Cinnamon 64-bit and I edited the amdgpu-pro-install and replaced the Ubuntu with Linuxmint and now I get this. What do I do to install it?

Code: Select all

sudo ./amdgpu-pro-install -y
deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                          
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                                                          
Get:4 file:/var/opt/amdgpu-pro-local ./ Packages [126 kB]                                                    
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]                                  
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                                                 
Ign:7 http://packages.linuxmint.com tara InRelease                                                           
Hit:8 http://archive.ubuntu.com/ubuntu bionic InRelease                                                      
Hit:9 http://ppa.launchpad.net/dolphin-emu/ppa/ubuntu bionic InRelease                                       
Hit:10 http://archive.canonical.com/ubuntu bionic InRelease                                                  
Hit:11 http://packages.linuxmint.com tara Release                                                            
Hit:12 http://dl.google.com/linux/chrome/deb stable Release                                                  
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                   
Hit:14 http://ppa.launchpad.net/mamarley/tvheadend-git-stable/ubuntu bionic InRelease              
Hit:15 http://ppa.launchpad.net/pcsx2-team/pcsx2-daily/ubuntu bionic InRelease                               
Get:16 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                         
Hit:17 http://ppa.launchpad.net/team-xbmc/ppa/ubuntu bionic InRelease                                        
Fetched 247 kB in 2s (153 kB/s)                    
Reading package lists... Done
Package: *amdgpu*
Pin: release o=AMD
Pin: version *-606296
Pin-Priority: 1000

Package: *amdgpu*:i386
Pin: release o=AMD
Pin: version *-606296
Pin-Priority: 1000

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package
  
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: How do I install AMDGPU-Pro on Mint 19?

Post by catweazel »

Dukenukemx wrote: Mon Jul 02, 2018 1:01 am What do I do to install it?
Follow the clear, written instructions.

https://support.amd.com/en-us/kb-articl ... stall.aspx

You will note that there are no instructions for Ubuntu 18.04. Since AMD offer a driver for Ubuntu 17.04, presumably you need to download the correct driver for Ubuntu 18.04, which Mint is based on. Once you find that, you can follow the instructions as linked to above, but skip the sudo apt dist-upgrade command. However there may not be a driver for 18.04 yet.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Dukenukemx
Level 4
Level 4
Posts: 232
Joined: Thu Nov 24, 2011 1:06 am

Re: How do I install AMDGPU-Pro on Mint 19?

Post by Dukenukemx »

They've had drivers for Ubuntu 18.04 for a while now, they're called AMDGPU-PRO 18.20. Yea the name is confusing. Also I am following the instructions. It says to run './amdgpu-pro-install –y' and that's what I did, and got that output. You didn't even read my post @catweazel .

https://support.amd.com/en-us/kb-articl ... Notes.aspx
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

What is your video card?
Dukenukemx
Level 4
Level 4
Posts: 232
Joined: Thu Nov 24, 2011 1:06 am

Re: How do I install AMDGPU-Pro on Mint 19?

Post by Dukenukemx »

Radeon HD 7850
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

Use this command, removing the -y option. That's the only way I could install that driver: ./amdgpu-pro-install

Or this one, to also install the OpenCL files: ./amdgpu-pro-install --opencl=legacy

Without the -y option, the installation will stop at one point and you will need to answer Yes.
Dukenukemx
Level 4
Level 4
Posts: 232
Joined: Thu Nov 24, 2011 1:06 am

Re: How do I install AMDGPU-Pro on Mint 19?

Post by Dukenukemx »

Thanks @roblm, that worked. Who would have guessed the -y caused an issue? Now I'm gonna restart and test this out.
Dukenukemx
Level 4
Level 4
Posts: 232
Joined: Thu Nov 24, 2011 1:06 am

Re: How do I install AMDGPU-Pro on Mint 19?

Post by Dukenukemx »

So far the drivers work and I can now use Cinnamon as the included AMD open source drivers in Mint 19 are broken. Minecraft wouldn't work before, and now it does. I can even use Dolphin with Vulkan support.
sampctech

Re: How do I install AMDGPU-Pro on Mint 19?

Post by sampctech »

Not sure if anyone still monitors this, but I need some help as well. I installed Mint 19 Cinnamon 64-bit and downloaded the amdgpu-pro-18.30-633530 driver. I then edited the amdgpu-install file, but when replaced the Ubuntu with Linuxmint, I got a syntax error. I then replaced Linuxmint with * and now I get this.

Code: Select all

:~/Downloads/amdgpu-pro-18.30-633530$ ./amdgpu-pro-install -y
deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease                               
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]                         
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]                         
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg                             
Get:4 file:/var/opt/amdgpu-pro-local ./ Packages [127 kB]                       
Ign:5 http://linuxmint.mirrors.pair.com/packages tara InRelease                 
Hit:6 http://linuxmint.mirrors.pair.com/packages tara Release                   
Hit:8 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic InRelease
Hit:9 http://archive.canonical.com/ubuntu bionic InRelease                      
Hit:10 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:11 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:12 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                
Hit:13 http://linux.teamviewer.com/deb stable InRelease                         
Get:14 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:15 http://linux.teamviewer.com/deb preview InRelease                        
Fetched 74.6 kB in 1s (81.4 kB/s)                                               
Reading package lists... Done
Package: *amdgpu*
Pin: release o=AMD
Pin: version *-633530
Pin-Priority: 1000

Package: *amdgpu*:i386
Pin: release o=AMD
Pin: version *-633530
Pin-Priority: 1000

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package
What do I do to install it?

Here is what I currently have for my system:

Code: Select all

System:    Host: MintC Kernel: 4.15.0-32-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.8 (Gtk 3.22.30-1ubuntu1) dm: lightdm Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: BIOSTAR model: X370GT5 serial: N/A
           UEFI [Legacy]: American Megatrends v: 5.13 date: 04/17/2018
CPU:       Quad core AMD Ryzen 3 2200G with Radeon Vega Graphics (-MCP-) arch: Zen rev.0 cache: 2048 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 27947
           clock speeds: min/max: 1600/3500 MHz 1: 2892 MHz 2: 2715 MHz 3: 2671 MHz 4: 2960 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile]
           bus-ID: 0b:00.0 chip-ID: 1002:15dd
           Display Server: x11 (X.Org 1.19.6 ) driver: vesa Resolution: 1920x1080@0.00hz
           OpenGL: renderer: llvmpipe (LLVM 6.0, 128 bits)
           version: 3.3 Mesa 18.0.5 (compat-v: 3.0) Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] Device 15e3
           driver: snd_hda_intel bus-ID: 0b:00.6 chip-ID: 1022:15e3
           Card-2 Advanced Micro Devices [AMD/ATI] Device 15de
           driver: snd_hda_intel bus-ID: 0b:00.1 chip-ID: 1002:15de
           Sound: Advanced Linux Sound Architecture v: k4.15.0-32-generic
Network:   Card: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168
           IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 21504.3GB (16.5% used)
           ID-1: /dev/sda model: Hitachi_HDS72101 size: 1000.2GB serial: <filter>
           ID-2: /dev/sdb model: MD4000GBDS size: 4000.8GB serial: <filter>
           ID-3: /dev/sdd model: ST33000650NS size: 3000.6GB serial: <filter>
           ID-4: /dev/sde model: WDC_WD30EZRX size: 3000.6GB serial: <filter>
           ID-5: /dev/sdf model: ST2000DL004_HD20 size: 2000.4GB serial: <filter>
           ID-6: /dev/sdg model: Hitachi_HDS72105 size: 500.1GB serial: <filter>
           ID-7: /dev/sdh model: HGST_HUS724040AL size: 4000.8GB serial: <filter>
           ID-8: /dev/sdi model: HGST_HUS724040AL size: 4000.8GB serial: <filter>
Partition: ID-1: / size: 401G used: 38G (10%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 515G used: 8.5G (2%) fs: ext4 dev: /dev/sda2
RAID:      System: supported: N/A
           No RAID devices: /proc/mdstat, md_mod kernel module present
           Unused Devices: none
Sensors:   System Temperatures: cpu: 53.4C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Repos:     Active apt sources in file: /etc/apt/sources.list.d/danielrichter2007-grub-customizer-bionic.list
           deb http: //ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
           deb-src http: //ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http: //linuxmint.mirrors.pair.com/packages tara main upstream import backport
           deb http: //archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           deb http: //archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           deb http: //archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           deb http: //security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb http: //archive.canonical.com/ubuntu/ bionic partner
           Active apt sources in file: /etc/apt/sources.list.d/teamviewer.list
           deb http: //linux.teamviewer.com/deb stable main
           deb http: //linux.teamviewer.com/deb preview main
Info:      Processes: 239 Uptime: 14:47 Memory: 4485.9/15045.4MB
           Init: systemd v: 237 runlevel: 5 Gcc sys: 7.3.0 Client: Unknown python3.6 client inxi: 2.3.56
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

If you read all the posts in this topic, then you should know that the -y option should be left off the installation command.

Your inxi output lists AMD Ryzen 3 2200G with Radeon Vega Graphics, which is an APU.

User Citizen229, in his topic says the AMDGPU-Pro driver can’t be installed on mobile GPUs as well as APUs:
viewtopic.php?f=59&t=248059

I've been looking for a statement by AMD to verify that but still haven't found one, so you will be testing an installation that may fail, but first change the word linuxmint back to ubuntu in the amdgpu-pro-install script. I’ll explain why later. I recommend a new installation. Otherwise, there will probably be an error message about unmet dependencies when you attempt a second installation. Use this command to try to fix that: sudo apt install --fix-broken


With the release of the Radeon Software for Linux 18.30 package, AMD has added another obstacle to the installation for Mint users who want to install the AMDGPU-Pro driver. With previous versions, the amdgpu-pro-install script was edited by changing the word ubuntu to linuxmint. That won’t work with the newest version. After the installation, if you view the installer log in the Terminal window, you will probably see these 3 lines at the end:
Errors were encountered while processing:
/tmp/apt-dpkg-install-VlDLjr/08-amdgpu-core_18.30-633530_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking deeper in the log, you will see these lines:
ERROR: This package can only be installed on Ubuntu 18.04.
dpkg: error processing archive /tmp/apt-dpkg-install-VlDLjr/08-amdgpu-core_18.30-633530_all.deb (--unpack):
new amdgpu-core package pre-installation script subprocess returned error exit status 1

If the amdgpu-pro-18.30-633530.tar.xz package is extracted and then the amdgpu-core_18.30-633530_all.deb package within it is extracted and then the control.tar.xz package within it is extracted, then the preinst script can be viewed:

Code: Select all

#!/bin/bash
set -e
. /etc/os-release

if [ "$VERSION_ID" != "18.04" ] ; then
	>&2 echo "ERROR: This package can only be installed on Ubuntu 18.04."
	exit 1
fi
exit 0
This script will run before the amdgpu-core package is installed. It checks in the system’s /etc/os-release file for a VERSION_ID="18.04" line, which is the latest version of Ubuntu. If that is not found, then the amdgpu-core package will not be installed, the error message will be seen in the installer log and the installation will fail.

The solution I found is to edit the /etc/os-release file. Use this command to open it: xed admin:///etc/os-release

Code: Select all

NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic
Change the word linuxmint to ubuntu in line 3 and change the number 19 to 18.04 in line 6. After the installation, you can change these back. The amdgpu-pro-install script does not have to be edited.

Proceed with the installation by right clicking on the downloaded amdgpu-pro-18.30-633530.tar.xz package and selecting Extract Here. Open the amdgpu-pro18.30-633530 folder. Right click in the empty space and select Open in Terminal. Use the command ./amdgpu-pro-install

If you also want to install the OpenCL component, then use this command for Vega10 and newer cards:
./amdgpu-pro-install --opencl=pal

Or this command for Pre Vega10 cards: ./amdgpu-pro-install --opencl=legacy

Also, AMD says both pal and legacy can be installed, which is useful for users who are unsure which option should be selected: ./amdgpu-pro-install --opencl=pal,legacy

Reboot.

To uninstall the driver: amdgpu-pro-uninstall


How to check the AMDGPU-Pro installation:

Use this command: grep hybrid /var/log/Xorg.0.log. Check for these two lines, referring to the AMDGPU hybrid driver. Your version number may be different:

Code: Select all

AMDGPU(0): AMDGPU DDX hybrid version: 18.50.1.418
AMDGPU(0): AMDGPU kernel module hybrid version: 18.50.1.418

Use this command: grep libglx /var/log/Xorg.0.log. The module libglx.so should be loading from here:

Code: Select all

/opt/amdgpu-pro/lib/xorg/modules/extensions

UPDATE: Mint 19 Cinnamon installation. These instructions were tested and also work on both Radeon Software for Linux 18.40 and 18.50.

UPDATE: Mint 19.1 Cinnamon installation. 4.15.0-20 kernel. Radeon Software for Linux 18.50 (amdgpu-pro-18.50-708488-ubuntu-18.04.tar.xz) installed successfully.

UPDATE: Tested 4.15.0-46 and 4.15.0-47 kernels with amdgpu-pro-18.50-756341-ubuntu-18.04.tar.xz package. No problems.

Tested 4.18.0-17 kernel. Installation failed. This message seen:

Code: Select all

ERROR (dkms apport): kernel package linux-headers-4.18.0-17-generic is not supported
WARNING: amdgpu dkms failed for running kernel

UPDATE 4-26-19: Tested 4.18.0-18 kernel with Radeon™ Software for Linux® version 19.10 for Ubuntu 18.04.2
(amdgpu-pro-19.10-785425-ubuntu-18.04.tar.xz package). The installation worked and the /etc/os-release file does not need to be edited, but it will also work if the file is edited. This line will be seen in the installation log:
WARNING: This package was intended to be installed on Ubuntu 18.04 and may not work as expected on Linux Mint 19.1.

Radeon Software for LInux 19.10 also works with the older 4.15 kernel but a new problem for Mint users has been added with that package. This will only be seen if it is uninstalled. The uninstaller removes other important packages from the Mint installation that previous versions did not. These lines are from the uninstallation log:
Removing xorg (1:7.7+19ubuntu7.1) ...
Removing xserver-xorg (1:7.7+19ubuntu7.1) ...
Removing xserver-xorg-video-all (1:7.7+19ubuntu7.1) ...
Removing xserver-xorg-video-vmware (1:13.2.1-1build1) ...
Removing xserver-xorg-video-amdgpu (18.0.1-1) ...
Removing xserver-xorg-input-all (1:7.7+19ubuntu7.1) ...
Removing xserver-xorg-input-libinput (0.27.1-1) ...
Removing xserver-xorg-video-vesa (1:2.3.4-1build3) ...
Removing xserver-xorg-video-ati (1:18.0.1-1) ...
Removing xserver-xorg-video-radeon (1:18.0.1-1) ...
Removing xserver-xorg-input-wacom (1:0.36.1-0ubuntu1) ...
Removing xserver-xorg-video-fbdev (1:0.4.4-1build6) ...
Removing xserver-xorg-video-intel (2:2.99.917+git20171229-1) ...
Removing xserver-xorg-video-nouveau (1:1.0.15-2) ...
Removing xserver-xorg-video-qxl (0.1.5-2build1) ...
Removing amdgpu-pro-core (19.10-785425) ...
Removing xserver-xorg-core (2:1.19.6-1ubuntu4.2) ...
After rebooting, you will end up in the virtual console tty1, unable to get to the desktop. To correct that problem, this command should be used to re-install those packages, right after Radeon Software for Linux 19.10 is uninstalled, before rebooting. It can also be used in tty1:
apt install xserver-xorg xserver-xorg-video-all


EDITED 5-24-19: the 5.0.0-15 kernel in the Update Manager is not supported by Radeon Software for Linux 19.10. This message will be seen in the installation log:
Building initial module for 5.0.0-15-generic
ERROR (dkms apport): kernel package linux-headers-5.0.0-15-generic is not supported

UPDATE 6-19-19: The Radeon Software for LInux 19.20 for Ubuntu 18.04.2 installs the same as 19.10. No files need to be edited, but the same uninstallation problem exists. It also works with the 4.18 and 5.0.0-15, 5.0.0-16 and 5.0.0-17 kernels.
https://www.amd.com/en/support/kb/relea ... 20-unified

EDITED 7-7-19: This package is not compatible with the 4.15 kernel.

The Xorg.0.log file does not show these lines when the 4.18 or 5.0 kernel is installed, as previous Radeon Software versions did, to verify the installation:

Code: Select all

AMDGPU(0): AMDGPU DDX hybrid version: xx.xx.x.xx
AMDGPU(0): AMDGPU kernel module hybrid version: xx.xx.x.xx
Use this command: grep libglx.so /var/log/Xorg.0.log. This should be the output:

Code: Select all

Loading /opt/amdgpu-pro/lib/xorg/modules/extensions/libglx.so

Update 8-16-19: Tested Radeon Software for Linux version 19.30 for Ubuntu 18.04.3 on Mint 19.2.
https://www.amd.com/en/support/kb/relea ... fied-linux

Installation is similar to the previous version; no files need to be edited, but the uninstallation problem persists, which started with Radeon Software for Linux 19.10. This driver package is compatible with the 4.15, 4.18 and 5.0 kernels. Tested were the 4.15.0-54, 4.15.0-58, 4.18.0-25 and 5.0.0-25 kernels.


Update 11-10-19: Tested the 5.3.0-19 kernel with Radeon Software for Linux version 19.30 for Ubuntu 18.04.3 in the package amdgpu-pro-19.30-855429-ubuntu-18.04.tar.xz. The driver failed to install.

AMD just released on 11-8-19 a revision of Radeon Software for Linux version 19.30 in the package amdgpu-pro-19.30-934563, which has driver support for the new Radeon RX 5500 series. This driver also does not have support for the 5.3 kernel.
https://www.amd.com/en/support/kb/relea ... 30-unified

EDITED 12-25-19: With the release of Mint 19.3, Radeon Software for Linux is finally working correctly. Version 19.30 installed without any editing of a configuraton file and the uninstallation problem that was introduced in version 19.10 has been eliminated.


Update 1-6-2000: Using Mint 19.3 Cinnamon and the 5.0.0-32 kernel, tested Radeon Software for Linux version 19.50 for Ubuntu 18.04.3 in the package amdgpu-pro-19.50-967956-ubuntu-18.04.tar.xz.
https://www.amd.com/en/support/kb/relea ... fied-linux

This package has problems. The AMDGPU driver installation with the All-Open component (amdgpu-install), will install but the installation will be about 4 minutes longer. When the step Building initial module for 5.0.0-32-generic is reached, there will be about 6 minutes needed. Usually this step takes about 2 minutes for building the 4 AMD kernel modules.
The installation with the Pro component (amdgpu-pro-install) will fail with these lines in the installation log:

Code: Select all

configure: error: in `/var/lib/dkms/amdgpu/19.50-967956/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.0.0-32-generic (amd64)
I installed build-essential and then the amdgpu-pro driver installation appeared to be successful, except for the extra 4 minutes needed. However, upon rebooting, there was a black screen, so the driver had to be removed in tty1.
Same result using the 4.15.0-72 kernel. The 5.3.0-xx kernel is still not supported.

EDITED:
Radeon Software for Linux 19.50 is supposed to support Ubuntu 18.04.3, so I tested that OS using the 5.0 kernel and got identical results.


Update 7-21-2020: I suspected my old Radeon R7 240 video card was the cause of not being able to install the AMDGPU-Pro driver from any package since Radeon Software for Linux version 19.30, although AMD said the card was still supported up to Radeon Software for Linux version 20.10. I think the card lost support right after version 19.30 but AMD did not remove it from their supported list of products right away. The most recent version, Radeon Software for Linux version 20.20 for Ubuntu 20.04, does not list that card anymore on the supported list.
I recently purchased a newer inexpensive AMD card; the Radeon RX 560. I tested all the Radeon Software versions that did not work with the previous card and here are the results:

Mint 19.3 using the 5.0.0-32 kernel:
Radeon Software for Linux version 19.50 for Ubuntu 18.04.3 fails, but after installing build-essential, it works.

Mint 19.3 using the 5.3.0-62 kernel:
Radeon Software for Linux version 20.10 for Ubuntu 18.04.4 HWE works, without installing build-essential.
Radeon Software for Linux version 20.20 for Ubuntu 20.04 fails.

Mint 20 using the 5.4.0-26 kernel:
Radeon Software for Linux version 20.20 for Ubuntu 20.04 works.
https://www.amd.com/en/support/kb/relea ... inux-20-20

EDITED 8-8-20:
Radeon™ Software for Linux® version 20.30 for Ubuntu 20.04.1 works in Mint 20:
https://www.amd.com/en/support/kb/relea ... inux-20-30


EDITED 8-8-20:
Radeon™ Software for Linux® version 20.30 for Ubuntu 20.04.1 works:
https://www.amd.com/en/support/kb/relea ... inux-20-30

Update 12-20-20: Radeon Software for Linux 20.45 for Ubuntu 20.04.1 installs OK with the 5.4.0-54 kernel but fails to install with the 5.4-0-56 kernel but there is a problem with that kernel and it has been removed from Update Manager.

Radeon Software for Linux version 20.45 for Ubuntu 20.04.1 will install for the 5.4.0-58 kernel if the newest package build is used. If you download the package from the usual location, the package build version is 20.45-1164792 and it will fail to install.
https://www.amd.com/en/support/kb/relea ... inux-20-45

The newer package build is 20.45-1188099 and you can get it from here:
https://www.amd.com/en/support/graphics ... rx-6900-xt

This is a support page for AMD Radeon™ RX 6900 XT Drivers but the package will work for other GPUs that are supported by the AMDGPU-Pro driver. Click the plus sign next to Ubuntu x86 64-Bit.
This info is given by Bridgman of the AMD staff on the fourth page of this topic in the AMD support forum:
https://community.amd.com/t5/drivers-so ... d-p/426676

He also mentions that the usual download location page with build 20.45-1164792 will be updated but that has not happened yet. I have found in the past for AMD to be tardy in updating important info on their websites.

Installation fails for the 5.8-0.33 kernel.


Update 3-21-21: Radeon Software for Linux version 20.50 for Ubuntu 20.04.1 and 20.04.2 installs fine using the 5.8.0-45 kernel: https://www.amd.com/en/support/kb/relea ... inux-20-50

EDITED: the 5.9 kernel is also supported (tested 5.9.12)

These installation commands can no longer be used:

Code: Select all

./amdgpu-pro-install --opencl=pal
./amdgpu-pro-install --opencl=pal,legacy
The PAL support option for OpenCL has been replace by ROCr, so the new commands will be:

Code: Select all

./amdgpu-pro-install --opencl=rocr
./amdgpu-pro-install --opencl=legacy,rocr
PAL OpenCL stack supports Vega 10 and later products and Legacy OpenCL stack supports legacy products older than Vega 10.
Last edited by roblm on Thu Apr 08, 2021 12:06 pm, edited 31 times in total.
sampctech

Re: How do I install AMDGPU-Pro on Mint 19?

Post by sampctech »

Just to start with, THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU!!!!!

Had already read AMDs documentation about what the 18.30 driver supports & it does list Radeon™ RX Vega Series Graphics​ which includes Vega 8+ & luckily, the Raven Ridge APUs. YEAH! I had resolve part of my resultion, split screen after reading through the furom & some of the posts as well as watching some youtube vide, but none resolved. Just resulted in alot of install & then reboot, remove.

So thought about reinstalling LinuxMint 19 Cinnamon 64-bit again & starting from the beginning first, per the 'fix broken' cmd not working to do anything, closed the terminal window out for some reason, unless it supposed to that. Anyway, went through DIRs & found 'os-release' in /usr/lib & created a backup in my Documents folder then edited the original & made the listing changes as you advised & saved.

Launched another terminal & ran ./amdgpu-pro-install & it ran, almost flawlessly till the end, but did give 1 error stating that the 'nomodeset' option needed to not be enabled. I rebooted & selected normal start & everything is now working. Now have full 1920x1080@60 over HDMI & have audio! Finally, have audio!!

Again, thank you thank you thank you. I greatly appreciate the assistance on this one. Now to start using it. will consider trying the OpenCL in th efuture, but have not yet.
ouck

Re: How do I install AMDGPU-Pro on Mint 19?

Post by ouck »

I try your solution roblm but I have an error:

Code: Select all

Dépaquetage de wsa-amdgpu:amd64 (18.30-633530) ...
Des erreurs ont été rencontrées pendant l'exécution :
 /tmp/apt-dpkg-install-tylSwg/17-libdrm-amdgpu-common_1.0.0-633530_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I try "apt install libdrm-amdgpu-common" same error:

Code: Select all

Préparation du dépaquetage de .../libdrm-amdgpu-common_1.0.0-633530_all.deb ...
Dépaquetage de libdrm-amdgpu-common (1.0.0-633530) ...
dpkg: erreur de traitement de l'archive /var/opt/amdgpu-pro-local/./libdrm-amdgpu-common_1.0.0-633530_all.deb (--unpack) :
 tentative de remplacement de « /opt/amdgpu/share/libdrm/amdgpu.ids », qui appartient aussi au paquet ids-amdgpu 1.0.0-572953
Des erreurs ont été rencontrées pendant l'exécution :
 /var/opt/amdgpu-pro-local/./libdrm-amdgpu-common_1.0.0-633530_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
inxi -G

Code: Select all

Graphics:  Card-1: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           Card-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480]
           Display Server: x11 (X.Org 1.19.6 ) drivers: amdgpu FAILED: modesetting Resolution: 1680x1050@59.88hz
           OpenGL: renderer: Radeon RX 480 Graphics version: 4.6.13536
sampctech

Re: How do I install AMDGPU-Pro on Mint 19?

Post by sampctech »

It looks like you may have already installed a version of the driver once before

OpenGL: renderer: Radeon RX 480 Graphics version: 4.6.13536

My thought would be to remove that drive per roblm instruction & run to fix unmet dependencies error

sudo apt install --fix-broken

Other wise, the only other suggestion I could give would be to make your RX480 the primary graphics card or disable the intel altogether.
ouck

Re: How do I install AMDGPU-Pro on Mint 19?

Post by ouck »

Thank's I have removed and reinstalled no error this time!

But inxi -G always give me a red FAILED:

Code: Select all

	   Graphics:  Card-1: Intel 2nd Generation Core Integrated Graphics Controller
           Card-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480]
           Display Server: x11 (X.Org 1.19.6 )
           drivers: amdgpu FAILED: modesetting
           Resolution: 1680x1050@59.88hz
           OpenGL: renderer: AMD Radeon RX 480 Graphics
           version: 4.6.13536 18.30.2.15
For the primary graphics I have already do it in the BIOS what to do more ?
I find that: viewtopic.php?t=266415#p1449201
He says order no matter
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

sampctech wrote: Thu Aug 23, 2018 1:54 am Had already read AMDs documentation about what the 18.30 driver supports & it does list Radeon™ RX Vega Series Graphics​ which includes Vega 8+ & luckily, the Raven Ridge APUs.
There was no question that Radeon Vega Graphics was supported by the AMDGPU-Pro driver for a desktop system using a discrete card, but would a Ryzen APU using integrated Radeon Vega Graphics be supported.

sampctech wrote: Thu Aug 23, 2018 1:54 am So thought about reinstalling LinuxMint 19 Cinnamon 64-bit again & starting from the beginning first, per the 'fix broken' cmd not working to do anything, closed the terminal window out for some reason, unless it supposed to that.
Here is an alternative method for anyone facing this kind of situation. Open the Synaptic Package Manager. You will probably see a message about there being broken packages on your system and to use the “Broken” filter to locate them. Click the Status category in the lower left. Click the Broken dependencies category in the upper left. The broken packages will be listed on the right. Click Edit > Fix Broken Packages. Click Apply.

sampctech wrote: Thu Aug 23, 2018 1:54 am Anyway, went through DIRs & found 'os-release' in /usr/lib & created a backup in my Documents folder then edited the original & made the listing changes as you advised & saved.
The original os-release file is the one in /usr/lib and the one in /etc is linked to it. Any changes made to the /etc/os-release file will also automatically be made in the /usr/lib/os-release file, and vise versa.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

ouck wrote: Fri Aug 24, 2018 5:37 am But inxi -G always give me a red FAILED:
I would not be concerned about that message. It refers to the unloaded modesetting driver.

During the startup of the X.Org X Server, there can be many drivers that are initially loaded but then all but one are unloaded, as seen in these lines from the Xorg.0.log file:

Code: Select all

[     5.852] (II) LoadModule: "amdgpu"
[     5.853] (II) LoadModule: "ati"
[     5.911] (II) LoadModule: "radeon"
[     5.944] (II) LoadModule: "modesetting"
[     5.944] (II) LoadModule: "fbdev"
[     5.945] (II) LoadModule: "vesa"

The inxi output is sometimes confusing, and even wrong. It gets it’s info from reading the Xorg.0.log file. The buggy operation of Xorg or both can lead to the sometimes confusing but harmless outputs.
I saved this inxi output from one of my previous installations. The supposedly failed nouveau driver was actually loaded and working correctly.

inxi-nouveau.png

Here is another confusing output. Can you tell which driver is loaded:

inxi -Gx vesa driver.png


Read this topic to get some insight on how inxi works, by the author of that program himself, h2-1.
viewtopic.php?f=47&t=271950

That’s why I always look at the Xorg.0.log file when I need to know for certain which driver is actually loading. Look for a group of lines with the name of the driver followed by (0):

Code: Select all

[     6.275] (II) AMDGPU(0): AMDGPU DDX hybrid version: 18.30.2.15
[     6.275] (II) AMDGPU(0): AMDGPU kernel module hybrid version: 18.30.2.15
[     6.275] (II) AMDGPU(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     6.275] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[     6.275] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[     6.275] (==) AMDGPU(0): Default visual is TrueColor
[     6.275] (==) AMDGPU(0): RGB weight 888
[     6.275] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[     6.275] (--) AMDGPU(0): Chipset: "AMD Radeon HD 8500 series" (ChipID = 0x6613)
patrikx3

Re: How do I install AMDGPU-Pro on Mint 19?

Post by patrikx3 »

roblm wrote: Wed Aug 22, 2018 2:12 pm If you read all the posts in this topic, then you should know that the -y option should be left off the installation command.

Your inxi output lists AMD Ryzen 3 2200G with Radeon Vega Graphics, which is an APU.

User Citizen229, in his topic says the AMDGPU-Pro driver can’t be installed on mobile GPUs as well as APUs:
viewtopic.php?f=59&t=248059

I've been looking for a statement by AMD to verify that but still haven't found one, so you will be testing an installation that may fail, but first change the word linuxmint back to ubuntu in the amdgpu-pro-install script. I’ll explain why later. I recommend a new installation. Otherwise, there will probably be an error message about unmet dependencies when you attempt a second installation. Use this command to try to fix that: sudo apt install --fix-broken


With the release of the Radeon Software for Linux 18.30 package, AMD has added another obstacle to the installation for Mint users who want to install the AMDGPU-Pro driver. With previous versions, the amdgpu-pro-install script was edited by changing the word ubuntu to linuxmint. That won’t work with the newest version. After the installation, if you view the installer log in the Terminal window, you will probably see these 3 lines at the end:
Errors were encountered while processing:
/tmp/apt-dpkg-install-VlDLjr/08-amdgpu-core_18.30-633530_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking deeper in the log, you will see these lines:
ERROR: This package can only be installed on Ubuntu 18.04.
dpkg: error processing archive /tmp/apt-dpkg-install-VlDLjr/08-amdgpu-core_18.30-633530_all.deb (--unpack):
new amdgpu-core package pre-installation script subprocess returned error exit status 1

If the amdgpu-pro-18.30-633530.tar.xz package is extracted and then the amdgpu-core_18.30-633530_all.deb package within it is extracted and then the control.tar.xz package within it is extracted, then the preinst script can be viewed:

Code: Select all

#!/bin/bash
set -e
. /etc/os-release

if [ "$VERSION_ID" != "18.04" ] ; then
	>&2 echo "ERROR: This package can only be installed on Ubuntu 18.04."
	exit 1
fi
exit 0
This script will run before the amdgpu-core package is installed. It checks in the system’s /etc/os-release file for a VERSION_ID="18.04" line, which is the latest version of Ubuntu. If that is not found, then the amdgpu-core package will not be installed, the error message will be seen in the installer log and the installation will fail.

The solution I found is to edit the /etc/os-release file. Use this command to open it: xed admin:///etc/os-release

Code: Select all

NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic
Change the word linuxmint to ubuntu in line 3 and change the number 19 to 18.04 in line 6. After the installation, you can change these back. The amdgpu-pro-install script does not have to be edited.

Proceed with the installation by right clicking on the downloaded amdgpu-pro-18.30-633530.tar.xz package and selecting Extract Here. Open the amdgpu-pro18.30-633530 folder. Right click in the empty space and select Open in Terminal. Use the command ./amdgpu-pro-install

If you also want to install the OpenCL component, then use this command for Vega10 and newer cards:
./amdgpu-pro-install --opencl=pal

Or this command for Pre Vega10 cards: ./amdgpu-pro-install --opencl=legacy

Reboot
Thanks so much! This is what I needed!!!
simonsaysthis
Level 2
Level 2
Posts: 59
Joined: Sun Jun 11, 2017 1:39 pm
Location: Pforzheim, Germany

Re: How do I install AMDGPU-Pro on Mint 19?

Post by simonsaysthis »

Hi all,

please excuse my laziness for not reading through the whole thread from the beginning. Aside from the correct way of installing the proprietary drivers, what is the current word for Mint 19 Cinnamon: should one use the non-free drivers from AMD with an RX570 or should I rather try to make do with the opensource drivers?

I do certainly get sound over HDMI issues now and again but its erratic.

Code: Select all

System:    Host: simon-AMD Kernel: 4.15.0-34-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: ASUSTeK model: PRIME A320M-K v: Rev X.0x serial: N/A
           UEFI: American Megatrends v: 4023 date: 08/20/2018
CPU:       6 core AMD Ryzen 5 1600X Six-Core (-MT-MCP-) 
           arch: Zen rev.1 cache: 3072 KB
           
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 43112
           clock speeds: max: 3600 MHz 1: 1918 MHz 2: 2086 MHz 3: 1898 MHz
           4: 1898 MHz 5: 1890 MHz 6: 2106 MHz 7: 1891 MHz 8: 1910 MHz
           9: 1913 MHz 10: 1976 MHz 11: 2008 MHz 12: 1894 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480]
           bus-ID: 07:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Radeon RX 570 Series (POLARIS10 / DRM 3.23.0 / 4.15.0-34-generic, LLVM 6.0.0)
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
           driver: snd_hda_intel bus-ID: 09:00.3
           Card-2 Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 580]
           driver: snd_hda_intel bus-ID: 07:00.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-34-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: f000 bus-ID: 05:00.0
           IF: enp5s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR9462 Wireless Network Adapter
           driver: ath9k bus-ID: 06:00.0
           IF: wlp6s0 state: up mac: <filter>
Drives:    HDD Total Size: 740.2GB (3.2% used)
           ID-1: /dev/sda model: WDC_WDS500G2B0A size: 500.1GB
           ID-2: /dev/sdb model: WDC_WDS240G2G0A size: 240.1GB
Partition: ID-1: / size: 98G used: 6.3G (7%) fs: ext4 dev: /dev/sdb1
           ID-2: /home size: 112G used: 6.3G (6%) fs: ext4 dev: /dev/sdb3
           ID-3: swap-1 size: 10.74GB used: 0.00GB (0%)
           fs: swap dev: /dev/sdb2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.5C mobo: N/A gpu: 36.0
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 290 Uptime: 2:06 Memory: 2391.6/16037.7MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 


sampctech

Re: How do I install AMDGPU-Pro on Mint 19?

Post by sampctech »

Have you updated to the most recent amdgpu driver through the update manager? I recently did & had a similar issue occur, not all the time, but real bad when using steam or streaming youtube or Amazon etc. I ended up restoring before the latest update & resolved both problems.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: How do I install AMDGPU-Pro on Mint 19?

Post by roblm »

simonsaysthis wrote:what is the current word for Mint 19 Cinnamon: should one use the non-free drivers from AMD with an RX570 or should I rather try to make do with the opensource drivers?

I do certainly get sound over HDMI issues now and again but its erratic.

Other users on this forum may be able to answer your question better based on their experience, but generally the open source driver performs better in most tasks than the amdgpu-pro driver but not as well in some. The amdgpu-pro hybrid driver is mostly open source code with a little proprietary code added.

For gaming, the open source driver outperforms amdgpu-pro.

If you frequently need to utilize the processing power of the video card to assist the CPU in high computation tasks such as video and image editing, 3D modeling, animation and rendering apps, and GPU mining of cryptocurrencies, then the proprietary stack included with the amdgpu-pro driver is superior, using it’s OpenCL component to accelerate computations. Traditionally these tasks would only be handled by the CPU.

Also, if you’re having an issue with sound or something not working optimally with the default radeon or amdgpu driver, then I would suggest trying the amdgpu-pro driver, or a newer kernel in Update Manager.

A good site that is updated regularly with info on testing Linux graphics and hardware performance is Phoronix.

https://www.phoronix.com/scan.php?page= ... AMDGPU-PRO
Last edited by roblm on Sun Dec 02, 2018 12:46 pm, edited 1 time in total.
Locked

Return to “Graphics Cards & Monitors”