Skip to main content

AMD RX 7900 XTX GPU Monitoring in btop on Arch Linux - Setup Guide

System Specifications:

  • GPU: 24GB XFX Radeon RX 7900 XTX Speedster MERC 310 Black
  • Operating System: Arch Linux

Required Package Installation

1. AMD Graphics Drivers and Libraries
sudo pacman -S mesa xf86-video-amdgpu vulkan-radeon lib32-mesa lib32-vulkan-radeon

2. ROCm (Radeon Open Compute) Packages
sudo pacman -S rocm-hip-runtime rocm-hip-sdk rocm-smi-lib

System Configuration

1. Include AMDGPU module in mkinitcpio.conf
Open the file /etc/mkinitcpio.conf and ensure the amdgpu module is included in the MODULES line:

In /etc/mkinitcpio.conf:
MODULES=(amdgpu ...)

2. Regenerate initramfs
sudo mkinitcpio -P

3. Restart System
sudo reboot

Installation Verification

You can verify the correct installation with these commands:

Check GPU detection

lspci | grep VGA

Check AMDGPU module status

lsmod | grep amdgpu


Troubleshooting

If btop doesn't show the GPU, verify:
1. All packages are installed correctly
2. The amdgpu module is loaded
3. ROCm is installed correctly

Additional Tools

For advanced GPU monitoring, you can also install radeontop:
sudo pacman -S radeontop