Results 1 to 10 of 10

Thread: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

  1. #1
    Join Date
    Aug 2007
    Beans
    60

    HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    I just got my brand new RX 5700 XT and had to do a bit of trial and error to get it up and running, as I couldn't find a complete guide on how to do so. This should most definitely work with the regular RX 5700 as well, but I can't test.
    Edit: If you're from the future and running 19.10, everything should work out of the box and this guide will be obsolete.

    First of all the kernel needs to be updated to 5.3rc1 or later, I'm using 5.3rc6 as of August 30th. You can get kernel debs from here or do as me and install "Mainline", a tool for handling custom kernel updates.
    Code:
    sudo add-apt-repository ppa:cappelikan/ppa
    sudo apt update && sudo apt -y install mainline
    Open "Ubuntu Mainline" from applications menu, go to settings and uncheck "Hide unstable and RC releases" and install the latest 5.3 kernel. (You might have to close and reopen the application before installing)

    Next we need newer versions of llvm and mesa. Luckily everything is neatly packaged for us in Oibaf's PPA.
    Code:
    sudo add-apt-repository ppa:oibaf/graphics-drivers
    sudo apt update && sudo apt -y upgrade
    Finally we download the proprietary firmware files for Navi 10 and place them in /lib/firmware/amdgpu
    Code:
    wget -r -np -R "index.html*" https://people.freedesktop.org/~agd5f/radeon_ucode/navi10/
    cd people.freedesktop.org/~agd5f/radeon_ucode/navi10/
    sudo cp navi* /lib/firmware/amdgpu
    Reboot and enjoy!

    Edit: If you have an AMD Freesync compatible monitor like me, you probably want to enable Freesync. You can check if your monitor is capable by running xrandr --props and look for the line that says vrr_capable: 1. Freesync works only in Xorg and not in Wayland, unfortunately.
    Edit2: Freesync seems to freeze the system when launching a 3D application. The only reason it didn't do so in the first place for me is because Freesync is only active on single monitor setups. You can use this to test and enable it when it is fixed, but for now leave this option as "false".
    Code:
    sudo nano /usr/share/X11/xorg.conf.d/10-amdgpu.conf
    Add the line Option "VariableRefresh" "true", so it looks something like this:
    Code:
    Section "OutputClass"
            Identifier "AMDgpu"
            MatchDriver "amdgpu"
            Driver "amdgpu"
            Option "VariableRefresh" "true"
    EndSection
    You can verify that it's enabled using:
    Code:
    grep -w VariableRefresh ~/.local/share/xorg/Xorg.0.log
    Uninstall guide:
    Remove 5.3rc kernels using mainline. You will have to boot an earlier kernel version before doing so.

    Remove Oibaf's PPA and downgrade packages.
    Code:
    sudo apt install ppa-purge
    sudo ppa-purge ppa:oibaf/graphics-drivers
    Remove firmware files. If you in the future have upgraded to 19.10 don't do this, as firmware files should be included in that release.
    Code:
    sudo rm /lib/firmware/amdgpu/navi*
    Last edited by Claritux; 5 Days Ago at 02:11 PM.

  2. #2
    Join Date
    Feb 2013
    Beans
    11

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Can confirm. I ran these steps and now my card is being recognized. Thank you!

  3. #3
    Join Date
    Sep 2019
    Beans
    7

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    I created an account just to note that this absolutely works on my 5700 (not the XT)! Windows 10 was giving me a bluescreen if I had more than one application open, so I decided to download Ubuntu bungie and follow these steps! Although I had issues building mainline with these steps, I just used ukuu (You can still get it free on the git release page)
    Last edited by montfox; 4 Days Ago at 12:45 AM. Reason: Didn't want to give the link to an umaintained git

  4. #4
    Join Date
    Sep 2019
    Beans
    1

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    The only solution that works for RX 5700XT, thank you! However please be aware that kernel 5.3rc7 doesn't work, only 5.3rc6. rc7 fails to load navi FW and consequently nothing is visible on the screen.

  5. #5
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Not a request for help.

    Thread moved to Tutorials.

    @Claritux, thank you for posting this howto. Please see the Tutorials Guidelines sticky
    Ubuntu 16.04 Desktop Guide - Ubuntu 18.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  6. #6
    Join Date
    Aug 2007
    Beans
    60

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Quote Originally Posted by coffeecat View Post
    Not a request for help.

    Thread moved to Tutorials.

    @Claritux, thank you for posting this howto. Please see the Tutorials Guidelines sticky
    Will do! Thanks for moving the thread!

  7. #7
    Join Date
    Aug 2007
    Beans
    60

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Quote Originally Posted by dlapik View Post
    The only solution that works for RX 5700XT, thank you! However please be aware that kernel 5.3rc7 doesn't work, only 5.3rc6. rc7 fails to load navi FW and consequently nothing is visible on the screen.
    That's odd. 5.3rc7 works fine with me. 5.3rc8 is out now, maybe give that a go!

  8. #8
    Join Date
    Aug 2007
    Beans
    60

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Quote Originally Posted by montfox View Post
    I created an account just to note that this absolutely works on my 5700 (not the XT)! Windows 10 was giving me a bluescreen if I had more than one application open, so I decided to download Ubuntu bungie and follow these steps! Although I had issues building mainline with these steps, I just used ukuu (You can still get it free on the git release page https://github.com/teejee2008/ukuu/releases),
    I didn't want to include Ukuu in the tutorial, as the original author has discontinued his original project and made it proprietary, but I'm happy you got it to work!
    Edit: Mainline has a PPA now. I will update the tutorial with that. I recommend switching over, as the GitHub version of Ukuu is unmaintained.
    Last edited by Claritux; 5 Days Ago at 02:09 PM.

  9. #9
    Join Date
    Sep 2019
    Beans
    7

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    Quote Originally Posted by Claritux View Post
    I didn't want to include Ukuu in the tutorial, as the original author has discontinued his original project and made it proprietary, but I'm happy you got it to work!
    Edit: Mainline has a PPA now. I will update the tutorial with that. I recommend switching over, as the GitHub version of Ukuu is unmaintained.
    Added to my PPA, but package manager is unable to find mainline

    Code:
    Hit:4 http://ppa.launchpad.net/cappelikan/ppa/ubuntu bionic InRelease
    
    sudo apt install mainline
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package mainline

  10. #10
    Join Date
    Aug 2007
    Beans
    60

    Re: HOWTO: RX 5700 XT/RX 5700 with open source drivers on Ubuntu 19.04

    It seems the PPA had a build failiure for the 18.04 package. You can try running the 19.04 .deb until it's updated:
    https://code.launchpad.net/~cappelik...04.1_amd64.deb

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •