Linux MintUbuntu Based

How To Install AMD Radeon Driver on Linux Mint 22

Install AMD Radeon Driver on Linux Mint 22

In this tutorial, we will show you how to install AMD Radeon Driver on Linux Mint 22. Installing the correct AMD Radeon driver on Linux Mint 22 is crucial for optimal graphics performance, stability, and compatibility with modern applications. This comprehensive guide will walk you through the process of installing and configuring AMD Radeon drivers on the latest Linux Mint distribution, ensuring your system is ready for everything from casual browsing to intense gaming sessions.

Whether you’re a Linux newcomer or a seasoned user, this article covers multiple installation methods, troubleshooting tips, and performance optimization techniques. By the end, you’ll have a rock-solid understanding of how to get your AMD graphics card running smoothly on Linux Mint 22.

Prerequisites for AMD Radeon Driver Installation

Before diving into the installation process, it’s essential to ensure your system meets the necessary requirements and is properly prepared. Let’s cover the hardware and software prerequisites:

Hardware Requirements

  • Supported Radeon Models: This guide primarily focuses on AMD Radeon graphics cards from the RX 400-Series up to the latest RX 7000-Series. Older models may require different approaches or might be limited to open-source drivers.
  • PCIe Slot Verification: Ensure your graphics card is properly seated in a compatible PCIe slot on your motherboard.
  • Power Supply Considerations: Verify that your power supply unit (PSU) can handle the power requirements of your specific AMD Radeon model. Inadequate power can lead to system instability or failure to boot.

System Preparation

Before installing new drivers, it’s crucial to update your Linux Mint system and install necessary tools. Open a terminal and run the following commands:

  1. Update your system:
    sudo apt update && sudo apt upgrade -y
  2. Check your current graphics stack:
    glxinfo | grep "OpenGL renderer"

    This command will display your current graphics driver. If it shows “llvmpipe” or “software rasterizer,” it indicates that you’re not using a hardware-accelerated driver.

  3. Install essential build tools:
    sudo apt install build-essential dkms linux-headers-generic

    These packages are necessary for compiling kernel modules and ensuring compatibility with your system.

Automatic Installation Methods

Linux Mint 22 offers several user-friendly methods to install AMD Radeon drivers automatically. These approaches are recommended for most users due to their simplicity and reliability.

Using Driver Manager (Default Method)

The Driver Manager is Linux Mint’s built-in tool for handling proprietary drivers. It’s particularly recommended for users with RX 5000 series cards and newer.

  1. Open the Start Menu and search for “Driver Manager”
  2. Launch the Driver Manager application
  3. Enter your password when prompted
  4. Wait for the system to scan for available drivers
  5. Look for an entry related to your AMD graphics card
  6. Select the recommended driver (usually labeled as “amdgpu”)
  7. Click “Apply Changes” and wait for the installation to complete
  8. Reboot your system when prompted

AMDGPU-PRO via Official Repositories

For users who require specific features or optimizations, installing the AMDGPU-PRO driver directly from AMD’s repositories is an excellent option.

  1. Add AMD’s repository key:
    wget -qO - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
  2. Add the repository for Linux Mint 22 (based on Ubuntu 24.04 Noble Numbat):
    echo 'deb [arch=amd64] https://repo.radeon.com/amdgpu/latest/ubuntu noble main' | sudo tee /etc/apt/sources.list.d/amdgpu.list
  3. Update your package list:
    sudo apt update
  4. Install the AMDGPU-PRO driver:
    sudo amdgpu-install --usecase=graphics,rocm

    This command installs both the graphics driver and ROCm (Radeon Open Compute) stack for GPU compute capabilities.

  5. Reboot your system to apply the changes:
    sudo reboot

Manual Driver Installation

For advanced users or those with specific requirements, manually installing the AMD Radeon driver offers more control over the process. This method is particularly useful for troubleshooting or when automatic methods fail.

Downloading Correct Packages

  1. Visit the AMD Driver Support page
  2. Use the AMD Driver Selector tool to choose your specific graphics card model
  3. Select “Linux x86_64” as the operating system
  4. Download the appropriate driver package (choose between ROCm-integrated or legacy driver stacks based on your needs)

Installation Process

  1. Open a terminal and navigate to the directory containing the downloaded driver package
  2. Extract the package:
    tar -xf amdgpu-pro-*.tar.xz
  3. Change to the extracted directory:
    cd amdgpu-pro-*
  4. Install dependencies:
    sudo apt install libdrm-amdgpu1 libgl1-mesa-dri
  5. Run the installation script:
    sudo ./amdgpu-pro-install -y --opencl=legacy

    The “–opencl=legacy” flag ensures compatibility with a wider range of applications.

  6. Reboot your system:
    sudo reboot

