how do I set up GPU. (I just installed LMDE6)

CataclysmicGentleman

Active Member
Joined
Jan 18, 2023
Messages
222
Reaction score
87
Credits
1,855
Hello!

I just installed LMDE6 which has native support in the Linux Kernel (6.1-12amd64) for my particular GPU (RX 6400)
How do I enable the usage of said GPU for games such as deep rock galatic on steam, or minecraft?

Heres some info for you:

sudo lshw -C video
*-display
description: VGA compatible controller
product: Navi 24 [Radeon RX 6400/6500 XT/6500M]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:03:00.0
version: c7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:138 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:4000(size=256) memory:e2100000-e21fffff memory:e2200000-e221ffff
*-display
description: VGA compatible controller
product: CoffeeLake-S GT2 [UHD Graphics 630]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
resources: irq:137 memory:e1000000-e1ffffff memory:c0000000-cfffffff ioport:5000(size=64) memory:c0000-dffff



lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c7)

How do I check to make sure everything (drivers and all) are working properly?
 


I know you mentioned in another post that DRI_PRIME=1 didn’t work, but I'm going to provide a guide on it anyway. You can go through it to see if it resolves the issue

### 1. Check if AMD GPU Drivers are Installed and Working:
Your output already shows that the amdgpu driver is in use for the AMD GPU, so it's a good sign.

### 2. Install Necessary Packages (if not already installed):
Make sure you have Vulkan and other necessary packages installed. You can install them using the following command:

Code:
sh
   sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386

### 3. Configure the System to Use the AMD GPU for Games:
- For Steam Games:
- Go to Steam Library.
- Right-click on the game (e.g., Deep Rock Galactic).
- Click on Properties.
- Click on Set Launch Options.
- Add the following line:

Code:
sh
         DRI_PRIME=1 %command%

- Click OK and Close.

- For Other Games/Applications:
- You can run them from the terminal with the prefix DRI_PRIME=1. For example:

Code:
sh
         DRI_PRIME=1 minecraft-launcher

### 4. Verify that the AMD GPU is Being Used:
- You can install vulkaninfo or glxinfo to check which GPU is being used. For example:

Code:
sh
     sudo apt install vulkan-utils
     DRI_PRIME=1 vulkaninfo | grep GPU

- This should show that the AMD GPU is being used when DRI_PRIME=1 is set.

### 5. Additional Verification (Optional):
- Monitor the GPU usage while playing a game to ensure the AMD GPU is being actively used. You can use a tool like radeontop for AMD GPUs:

Code:
sh
     sudo apt install radeontop
     sudo radeontop

This should ensure that your games use the AMD GPU for rendering, giving you improved performance compared to the integrated Intel GPU. Make sure to replace "minecraft-launcher" with the actual command to launch Minecraft or any other game/application you're interested in.
 

Members online


Top