Verifying Driver Availability
-
2. Verifying AMDGPU Driver Availability
The AMDGPU driver is included in the Linux kernel and should be available on CentOS 9 by default. To verify if the driver is loaded:
lsmod | grep amdgpu
If the command returns output, the AMDGPU driver is already loaded. If there is no output, you can manually load the driver:
sudo modprobe amdgpu
To ensure the driver loads automatically at boot, add it to the list of modules to be loaded:
echo "amdgpu" | sudo tee -a /etc/modules-load.d/amdgpu.conf
Then, reboot your system:
sudo reboot
-
3. Confirming AMDGPU Driver Operation
After rebooting, confirm that the AMDGPU driver is active:
lsmod | grep amdgpu
You can also check the X server log to ensure the driver is being used:
cat /var/log/Xorg.0.log | grep amdgpu
Additionally, to check the GPU’s status and utilization, you can use:
glxinfo | grep "OpenGL renderer"
If the output mentions your AMD GPU, the driver is functioning correctly.
Now, your CentOS 9 system should be utilizing the open-source AMDGPU driver for your AMD Radeon graphics card.
Contents