Post-Install Configuration

After installation, some additional configuration steps may be necessary:

  1. For multi-GPU setups, create a custom Xorg configuration file:
    sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf

    Add the following content:

    Section "Device"
        Identifier "AMD Graphics"
        Driver "amdgpu"
        Option "TearFree" "true"
    EndSection
  2. Set up Vulkan ICD (Installable Client Driver):
    sudo ln -s /opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json /etc/vulkan/icd.d/
  3. Add your user to the necessary groups:
    sudo usermod -a -G render,video $USER

PPA Installation Method

Personal Package Archives (PPAs) offer an alternative way to install updated graphics drivers. This method is particularly useful for users who want bleeding-edge features or specific optimizations.

Oibaf/Mesa PPA

The Oibaf PPA provides the latest Mesa drivers, which can significantly improve performance for open-source AMD drivers.

  1. Add the Oibaf PPA:
    sudo add-apt-repository ppa:oibaf/graphics-drivers
  2. Update your system:
    sudo apt update && sudo apt upgrade -y

Kisak Fresh PPA

For users who prefer a more stable alternative with strong Vulkan support, the Kisak Fresh PPA is an excellent choice.

  1. Add the Kisak Fresh PPA:
    sudo add-apt-repository ppa:kisak/kisak-mesa
  2. Update your system:
    sudo apt update && sudo apt upgrade -y

Post-Update Actions

After installing drivers via PPA, ensure 32-bit compatibility and resolve any dependency conflicts:

  1. Force 32-bit library installation:
    sudo apt install libgl1-mesa-dri:i386 mesa-vulkan-drivers:i386
  2. If you encounter any conflicts, try:
    sudo apt --fix-broken install

Verification & Testing

After installation, it’s crucial to verify that your AMD Radeon driver is working correctly and delivering optimal performance.

Diagnostic Commands

  1. Check GPU recognition:
    lspci -vnn | grep VGA

    This should display your AMD Radeon card model.

  2. Verify OpenGL functionality:
    glxgears -info

    This command runs a simple OpenGL benchmark and displays driver information.

Performance Benchmarks

For a more comprehensive performance assessment:

  1. Install GpuTest:
    sudo apt install gputest
  2. Run various GPU tests and compare frame rates with expected performance for your card model.

ROCm Validation

If you’ve installed the ROCm stack for GPU compute:

  1. Verify HIP runtime:
    rocminfo

    This should display detailed information about your GPU’s compute capabilities.

  2. Check OpenCL device enumeration:
    clinfo

    This command lists all available OpenCL devices.

Troubleshooting Common Issues

Even with careful installation, you may encounter some issues. Here are solutions to common problems:

Black Screen on Boot

If you experience a black screen after installing drivers:

  1. Boot into recovery mode by holding Shift during startup
  2. Select “Root Shell” from the recovery menu
  3. Uninstall the problematic driver:
    amdgpu-uninstall
  4. Reboot and try a different installation method

Vulkan API Missing Errors

For Vulkan-related issues:

  1. Ensure Vulkan libraries are installed:
    sudo apt install libvulkan1 mesa-vulkan-drivers vulkan-tools
  2. Verify Vulkan loader is working:
    vulkaninfo

Kernel Module Compilation Failures

If you encounter errors during driver installation related to kernel modules:

  1. Ensure your kernel headers are installed:
    sudo apt install linux-headers-$(uname -r)
  2. Check for any DKMS errors:
    dkms status
  3. If issues persist, try rebuilding the module:
    sudo dkms remove amdgpu/<version> --all
    sudo dkms install amdgpu/<version>

    Replace <version> with the actual driver version.

Performance Optimization

To squeeze every bit of performance from your AMD Radeon card on Linux Mint 22, consider these optimization techniques:

MESA Configuration

For improved gaming performance, set the following environment variables:

export RADV_PERFTEST=aco
export MESA_VK_WSI_PRESENT_MODE=immediate

Add these lines to your ~/.bashrc file for permanent effect.

ROCm Tuning

For compute workloads, prioritize your GPU:

export HSA_OVERRIDE_GFX_VERSION=10.3.0
export HIP_VISIBLE_DEVICES=0

Monitoring Tools

Install CoreCtrl for advanced GPU monitoring and control:

sudo apt install corectrl

Use CoreCtrl to create custom fan curves, adjust power limits, and monitor temperatures in real-time.

Congratulations! You have successfully installed AMD Radeon Driver. Thanks for using this tutorial for installing the AMD Radeon Driver on Linux Mint 22 system. For additional help or useful information, we recommend you check the official AMD website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button