To get an AMD Radeon RX 7900 XT(X) to work with Ubuntu 22.04 LTS, you can follow these steps:
- Install the latest OEM kernel available by running the command:
sudo apt install linux-oem-22.04c
- Download and install the latest kernel firmware from here by running these commands:
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20230117.tar.gz
tar -xf linux-firmware-20230117.tar.gz
sudo cp linux-firmware-20230117/amdgpu/* /lib/firmware/amdgpu/
sudo update-initramfs -uk 'all'
- Install the kisak-mesa PPT by running these commands
(this PPA will take care of providing the latest stable mesa and llvm15):
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt upgrade
- Ensure there is no modprobe blacklist for amdgpu by running the command:
sudo rm /etc/modprobe.d/blacklist-amdgpu.conf
If you use Xorg instead of Wayland and have the issue where the mouse cursor is invisible, you can try to create the file /etc/X11/xorg.conf.d/99-modesetting.conf
with the following content:
Section "Device"
Identifier "modesetting"
Driver "modesetting"
EndSection
This should make the latest LTS work with your hardware.