This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Installing AMDGPU-PRO on Neon

Tags: None
(comma "," separated)
nonbeing
Registered Member
Posts
7
Karma
0

Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 10:27 pm
I have an RX 480 on a new PC. Polaris isn't supported by kernel 4.4, so I need to install the proprietary driver (which I was planning to do at some point anyway). This is done using a script provided by AMD with the driver download. The script technically only supports Ubuntu and SteamOS, which has caused problems for users of unofficial Ubuntu derivatives such as Mint, Elementary, and in my case Neon, because the terminal will output "Unsupported OS" when you attempt to run the install. I have seen that some Mint users have successfully installed it my changing the word "ubuntu" in the script to "linux mint" or something along those lines, and I was wondering how to do this for Neon. I am a new Linux user and I have no programming experience, so I am not able to do it myself. I will post my system requirements and a full copypaste of the script below.

My PC:
CPU:i5-6500 @3.2 GHz
Mobo: MSI B150m Mortar
GPU: RX 480 8 GB (reference)
Neon version: latest, downloaded from official site

I can post anything else that might be important.

amdgpu-pro-install

Code: Select all
#!/bin/bash
#
# Copyright 2016 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

set -e

REPOSITORY="/var/opt/amdgpu-pro"

usage() {
   cat <<END_USAGE
Usage: $PROG [options...]

Options:
  -h|--help  display this help message
  Unless the -h|--help option is given, 'apt-get' options may be present.

END_USAGE
}

function stderr() {
   cat - 1>&2
}

function os_release() {
   [[ -r  /etc/os-release ]] && . /etc/os-release

   case "$ID" in
   ubuntu)
      PACKAGES="amdgpu-pro amdgpu-pro-lib32 amdgpu-pro-dkms"
      ;;
   steamos)
      PACKAGES="amdgpu-pro-driver amdgpu-pro-lib32 "`
         `"glx-alternative-amdgpu-pro amdgpu-pro-dkms"
      ;;
   *)
      echo "Unsupported OS" | stderr
      exit 1
      ;;
   esac
}

function source_list() {
   local dir etc sourceparts

   eval $(apt-config shell dir Dir)
   eval $(apt-config shell etc Dir::Etc)
   eval $(apt-config shell sourceparts Dir::Etc::sourceparts)

   echo ${dir}${etc}${sourceparts}/amdgpu-pro.list
}

