AMD gpu is not working or not being utilized while playing steam games

I faced this problem earlier to, so went to windows and got back to manjaro. in earlier case my system would freez if i try to play steam games with amd gpu, but now system is not even using it no usage is shown,

playing in intel gpu causes gaming performence issue. I have tried several other distros too this problem persists there as well.

system info:

System:
  Kernel: 5.10.41-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=31d4e9d8-2a48-4723-8a01-7044aaeabdb8 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.29 vt: 7 dm: LightDM 1.30.0 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: Inspiron 15-3567 v: N/A 
  serial: <filter> Chassis: type: 9 serial: <filter> 
  Mobo: Dell model: 0D53F5 v: A00 serial: <filter> UEFI: Dell v: 2.14.0 
  date: 01/13/2021 
Battery:
  ID-1: BAT0 charge: 40.0 Wh (100.0%) condition: 40.0/41.4 Wh (96.4%) 
  volts: 16.7 min: 14.8 model: LGC-LGC2.80 DELL 7PY0D0A type: Li-ion 
  serial: <filter> status: Full 
CPU:
  Info: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP 
  arch: Amber/Kaby Lake note: check family: 6 model-id: 8E (142) stepping: 9 
  microcode: DE cache: L2: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 21607 
  Speed: 800 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300 
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / 
  Radeon 520 Mobile] 
  vendor: Dell driver: radeon v: kernel alternate: amdgpu bus-ID: 01:00.0 
  chip-ID: 1002:6660 class-ID: 0380 
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-5:3 chip-ID: 0bda:5769 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: ati,intel,radeon 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d71 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.41-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.28 running: no 
Network:
  Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel port: e000 
  bus-ID: 02:00.0 chip-ID: 8086:3165 class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell 
  driver: r8169 v: kernel port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8136 
  class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb 
  v: 0.8 bus-ID: 1-8:5 chip-ID: 8087:0a2a class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Drives:
  Local Storage: total: 931.51 GiB used: 196.01 GiB (21.0%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B 
  speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: SDM3 scheme: GPT 
Partition:
  ID-1: / raw-size: 120 GiB size: 117.56 GiB (97.97%) used: 9.82 GiB (8.4%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 296 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
  ID-3: /home raw-size: 811.01 GiB size: 797.21 GiB (98.30%) 
  used: 186.19 GiB (23.4%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 48.0 C mobo: 47.0 C gpu: radeon temp: 45.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 214 Uptime: 2h 21m wakeups: 1 Memory: 7.64 GiB 
  used: 2.89 GiB (37.8%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: pacman: 1287 lib: 322 flatpak: 0 Shell: Bash 
  v: 5.1.8 running-in: gnome-terminal inxi: 3.3.04 ```

Hi THIRU,

There are lots of reported problems pertaining to hybrid systems (integrated and discrete GPU on the same machine), You appear to have drivers for both the integrated and the discrete GPU, which is good.

Device-1: Intel HD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300 
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / 
  Radeon 520 Mobile] 
  vendor: Dell driver: radeon v: kernel alternate: amdgpu bus-ID: 01:00.0 
  chip-ID: 1002:6660 class-ID: 0380 
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus-ID: 1-5:3 chip-ID: 0bda:5769 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 driver: loaded: ati,intel,radeon 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 

The default driver for your system is the intel iGPU:

OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.1.2 
  direct render: Yes 

The dGPU is AMD, so no further software is required.

Have you tried modifying the launch parameters for the steam game by copying the line bellow and pasting it to the launch options for your game?

DRI_PRIME=1 %command% 

and do not omit to paste the %command% part either.

To modify the properties for your game from the library page of the steam app, there should be some pages like general, compatibility, updates, beta, and controllers. Launch options is at the bottom of the general tab/page.
Try that first, if it fails let us know what pasting the following into a terminal spews:

DRI_PRIME=1 glxinfo | grep OpenGL
1 Like

Yeah I have tried the command in the launch option of the games:

DRI_PRIME=1 %command%

No progress still no usage of AMD dgpu.

and i have tried the command like this too:

DRI_PRIME=1 %command% PROTON_USE_WINED3D=1

the above command was too not working. I have tried both the coomands in cuphead game too, but same problem no usage of dgpu.

I have tried the below command too:

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

the output was: OpenGL renderer string: AMD HAINAN (DRM 2.50.0, 5.10.41-1-MANJARO, LLVM 11.1.0)

1 Like

It doesn’t make sense, except that hybrid systems should be avoided (which is unhelpful for you). Clearly you have a working driver from the output you provided, but Steam is not utilising the dGPU.

Are you using steam native by any chance? Otherwise someone else (more knowlegable) will need to step in here.

Yes I tried steam native and using runtime too. Both not helping. So, switching to windows.I came back to manjaro hoping that the problem would have solved. But, I may not be using manjaro again.so,bye. and thank you for your help.

Sorry to hear that THIRU, have you tried DM’ing Yochanan, they’re one of the official dev’s/support and they are very good at GPU troubleshooting. (https://forum.manjaro.org/u/Yochanan)
One last thing before you give up, have you considered disabling the iGPU in BIOS, and would that offer an alternative route? It would be more battery intensive when playing games, and you’d need to keep rebooting etc.
See the link below where disabling the integrated card is discussed.

Debug Hybrid Graphics issues on Linux — Victor Stinner blog 3

Hi friend I somehow fixed the issue, Here is What i have done to fix the problem.

I disabled the radeon and enabled amdgpu by adding the following in the /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT=

"radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1"

and installed linux54 kernel

without linux54 the system crashes when the application is launched with AMD.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.