System freezes whenever I play game with amd gpu

I have tried KDE, Xfce, Cinnamon at last I am at gnome of Manjaro, and also Ubuntu 20.04 LTS, Linux Mint 20.1 to check out this problem and on every installation of these OSes the problem in AMD GPU persists.

I don’t know what to do; my system has a hybrid GPU of Intel/AMD, just 3 months before everything was fine and the mentioned problem was not there. Now I can’t game in any Linux distro, and in Windows everything was fine but I don’t want to switch to Windows.

Whenever I try to play games with AMD, my laptop freezes, and on the Intel GPU games are slow. (I play only Steam games)

I used:

PROTON_USE_WINED3D=1 DRI_PRIME=1 %command%

and both separately but nothing seems to work.

System information:

  Kernel: 5.10.30-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=fac66e74-c765-4d58-a399-0dca4582df72 rw quiet splash apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 3.38.4 tk: GTK 3.24.28 wm: gnome-shell dm: GDM 40.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: 9.7 Wh (100.0%) condition: 9.7/41.4 Wh (23.4%) 
  volts: 16.4 min: 14.8 model: SMP DELL VN3N047 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: 21599 
  Speed: 3100 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 3100 2: 3100 
  3: 3100 4: 3100 
  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: wayland server: X.org 1.20.11 compositor: gnome-shell driver: 
  loaded: radeon note: n/a (using device driver) - try sudo/root 
  display-ID: 0 resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.0.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.30-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.25 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: up address: see --recommends 
Drives:
  Local Storage: total: 931.51 GiB used: 91.26 GiB (9.8%) 
  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.11 GiB size: 117.66 GiB (97.97%) 
  used: 7.66 GiB (6.5%) 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: 810.9 GiB size: 797.1 GiB (98.30%) 
  used: 83.6 GiB (10.5%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 55.0 C mobo: 49.0 C gpu: radeon temp: 47.0 C 
  Fan Speeds (RPM): cpu: 2530 
Info:
  Processes: 211 Uptime: 17m wakeups: 1 Memory: 7.64 GiB 
  used: 2.31 GiB (30.3%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 Packages: pacman: 1175 lib: 309 flatpak: 0 Shell: Zsh v: 5.8 
  running-in: gnome-terminal inxi: 3.3.04
  1. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`

    (as that makes both our lives much easier)

  2. No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed. :wink:

  3. After you REISUB, what’s the output of:

    journalctl --system --priority=2 | tail --lines=30
    

:+1:

Well, I don’t know if this will fix it, but you should try to switch the amdgpu drivers, which supports your GPU. And then test it out to see if you still get system freezes. If it works, you might even get better FPS in your games as the amdgpu drivers works better than radeon.

You can read the tutorial here.

1 Like