function amdgpu_pro_install() {
   local src=$(cd ${0%/*} && pwd -P)
   local index=$src/Packages.gz

   os_release
   amdgpu_pro_uninstall $@

   if [[ -r $index ]]; then
      $SUDO mkdir -p $REPOSITORY && $SUDO cp -af $src/* $_
      $SUDO ln -s $_/$PROG $SBIN/${PROG%-*}-uninstall

      echo "deb file:$REPOSITORY/ ./" | $SUDO tee $(source_list)
      $SUDO apt-get update ||:
      $SUDO apt-get $@ install $PACKAGES
   fi
}

function amdgpu_pro_uninstall() {
   local p
   local installed=()

   [[ -r "$(source_list)" ]] || return 0

   for p in $(zcat $REPOSITORY/Packages.gz | awk '{
      if ($1 == "Package:")
         p = $2;
      else if ($1 == "Architecture:")
         print p ":" $2
   }')
   do
      if dpkg -s $p >/dev/null 2>&1; then
         installed+=($p)
      fi
   done

   $SUDO apt-get $@ remove --purge ${installed[@]}
   $SUDO rm -rf $SBIN/${PROG%-*}-uninstall $(source_list) $REPOSITORY
   $SUDO apt-get update ||:
}

PROG=${0##*/}
ARGS="$@"
SUDO=$([[ $(id -u) -ne 0 ]] && echo "sudo" ||:)
SBIN="/usr/bin"

while (($#))
do
   case "$1" in
   -h|--help)
      usage
      exit 0
      ;;
   *)
      shift
      ;;
   esac
done

set -- $ARGS
amdgpu_pro_${0##*-} $@
User avatar
wferreira
Registered Member
Posts
58
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 10:37 pm
Have you seen this tutorial: https://help.ubuntu.com/community/RadeonDriver ???


LPIC-1 SysAdmin l Entrepreneur - IT Enthusiast
XFCE & KDE Plasma
nonbeing
Registered Member
Posts
7
Karma
0

Re: Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 10:43 pm
wferreira wrote:Have you seen this tutorial: https://help.ubuntu.com/community/RadeonDriver ???


AMDGPU is not the same thing as radeon. In the guide you linked, it actually says
Ubuntu 16.04 LTS: for some most recent cards (R9 285, R9 380/380X, R9 M395X, R9 Nano, R9 Fury/FuryX), open-source driver AMDGPU is enabled by default. For the very latest Radeon RX 4xx graphics cards, AMDGPU-Pro hybrid driver is available to download here (please read the release notes for known problems and limitations).

(emphasis mine)
User avatar
wferreira
Registered Member
Posts
58
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 10:52 pm
nonbeing wrote:
wferreira wrote:Have you seen this tutorial: https://help.ubuntu.com/community/RadeonDriver ???


AMDGPU is not the same thing as radeon. In the guide you linked, it actually says
Ubuntu 16.04 LTS: for some most recent cards (R9 285, R9 380/380X, R9 M395X, R9 Nano, R9 Fury/FuryX), open-source driver AMDGPU is enabled by default. For the very latest Radeon RX 4xx graphics cards, AMDGPU-Pro hybrid driver is available to download here (please read the release notes for known problems and limitations).


but if you are not mistaken versions "R" use the same modules / drivers that Radeons ...

I found this articles:

https://forum.ethereum.org/discussion/8250/ubuntu-16-04-lts-rx-480-mining-ethereum-confirmed-working
Have you seen this tutorial own AMD? http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx
I found this article too in Reddit: https://www.reddit.com/r/linux_gaming/comments/4qs7qx/rx_480_on_anything_but_ubuntu/

From what I read it seems that is a known bug by Kernel.org :(


LPIC-1 SysAdmin l Entrepreneur - IT Enthusiast
XFCE & KDE Plasma
nonbeing
Registered Member
Posts
7
Karma
0

Re: Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 11:15 pm
wferreira, with all due respect, did you read my OP? The radeon driver does not support new amd cards because a better one has been released, that is actually said in the linked guide. The kernel issue only applies to the free version of amdgpu. Even if that were working I would still want to install the proprietary version, so that's actually something of a moot point. And I already know how to install the driver, I've actually done it several times on ubuntu already, and it solved my driver-related issues.

The specific issue that I made this thread about is altering the installation script (that I included in OP for reference) such that it will install AMDGPU-PRO on Neon.

To give a better idea of what I mean by this, here is someone doing something similar for mint in a reddit thread: https://www.reddit.com/r/elementaryos/comments/4wl6f0/amd_gpu_pro_on_loki_ubuntu_1604/d7nt9yc?st=itgdubg3&sh=7102bed0

I want to know how to do this same thing for neon. I know that it seems like something very simple, but part of the problem is that I don't know what neon's name is for the purpose replacing "ubuntu" in this script. I tried a few like "neon" and "kdeneon" (for example; I can't remember which guesses I tried exactly) but to no avail.
User avatar
wferreira
Registered Member
Posts
58
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Fri Sep 23, 2016 11:30 pm
nonbeing wrote:wferreira, with all due respect, did you read my OP? The radeon driver does not support new amd cards because a better one has been released, that is actually said in the linked guide. The kernel issue only applies to the free version of amdgpu. Even if that were working I would still want to install the proprietary version, so that's actually something of a moot point. And I already know how to install the driver, I've actually done it several times on ubuntu already, and it solved my driver-related issues.

The specific issue that I made this thread about is altering the installation script (that I included in OP for reference) such that it will install AMDGPU-PRO on Neon.

To give a better idea of what I mean by this, here is someone doing something similar for mint in a reddit thread: https://www.reddit.com/r/elementaryos/comments/4wl6f0/amd_gpu_pro_on_loki_ubuntu_1604/d7nt9yc?st=itgdubg3&sh=7102bed0

I want to know how to do this same thing for neon. I know that it seems like something very simple, but part of the problem is that I don't know what neon's name is for the purpose replacing "ubuntu" in this script. I tried a few like "neon" and "kdeneon" (for example; I can't remember which guesses I tried exactly) but to no avail.


Understand, sorry dude :(


LPIC-1 SysAdmin l Entrepreneur - IT Enthusiast
XFCE & KDE Plasma
nonbeing
Registered Member
Posts
7
Karma
0

Re: Installing AMDGPU-PRO on Neon

Sat Sep 24, 2016 12:03 am
Understand, sorry dude :(


No problem

Hopefully someone does have an answer to this question though, as it seems fairly simple.
vishalrao
Registered Member
Posts
157
Karma
0
OS
Hello,

Have you tried replacing the "ubuntu" with "neon" (probably without the quotes) in the script you posted, this snippet?

Code: Select all
function os_release() {
   [[ -r  /etc/os-release ]] && . /etc/os-release

   case "$ID" in
   ubuntu)
      PACKAGES="amdgpu-pro amdgpu-pro-lib32 amdgpu-pro-dkms"
      ;;


"Thou shalt not follow the null pointer for at its end madness and chaos lie."
vishalrao
Registered Member
Posts
157
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Sat Sep 24, 2016 6:41 am
Explanation is that in the file /etc/os-release there is the "ID" variable set to "neon" which is what is being checked in that snippet of the script. I guess in stock ubuntu/kubuntu it would be "ubuntu".


"Thou shalt not follow the null pointer for at its end madness and chaos lie."
nonbeing
Registered Member
Posts
7
Karma
0

Re: Installing AMDGPU-PRO on Neon

Sun Sep 25, 2016 12:35 am
vishalrao, I will give it a try and report on the result when I get a chance.

Edit: It worked! The driver is now running successfully as far as I can tell. Thanks for the help.

One question, though: What happened to the driver manager, or device manager, or whatever it was called? I can't find it in the launcher, krunner, or discover.
tomg
Registered Member
Posts
3
Karma
0

Re: Installing AMDGPU-PRO on Neon

Tue Feb 21, 2017 11:31 pm
Did you manage to get this to work? I have been trying the AMDGPU-PRO driver working on the latest neon and although I can install it by editing the script I get a blank screen on boot. My GPU is a HD7770 which is supported, and the driver installs and runs fine under a fully updated vanilla Kubuntu 16.04 LTS.
nicodemusteck
Registered Member
Posts
2
Karma
0

Re: Installing AMDGPU-PRO on Neon

Wed Feb 22, 2017 12:29 pm
(double post, sorry)

Last edited by nicodemusteck on Wed Feb 22, 2017 12:31 pm, edited 1 time in total.
nicodemusteck
Registered Member
Posts
2
Karma
0

Re: Installing AMDGPU-PRO on Neon

Wed Feb 22, 2017 12:30 pm
nicodemusteck wrote:
tomg wrote:Did you manage to get this to work? I have been trying the AMDGPU-PRO driver working on the latest neon and although I can install it by editing the script I get a blank screen on boot. My GPU is a HD7770 which is supported, and the driver installs and runs fine under a fully updated vanilla Kubuntu 16.04 LTS.


I have exact the same issue as Tomg with KDE Neon. After the install of the official AMDGPU-Pro driver there is only a blank screen. I need to run the AMDGPU-Pro driver because HDMI audio works only with this driver (rx480). I tried some workarounds but nothing works.

It would be awesome if someone could offer a solution
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Wed Feb 22, 2017 2:46 pm
Change the script ubuntu in neon and started the script. Drivers have not changed since November, so I believe that still does not work.
I think that radeon must blacklist and kernel needs a 4.4
rdit.
I have a Asus R7 260x GPU, the GPU is on the list of supported by AMD. I'm interested in whether someone is able to install amdgpu-pro drivers for this GPU, and if there's improvement in quality.
I think that AMD dropped the support for Linux and was based solely on windows10.
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Installing AMDGPU-PRO on Neon

Wed Feb 22, 2017 10:17 pm
/lib/firmware/amdgpu/carrizo_ce.bin
/lib/firmware/amdgpu/carrizo_me.bin
/lib/firmware/amdgpu/carrizo_mec.bin
/lib/firmware/amdgpu/carrizo_mec2.bin
/lib/firmware/amdgpu/carrizo_pfp.bin
/lib/firmware/amdgpu/carrizo_rlc.bin
/lib/firmware/amdgpu/carrizo_sdma.bin
/lib/firmware/amdgpu/carrizo_sdma1.bin
/lib/firmware/amdgpu/carrizo_uvd.bin
/lib/firmware/amdgpu/carrizo_vce.bin
/lib/firmware/amdgpu/fiji_ce.bin
/lib/firmware/amdgpu/fiji_mc.bin
/lib/firmware/amdgpu/fiji_me.bin
/lib/firmware/amdgpu/fiji_mec.bin
/lib/firmware/amdgpu/fiji_mec2.bin
/lib/firmware/amdgpu/fiji_pfp.bin
/lib/firmware/amdgpu/fiji_rlc.bin
/lib/firmware/amdgpu/fiji_sdma.bin
/lib/firmware/amdgpu/fiji_sdma1.bin
/lib/firmware/amdgpu/fiji_smc.bin
/lib/firmware/amdgpu/fiji_uvd.bin
/lib/firmware/amdgpu/fiji_vce.bin
/lib/firmware/amdgpu/polaris10_ce.bin
/lib/firmware/amdgpu/polaris10_mc.bin
/lib/firmware/amdgpu/polaris10_me.bin
/lib/firmware/amdgpu/polaris10_mec.bin
/lib/firmware/amdgpu/polaris10_mec2.bin
/lib/firmware/amdgpu/polaris10_pfp.bin
/lib/firmware/amdgpu/polaris10_rlc.bin
/lib/firmware/amdgpu/polaris10_sdma.bin
/lib/firmware/amdgpu/polaris10_sdma1.bin
/lib/firmware/amdgpu/polaris10_smc.bin
/lib/firmware/amdgpu/polaris10_smc_sk.bin
/lib/firmware/amdgpu/polaris10_uvd.bin
/lib/firmware/amdgpu/polaris10_vce.bin
/lib/firmware/amdgpu/polaris11_ce.bin
/lib/firmware/amdgpu/polaris11_mc.bin
/lib/firmware/amdgpu/polaris11_me.bin
/lib/firmware/amdgpu/polaris11_mec.bin
/lib/firmware/amdgpu/polaris11_mec2.bin
/lib/firmware/amdgpu/polaris11_pfp.bin
/lib/firmware/amdgpu/polaris11_rlc.bin
/lib/firmware/amdgpu/polaris11_sdma.bin
/lib/firmware/amdgpu/polaris11_sdma1.bin
/lib/firmware/amdgpu/polaris11_smc.bin
/lib/firmware/amdgpu/polaris11_smc_sk.bin
/lib/firmware/amdgpu/polaris11_uvd.bin
/lib/firmware/amdgpu/polaris11_vce.bin
/lib/firmware/amdgpu/stoney_ce.bin
/lib/firmware/amdgpu/stoney_me.bin
/lib/firmware/amdgpu/stoney_mec.bin
/lib/firmware/amdgpu/stoney_pfp.bin
/lib/firmware/amdgpu/stoney_rlc.bin
/lib/firmware/amdgpu/stoney_sdma.bin
/lib/firmware/amdgpu/stoney_uvd.bin
/lib/firmware/amdgpu/stoney_vce.bin
/lib/firmware/amdgpu/tonga_ce.bin
/lib/firmware/amdgpu/tonga_mc.bin
/lib/firmware/amdgpu/tonga_me.bin
/lib/firmware/amdgpu/tonga_mec.bin
/lib/firmware/amdgpu/tonga_mec2.bin
/lib/firmware/amdgpu/tonga_pfp.bin
/lib/firmware/amdgpu/tonga_rlc.bin
/lib/firmware/amdgpu/tonga_sdma.bin
/lib/firmware/amdgpu/tonga_sdma1.bin
/lib/firmware/amdgpu/tonga_smc.bin
/lib/firmware/amdgpu/tonga_uvd.bin
/lib/firmware/amdgpu/tonga_vce.bin
/lib/firmware/amdgpu/topaz_ce.bin
/lib/firmware/amdgpu/topaz_mc.bin
/lib/firmware/amdgpu/topaz_me.bin
/lib/firmware/amdgpu/topaz_mec.bin
/lib/firmware/amdgpu/topaz_mec2.bin
/lib/firmware/amdgpu/topaz_pfp.bin
/lib/firmware/amdgpu/topaz_rlc.bin
/lib/firmware/amdgpu/topaz_sdma.bin
/lib/firmware/amdgpu/topaz_sdma1.bin
/lib/firmware/amdgpu/topaz_smc.bin


This is a harsh truth firmware amdgpu, this means that for the rest of AMD GPU valid radenon driver. This also means that only the GPU from the list firmware amdgpu can support amdgpu-pro.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar