I can't use my second AMD GPU in my laptop

I can’t use my second gpu to run apps, games. My laptop specs:
CPU: i3-6006u 2.0GHz with Intel HD 520
GPU: R5 M330 2GB
RAM: 4 GB DDR4 2133 MHz

The output of xrandr --listproviders is:

Providers:

number : 2Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output,
Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:modesettingProvider 1: id: 0xb2 cap: 0xd, Source Output, Source 
Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 1 
name:HAINAN @ pci:0000:01:00.0

The output of mhwd -l -d is:

PCI Device: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0 (0380:1002:6660) Display controller ATI Technologies Inc Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]

PCI Device: /devices/pci0000:00/0000:00:02.0 (0300:8086:1916) Display controller Intel Corporation Skylake GT2 [HD Graphics 520]

The output of DRI_PRIME=0 glxinfo | grep OpenGL is:

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (SKL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.2.1
OpenGL core profile shading language version string: 4.60`
OpenGL core profile context flags: (none)`
OpenGL core profile profile mask: core profile`
OpenGL core profile extensions:`
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.1`
OpenGL shading language version string: 4.60`
OpenGL context flags: (none)`
OpenGL profile mask: compatibility profile`
OpenGL extensions:`
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.1`
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20`

The output of DRI_PRIME=1 glxinfo | grep OpenGL is:

OpenGL vendor string: AMD`
OpenGL renderer string: AMD HAINAN (DRM 2.50.0, 5.14.0-0-MANJARO, LLVM 12.0.1)`
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.1`
OpenGL core profile shading language version string: 4.50`
OpenGL core profile context flags: (none)`
OpenGL core profile profile mask: core profile`
OpenGL core profile extensions:`
OpenGL version string: 4.5 (Compatibility Profile) Mesa 21.2.1`
OpenGL shading language version string: 4.50`
OpenGL context flags: (none)`
OpenGL profile mask: compatibility profile`
OpenGL extensions:`
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.1`
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Hello and welcome to the forum.
Please try launching apps with DRI_PRIME=1 <app>
Please post output of inxi -Fazy --filter

When I launch Steam with DRI_PRIME=1, it freezes my computer. Also I tried a few light games with DRI_PRIME=1 and they crash too.

The output of inxi -Fazy --filter is:

Output: 
System:
  Kernel: 5.14.0-0-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64 
  root=UUID=6e8a95c0-d390-499e-9a18-6c7998a56367 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP Laptop 15-bs0xx v: Type1ProductConfigId 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8329 v: 23.77 serial: <filter> UEFI: Insyde v: F.67 
  date: 12/23/2020 
Battery:
  ID-1: BAT1 charge: 30.7 Wh (100.0%) condition: 30.7/41.4 Wh (74.1%) 
  volts: 16.8 min: 14.8 model: Hewlett-Packard PABAS0241231 type: Li-ion 
  serial: <filter> status: Full 
CPU:
  Info: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: EA cache: 
  L2: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 16006 
  Speed: 500 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 500 2: 1152 
  3: 1237 4: 500 
  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 Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard 
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:1916 class-ID: 0300 
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 
  520 Mobile] 
  vendor: Hewlett-Packard driver: radeon v: kernel alternate: amdgpu 
  bus-ID: 01:00.0 chip-ID: 1002:6660 class-ID: 0380 
  Device-3: Chicony HP Webcam type: USB driver: uvcvideo bus-ID: 1-5:4 
  chip-ID: 04f2:b5db class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: ati,modesetting,radeon 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: eDP-1 res: 1366x768 hz: 60 dpi: 101 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.2.1 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d70 class-ID: 0403 
  Sound Server-1: ALSA v: k5.14.0-0-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.34 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus-ID: 02:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
  Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel port: 3000 bus-ID: 03:00.0 chip-ID: 8086:24fb class-ID: 0280 
  IF: wlo1 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-4:3 chip-ID: 8087:0aa7 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends 
