I cannot switch to my dedicated GPU in Manjaro KDE Plasma

Hello,
I am using HP-Notebook laptop with i5 intel processor and Amd radeon R5 M330 dedicated GPU. My drivers are installed from opensource

when I typed xrandr --listproviders is displayed :

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

Thats why I think my GPU drivers are installed correctly.

And I also enteret thist command :
xrandr --setprovideroffloadsink 0xa8 0x46
to activate GPU switching

but when I opened obs with DRI_PRI=1 I think obs should render OpenGL from my Radeon GPU. But it doesn’t.
It says this:

Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Acri.qss
Attempted path: /usr/share/obs/obs-studio/themes/Acri.qss
info: CPU Name: Intel® Core™ i5-6200U CPU @ 2.30GHz
info: CPU Speed: 2385.924MHz
info: Physical Cores: 2, Logical Cores: 4
info: Physical Memory: 7850MB Total, 2294MB Free
info: Kernel Version: Linux 5.10.32-1-MANJARO
info: Distribution: “Manjaro Linux” Unknown
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.11
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
QMetaObject::connectSlotsByName: No matching signal for on_transitionRemove_clicked()
info: OBS 26.1.2-2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
info: ---------------------------------
info: Initializing OpenGL…
info: Loading up OpenGL on adapter Intel Mesa Intel® HD Graphics 520 (SKL GT2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 21.0.3, shading language 4.60
info: ---------------------------------
info: video settings reset:
base resolution: 1366x768
output resolution: 1364x768
downscale filter: Bicubic
fps: 60/1
format: NV12
YUV mode: 709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
name: Default
id: default
info: ---------------------------------
warning: Failed to load ‘en-US’ text for module: ‘decklink-captions.so’
warning: Failed to load ‘en-US’ text for module: ‘decklink-ouput-ui.so’
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
info: No blackmagic support
warning: v4l2loopback not installed, virtual camera disabled
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory

info: FFMPEG VAAPI supported
info: VLC found, VLC video source enabled
info: ---------------------------------
info: Loaded Modules:
info: vlc-video.so
info: text-freetype2.so
info: rtmp-services.so
info: obs-x264.so
info: obs-transitions.so
info: obs-outputs.so
info: obs-libfdk.so
info: obs-filters.so
info: obs-ffmpeg.so
info: linux-v4l2.so
info: linux-pulseaudio.so
info: linux-jack.so
info: linux-decklink.so
info: linux-capture.so
info: linux-alsa.so
info: image-source.so
info: frontend-tools.so
info: decklink-ouput-ui.so
info: decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: ‘pulseaudio 14.2’
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from ‘bluez_sink.FB_69_26_5B_F6_D3.a2dp_sink.monitor’
info: [Loaded global audio device]: ‘Desktop Audio’
info: pulse-input: Server name: ‘pulseaudio 14.2’
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from ‘alsa_input.pci-0000_00_1f.3.analog-stereo’
info: [Loaded global audio device]: ‘Mic/Aux’
info: xshm-input: Geometry 1366x768 @ 0,0
info: Switched to scene ‘Scene’
info: ------------------------------------------------
info: Loaded scenes:
info: - scene ‘Scene’:
info: - source: ‘Screen Capture (XSHM)’ (xshm_input)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Desktop Audio)

info: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: Desktop Audio)

It doesn’t load up OpenGL in AMD.

Can anyone help me to this problem?

Hello,

Please make sure is DRI_PRIME=1 and not just the typo in the forum. Otherwise the software loads without an error, and using the iGPU …

1 Like

Thank you @bogdancovaciu It worked but whenever i open application it freezes stuck and don’t run. I have to restart forcefully.
Do you have any solution for that?

Are you using the old Radeon Driver instead of the newer AMDGPU driver? Usually you can see by:
inxi -Gazy
and
DRI_PRIME=1 glxinfo -B

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