You are not logged in.

#1 2023-08-29 16:27:06

ArS0
Member
Registered: 2023-08-29
Posts: 3

[SOLVED] Problem with hybrid GPU laptop

Hello guys. I installed arch on my laptop with amd(internal) + rtx 3050(discrete) graphics. But I have a problem that rtx does not want to work. For example, nvidia-settings writes that the drivers are not installed, and minecraft with DRI_PRIME=1 crashes with an error. All xf86-video-xxx packages are installed.

lspci sees both cards

lspci -k | grep -A 2 -E "(VGA|3D)"
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
	Subsystem: CLEVO/KAPOK Computer GA107M [GeForce RTX 3050 Mobile]
	Kernel driver in use: nouveau
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6)
	Subsystem: CLEVO/KAPOK Computer Cezanne [Radeon Vega Series / Radeon Vega Mobile Series]
	Kernel driver in use: amdgpu

Xrandr

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:AMD Radeon Graphics @ pci:0000:05:00.0

And glxinfo

glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.4.12-arch1-1)

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: NV177

I set this script as java binary in mc launcher

#! /bin/sh
DRI_PRIME=1 exec '/home/Artem/.tlauncher/mojang_jre/java-runtime-gamma/linux/java-runtime-gamma/bin/java' "$@"

And get this error: Without DRI_PRIME=1 this script works

Picked up _JAVA_OPTIONS: 
[17:27:51] [Datafixer Bootstrap/INFO]: 188 Datafixer optimizations took 82 milliseconds
[17:27:52] [Render thread/INFO]: Environment: ElyEnvironment[name=ely,authHost=https://authserver.ely.by/auth,accountsHost=https://account.ely.by/api/mojang,sessionHost=https://account.ely.by/api/minecraft/session,servicesHost=https://authserver.ely.by/services]
[17:27:52] [Render thread/INFO]: CAFixer is not available: java.lang.NoClassDefFoundError: com/turikhay/caf/util/Logger
[17:27:52] [Render thread/INFO]: Setting user: _Artemka_0
[17:27:52] [Render thread/INFO]: Backend library: LWJGL version 3.3.1 build 7
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  149 ()
  Minor opcode of failed request:  2
  Serial number of failed request:  170
  Current serial number in output stream:  173

My laptop model: Maibenebn X556: AMD Ryzen 5 5600H + RTX 3050 mobile 4gb

Last edited by ArS0 (2023-08-30 08:15:51)

Offline

#2 2023-08-29 19:27:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,104

Re: [SOLVED] Problem with hybrid GPU laptop

Kernel driver in use: nouveau

https://wiki.archlinux.org/title/NVIDIA#Installation

All xf86-video-xxx packages are installed.

Also probably get rid of those.

https://wiki.archlinux.org/title/PRIME

If you still have problems, please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

and please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Offline

#3 2023-08-30 08:14:50

ArS0
Member
Registered: 2023-08-29
Posts: 3

Re: [SOLVED] Problem with hybrid GPU laptop

Hmm, I seem to have forgotten to remove kms from HOOKS and regenerate the initramfs. Now the video card is displayed and working. Thanks.
I also replaced "DRI_PRIME=1 exec java_parh" with "exec prime-run java_path"

Last edited by ArS0 (2023-08-30 08:16:57)

Offline

Board footer

Powered by FluxBB