Drives:
  Local Storage: total: 223.57 GiB used: 22.43 GiB (10.0%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Patriot model: Burst size: 223.57 GiB 
  block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD 
  serial: <filter> rev: P1.3 scheme: GPT 
Partition:
  ID-1: / raw-size: 223.27 GiB size: 218.71 GiB (97.96%) 
  used: 22.43 GiB (10.3%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 288 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 40.5 C mobo: 29.8 C gpu: radeon temp: 38.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 236 Uptime: 1h 4m wakeups: 1 Memory: 3.76 GiB 
  used: 2.89 GiB (77.0%) Init: systemd v: 248 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: 1351 pacman: 1347 lib: 423 flatpak: 0 snap: 4 
  Shell: Zsh v: 5.8 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06
  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 a moderator here on this site and have fixed it for you already. However, in the future I might not see your post so review my RAW edits by pushing the orange pencil in the upper right corner of the post I just fixed. :wink:

  3. Please read this:
    [HowTo] become a Manjaro power user when you're a wizard at Windows but a N00b at Manjaro / Linux
    Especially the Linux has multiple kernels section and then install an LTS kernel and try again.

  4. Please read this

:crossed_fingers:

1 Like

Well i tried using 5.4 with amdgpu driver instead of radeon. (a dude with the same gpu as i have said it solved problem for him) But i still have issues with my R5 M330. I searched it everywhere but couldn’t find anything.
And thanks for your Swap file information (i guess thats like page file in windows) and backticks thing.

1 Like

Did you try 5.10 too? :thinking:

:+1:

:bowing_man:

Now i will try all kernels. And inform you about that.

1 Like

I wouldn’t go back too far in history as you’ve got quite a new machine…

It’s not only the kernel version, it’s also the support that counts:

https://www.kernel.org/category/releases.html

Actually: great idea! Let me add that to the tutorial! :grin:

all test made with amdgpu driver
4.4.282-1 (linux44): gave radeon error in boot probably not able to work amdgpu drivers
4.9.281-1 (linux49): boot error failed to setup mount namespacing
4.14.245-1 (linux414): able to boot, using dGPU barely, slow and can’t run games
4.19.205-1 (linux419): able to boot, can’t use dGPU
5.4.143-1 (linux54): able to boot, using dGPU barely, slow nd can’t run games
5.10.52-_rt45-3 (linux510-rt): able to boot, when you run an app with dGPU it freezes system.
5.10.61-1 (linux510): able to boot, when you run an app wih dGPU it freezes system
5.12.19-1 (linux512): able to boot, when you run an app with dGPU it freezes system
5.13.13-1 (linux513): able to boot, dGPU works fine, when you run a game it freezes system
5.14.0-0 (linux514): boot error

[FAILED] Failed to mount Mount unit for core, revision 11606.
[FAILED] Failed to mount Mount unit for core18, revision 2128
[FAILED] Failed to mount Mount unit for hello-world, revision 29
[FAILED] Failed to mount Mount unit for scrcpy, revision 283
[FAILED] Failed to mount Mount unit for woe-usb, revision 21.
[FAILED] Failed to mount Mount /boot/efi.
[DEPEND] Dependency failed for Local File Systems.
You are in emergency mode. After logging in, type "journalctl-xb" to view system logs, "systemcl reboot" to reboot, "systemctl default" or "exit" to boot into default modem
Give root password for maintenance
(or press Control-D to continue):

You need an AMD expert: I’ve exhausted all my resources! and why I edited your title)

:sob:

Do you know any expert for amd?

No or I would have pinged them already…

:sob:

do you know how can i switch to nonfree drivers. Maybe it can solve the problem.

There are no proprietary drivers for AMD, so you’re already on the free drivers. It’s only nVidia drivers who taint the kernel.

:sob:

Ah that sux. I won’t be able to play upcoming Star Wars: Lego Skywalker Saga with HD 520

I’m thinking you’re having a hardware problem by now…

  • Is the GPU still under warranty?
  • Do you know someone you can swap GPUs with? (same model)

No it’s not under warranty.
And my gpu is combined with motherboard.

What kind of games? Proton or native?

Also please post the kernel messages:

sudo dmesg

Any kind of games, apps also i tested with reflect command. Tried Proton Experimental, 6.36, Steam linux compatibility and native.
The output was too long. So i give you the link of the output

I have searched a bit and and it seems it can be a lucky end…

Your card:

Is a GCN 1 card and therefore you should be able to run it with the amdgpu driver instead of radeon.

Try this solution:

That force to load amdgpu first and set the necessary options for older gpus which have support for radeon and amdgpu. But it is still called experimental, although its pretty stable and faster on most machines with older still compatible gpus.

This package does the same thing:

pamac install amdgpu-experimental
1 Like