Install AMD Drivers in Kali Linux: Step-by-Step
In this article
Installing AMD graphics drivers in Kali Linux gives you hardware-accelerated rendering, better performance in GPU-accelerated tools (like Hashcat or John the Ripper), and smoother desktop experience. Kali is Debian-based, so you can use the open-source AMDGPU driver that ships with the kernel, or the proprietary AMDGPU-PRO driver for specific workloads. This guide walks you through both methods, with a focus on the open-source driver first because it's the most stable and recommended for Kali.
What You'll Need
- A Kali Linux system (preferably 2023+ or a rolling release) with an AMD Radeon GPU (GCN 1.0 or newer, i.e., HD 7000 series and later).
- Root/sudo access to the terminal.
- Internet connection to download packages.
- If you plan to use the proprietary driver, ensure you have the exact model name of your GPU (e.g., Radeon RX 580, Radeon VII).
Step-by-Step
Method 1: Install the Open-Source AMDGPU Driver (Recommended)
- Update your system: Open a terminal and run
sudo apt update && sudo apt upgrade -y. This ensures your kernel and firmware are current, which is essential for the AMDGPU driver. - Check your kernel version: Run
uname -r. The AMDGPU driver is included in the Linux kernel since version 4.2, so any recent Kali kernel (5.x or 6.x) will have it. If you have a very old kernel, consider upgrading Kali first. - Install the firmware (if needed): For most modern AMD GPUs, the firmware is already in the
firmware-amd-graphicspackage. Install it withsudo apt install firmware-amd-graphics. This is often already installed, but it doesn't hurt to ensure it's present. - Reboot your system: After installing firmware, reboot with
sudo reboot. The AMDGPU driver should load automatically for supported GPUs. - Verify the driver is loaded: Run
lsmod | grep amdgpu. If you seeamdgpuin the output, the driver is active. You can also checkglxinfo | grep "OpenGL renderer"(installmesa-utilsif needed) to see if your GPU is being used for rendering. - Install Mesa (for OpenGL/Vulkan): Run
sudo apt install mesa-utils mesa-vulkan-drivers. This provides the userspace libraries that work with the AMDGPU kernel driver.
Method 2: Install the Proprietary AMDGPU-PRO Driver (Optional)
The proprietary driver is only needed for specific enterprise features (like OpenCL for some applications) or if you have a very new GPU that the open-source driver doesn't fully support yet. It's not recommended for Kali because it can conflict with kernel updates.
- Identify your GPU model: Run
lspci | grep -i vgaand note the exact model (e.g., "Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480]"). - Download the driver: Go to AMD's official support page and find the driver for your specific GPU model and for Linux. You'll need to select your distribution (Ubuntu/Debian) and architecture. For Kali, choose Debian-based options if available, but note that AMD's official packages are built for Ubuntu LTS versions, so they may not install cleanly on Kali. This is a common pitfall.
- Extract the downloaded archive:
tar -xJf amdgpu-pro-*.tar.xz(replace with the actual filename). - Run the installer:
cd amdgpu-pro-*then./amdgpu-pro-install -y. This will install the driver and its dependencies. Note that this may take a while. - Reboot: After installation, reboot. The proprietary driver should be active.
- Verify: Run
glxinfo | grep "OpenGL vendor"– it should show "AMD" or "Advanced Micro Devices" instead of "X.Org".
Common Mistakes
- Installing the proprietary driver on a rolling release: Kali is a rolling release, so kernel updates happen frequently. The proprietary AMDGPU-PRO driver often breaks after a kernel update because it's built for a specific kernel version. If you must use it, be prepared to reinstall it after every kernel update.
- Forgetting to install firmware: Without the correct firmware, the AMDGPU driver may not load, and you'll get a blank screen or fallback to the VESA driver.
- Using the wrong driver for your GPU: The open-source driver supports GCN 1.0 and newer. If you have an older card (like HD 6000 series or older), you need to use the older
radeondriver, which is still in the kernel. Don't force the AMDGPU driver on unsupported hardware. - Not updating the system first: Trying to install drivers on an outdated kernel can lead to missing firmware or incompatible modules.
Tips
- Always prefer the open-source driver for Kali. It's well-integrated, receives updates with the kernel, and supports most features you need for security tools.
- If you need OpenCL for Hashcat, the open-source driver with Mesa's
mesa-opencl-icdpackage often works. Install it withsudo apt install mesa-opencl-icdand test withclinfo. - For Vulkan support, install
vulkan-toolsandvulkan-icd-loaderalong with the Mesa Vulkan driver. - Keep your system updated regularly. Kernel and firmware updates often improve AMDGPU support without needing manual intervention.
- If you have a hybrid laptop (AMD iGPU + NVIDIA dGPU), you'll need to handle this with
prime-selector similar, but that's outside the scope of this guide.
Troubleshooting
- Blank screen after installing proprietary driver: Boot into recovery mode (hold Shift at boot, select "Advanced options" then "Recovery mode"), drop to a root shell, and uninstall the driver with
amdgpu-pro-uninstall. Then reboot. - Driver not loading (no amdgpu in lsmod): Check if your GPU is supported. Run
lspci -k | grep -A 2 VGAto see which driver is currently bound. If it saysradeoninstead ofamdgpu, you may need to addamdgputo the kernel command line (edit/etc/default/gruband addradeon.cik_support=0 amdgpu.cik_support=1for GCN 1.1/1.2 cards, then runupdate-gruband reboot). - Poor performance or software rendering: Run
glxinfo | grep "renderer". If it says "llvmpipe", then the GPU driver isn't being used. Reinstall Mesa and ensure the correct firmware is present. - Kernel panic after driver install: This usually happens with proprietary drivers. Boot into recovery mode and uninstall the driver.
- OpenCL not working: Install
clinfoand run it. If it shows no platforms, you may need to installmesa-opencl-icdor the proprietary OpenCL package from the AMDGPU-PRO driver.
Frequently Asked Questions
Do I really need to install AMD drivers on Kali?
For most users, the open-source driver is already present and working. You only need to install additional packages if you want extra features like Vulkan or OpenCL. The proprietary driver is rarely necessary for Kali's typical use cases.
Will the proprietary driver improve my Hashcat performance?
Yes, for OpenCL-based cracking, the proprietary driver often provides better performance than the open-source one. However, the open-source driver with Mesa's OpenCL implementation is often sufficient. Test both to see which works best for your GPU.
Can I use the AMDGPU-PRO driver on a rolling release like Kali?
Technically yes, but it's risky. The driver is built for specific kernel versions, and after a kernel update, it may break. You'll need to reinstall it each time. This is why the open-source driver is recommended.
How do I know if my GPU is supported by the AMDGPU driver?
Check if your GPU is GCN 1.0 or newer (HD 7000 series and later). You can also run lspci -k | grep -A 2 VGA – if it says Kernel driver in use: amdgpu, then it's supported.
What's the difference between the radeon and amdgpu drivers?
The radeon driver is for older AMD GPUs (pre-GCN, like HD 2000-6000 series). The amdgpu driver is for GCN 1.0 and newer. Both are open-source and included in the kernel.
Do I need to install the AMDGPU driver for a virtual machine?
No. In a VM, the GPU is virtualized, and you should use the virtual GPU driver (like virtio or VMware SVGA). Installing AMD drivers in a VM will not work correctly.