Install AMD Graphics Driver in Kali Linux
In this article
Installing the AMD graphics driver in Kali Linux ensures your GPU is fully utilized for tasks like hardware acceleration, OpenCL, and Vulkan, which is essential for tools like hashcat, GPU-accelerated password cracking, and 3D rendering. This guide covers the recommended method for most AMD cards (the open-source amdgpu driver, which is included in the kernel) and the optional proprietary AMDGPU-PRO driver for specific use cases. Before you begin, ensure your system is up to date and you have a stable internet connection. You will also need to know your exact GPU model (run lspci -nn | grep -i vga).
What You'll Need
- A Kali Linux installation (any recent version, ideally 2023+).
- Root or sudo access.
- Internet connection.
- Your AMD GPU model (check with
lspci -nn | grep -i vga). - For proprietary driver: the exact driver package from AMD's website (optional).
Step-by-Step
- Update your system. Open a terminal and run:
sudo apt update && sudo apt upgrade -y
This ensures you have the latest kernel and firmware, which often include improvements for AMD GPUs. - Identify your GPU model. Run
lspci -nn | grep -i vgaorlspci -nn | grep -i display. Note the device ID (e.g., 1002:67df). This helps confirm compatibility. - Install the open-source driver (recommended for most users). The amdgpu driver is already in the kernel. Install the userspace components:
sudo apt install mesa-vulkan-drivers mesa-utils libgl1-mesa-dri
This provides OpenGL, Vulkan, and VA-API support. - Enable firmware for newer cards (if needed). For GPUs from the RX 400 series and newer, install the firmware package:
sudo apt install firmware-amd-graphics
If you have an older card (pre-GCN), you may need the radeon driver instead, but that is rare. - Verify the driver is loaded. Reboot your system (
sudo reboot), then run:glxinfo | grep "OpenGL renderer"
You should see your AMD GPU name. Also checklsmod | grep amdgputo confirm the kernel module is loaded. - Optional: Install the proprietary AMDGPU-PRO driver. Only do this if you specifically need OpenCL for tools like hashcat or if you have a very new GPU that the open-source driver doesn't fully support. Download the driver from AMD's official website (choose the version for Ubuntu, as Kali is Debian-based). Then:
chmod +x amdgpu-pro-installsudo ./amdgpu-pro-install -y
Reboot after installation. - Test OpenCL (if you installed the proprietary driver). Run
clinfoto list OpenCL platforms. If you see your GPU, it's working.
Common Mistakes
- Installing the proprietary driver unnecessarily. The open-source driver is often sufficient and more stable. The proprietary driver can break your system if not installed correctly.
- Not updating the kernel. Older kernels may lack support for newer AMD GPUs. Always update before installing.
- Ignoring the GPU generation. Very old cards (pre-2012) use the radeon driver, not amdgpu. Installing amdgpu on those will fail.
- Forgetting to reboot. Driver changes require a reboot to take effect.
- Using the wrong package for your distribution. AMDGPU-PRO is built for Ubuntu, but Kali is based on Debian. It usually works, but be prepared for dependency issues.
Tips
- Check the kernel version. Newer kernels (5.10+) have excellent amdgpu support. Run
uname -rto see yours. - Use the open-source driver by default. It is actively developed and often outperforms the proprietary driver for gaming and compute.
- For hashcat, you may need OpenCL. The open-source Mesa driver includes OpenCL via
mesa-opencl-icd, but it's not always as fast as AMD's proprietary OpenCL. Install it withsudo apt install mesa-opencl-icd. - Keep your system updated. Regular updates bring GPU firmware and driver improvements.
- If you have a dual-GPU laptop (hybrid graphics), you may need to use
prime-selector similar tools to switch between GPUs.
Troubleshooting
- Screen goes black or system freezes after reboot. This often happens with the proprietary driver. Boot into recovery mode (hold Shift during boot), remove the driver with
sudo apt remove amdgpu-pro, and reboot. - OpenGL renderer shows "llvmpipe" instead of your GPU. This means the hardware acceleration is not working. Check if the amdgpu module is loaded:
lsmod | grep amdgpu. If not, trysudo modprobe amdgpu. If it fails, your GPU may not be supported by amdgpu. - No firmware found errors. Install the firmware package:
sudo apt install firmware-amd-graphics. - Proprietary driver installation fails due to dependencies. Run
sudo apt --fix-broken installand try again. If it still fails, consider using the open-source driver. - GPU not detected in Vulkan. Install
vulkan-toolsand check withvulkaninfo. If missing, installmesa-vulkan-drivers. - Hashcat says "No devices found". Ensure you have OpenCL installed and your user is in the
videogroup:sudo usermod -aG video $USER, then log out and back in.
Frequently Asked Questions
Is the AMD graphics driver already included in Kali?
Yes, the open-source amdgpu driver is part of the Linux kernel, so it is automatically present. You just need to install the userspace components like Mesa and Vulkan drivers.
Do I need the proprietary AMDGPU-PRO driver for Kali?
Usually not. The open-source driver is sufficient for most tasks, including OpenCL with hashcat (via mesa-opencl-icd). Only install the proprietary driver if you have a specific need, such as certain professional software or a very new GPU not yet supported by the open-source driver.
How do I check if my AMD driver is working?
Run glxinfo | grep "OpenGL renderer" – it should show your GPU name, not "llvmpipe". Also, lsmod | grep amdgpu should show the module loaded.
Why does my AMD card show as "unknown" in lspci?
This usually means your kernel is too old to recognize the GPU. Update your system and kernel, then try again.
Can I use both AMD and NVIDIA GPUs in Kali?
Yes, but it's complicated. You'll need to configure each driver separately and possibly use prime-select to switch. It's generally not recommended for beginners.
What is the difference between amdgpu and radeon drivers?
amdgpu is for newer AMD GPUs (GCN architecture and later, roughly 2012+). radeon is for older cards. Use amdgpu unless you have a very old GPU.