You are not logged in.

#1 2023-12-16 17:41:50

WolfsRainESP
Member
Registered: 2023-12-16
Posts: 3

RTX 3050 Ti Mobile not working properly on Arch

I decided to test some gaming on the Arch Linux distribution after reading some posts in which Arch is a good distribution for gaming.

With this idea in mind, my first step is to read the Arch docs [1] to install the NVIDIA drivers and these are the results:

lspci -k | grep -A 2 -E "(VGA|3D)"

   

Output:

     
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
   	 DeviceName: NVIDIA Graphics Device
   	 Subsystem: Hewlett-Packard Company GA107M [GeForce RTX 3050 Ti Mobile]
   	 Kernel driver in use: nvidia
   	 Kernel modules: nouveau, nvidia_drm, nvidia


—------------------------------------------------------------------------------------------------------------------------
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c5)
   	 DeviceName:  Onboard IGD
   	 Subsystem: Hewlett-Packard Company Cezanne [Radeon Vega Series / Radeon Vega Mobile Series]
   	 Kernel driver in use: amdgpu
   	 Kernel modules: amdgpu

Since I have a GA107M [2], I understand that I should be using the following nvidia nvidia-utils and lib32-nvidia-utils [3]. So I installed those and continued the journey by using the following configuration described in this section here of this summarised version of the installation process [4].

After completing all these steps, I installed optimus-manager and executed

optimus-manager --switch nvidia

to turn the graphics card on before running Steam. I can use and clearly see that the Graphics Card is working with

nvidia-smi

when checking the running processes, but when I launch any game which is PLATINUM in protonDB (e.g WARNO, ECO, etc), the graphics are the same as if those were processed by the integrated graphics card from the CPU. Please see below the output from running 'nvidia-smi' for integrated and nvidia modes:

Integrated mode output:

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06     		 Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name        		 Persistence-M | Bus-Id   	 Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf 		 Pwr:Usage/Cap |		 Memory-Usage | GPU-Util  Compute M. |
|                                		 |             		 |      		 MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off | 00000000:01:00.0 Off |         		 N/A |
| N/A   35C    P5     		 12W /  25W | 	 1MiB /  4096MiB | 	 0% 	 Default |
|                                		 |             		 |         		 N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                               		 
+---------------------------------------------------------------------------------------+
| Processes:                                                                   		 |
|  GPU   GI   CI   	 PID   Type   Process name                   		 GPU Memory |
|   	 ID   ID                                                    		 Usage 	 |
|=======================================================================================|
|  No running processes found                                                  		 |
+---------------------------------------------------------------------------------------+

nvidia mode output:

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   42C    P3              13W /  30W |     81MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A     71514      G   /usr/lib/Xorg                                76MiB |
+---------------------------------------------------------------------------------------+

Here are some other outputs from commands that I observed that can help find the main culprit behind this issue:

xrandr --listproviders

Output:
Providers: number : 1
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:modesetting

glxinfo | grep "OpenGL renderer"

Output:
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.7-arch1-1)

In addition to all of this information, I have uploaded the full journalctl [5] in case it helps resolve this further or if I am missing anything in my distro that I should fix.

Could you please assist me in finding if I am missing any config step?

[1] https://wiki.archlinux.org/title/NVIDIA

[2] https://nouveau.freedesktop.org/CodeNames.html#NV110

[3] https://github.com/korvahannu/arch-nvid … r-packages

[4] https://github.com/korvahannu/arch-nvid … grub-users

[5] http://0x0.st/HYBG.txt

Offline

#2 2023-12-16 20:38:41

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

Re: RTX 3050 Ti Mobile not working properly on Arch

Remove optimus-manager, reboot, post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and the outputs of

glxinfo -B
prime-run glxinfo -B # https://archlinux.org/packages/extra/any/nvidia-prime/

the graphics are the same as if those were processed by the integrated graphics

That's not a very good metric - do the games somehow expose the renderer?

Offline

#3 2023-12-17 09:58:15

WolfsRainESP
Member
Registered: 2023-12-16
Posts: 3

Re: RTX 3050 Ti Mobile not working properly on Arch

First of all, thank you so much for taking time in answering this question, please find below the items that you requested:

1st. I removed 'optimus-manager' and 'optimus-manager-qt' with 'sudo pacman -R optimus-manager-qt optimus-manager'
2nd. I uploaded the Xorg.0.log to this link http://0x0.st/HYjt.txt
3rd. Then I run the following commands

glxinfo -B

Output:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
	Vendor: AMD (0x1002)
	Device: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.7-arch1-1) (0x1638)
	Version: 23.2.1
	Accelerated: yes
	Video memory: 512MB
	Unified memory: no
	Preferred profile: core (0x1)
	Max core profile version: 4.6
	Max compat profile version: 4.6
	Max GLES1 profile version: 1.1
	Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
	VBO free memory - total: 140 MB, largest block: 140 MB
	VBO free aux. memory - total: 7621 MB, largest block: 7621 MB
	Texture free memory - total: 140 MB, largest block: 140 MB
	Texture free aux. memory - total: 7621 MB, largest block: 7621 MB
	Renderbuffer free memory - total: 140 MB, largest block: 140 MB
	Renderbuffer free aux. memory - total: 7621 MB, largest block: 7621 MB
Memory info (GL_NVX_gpu_memory_info):
	Dedicated video memory: 512 MB
	Total available memory: 8179 MB
	Currently available dedicated video memory: 140 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 16.0.6, DRM 3.54, 6.6.7-arch1-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.2.1-arch1.2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.2.1-arch1.2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.2.1-arch1.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

then run the same command with the prime_run command:

prime_run glxinfo -B

Output:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
	Dedicated video memory: 4096 MB
	Total available memory: 4096 MB
	Currently available dedicated video memory: 3889 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 545.29.06
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 545.29.06
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 545.29.06
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

I will be looking forward to your response.

Offline

#4 2023-12-17 11:50:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,096

Re: RTX 3050 Ti Mobile not working properly on Arch

[     7.515] (II) xfree86: Adding drm device (/dev/dri/card0)
[     7.515] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card0
[     7.555] (II) xfree86: Adding drm device (/dev/dri/card1)
[     7.555] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:06:00.0/drm/card1
[     7.571] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[     7.573] (--) PCI: (1@0:0:0) 10de:25a0:103c:8901 rev 161, Mem @ 0xfb000000/16777216, 0xfe00000000/4294967296, 0xff00000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[     7.573] (--) PCI:*(6@0:0:0) 1002:1638:103c:8901 rev 197, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256

your nvidia card is seen as card0 , while the integrated amd is seen as card1 .
This makes me question if they're initialised in the right order : integrated before discrete .


Please post your /etc/mkinitcpio.conf (or equivalent if you're using another tool to generate initramfs )


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-12-17 12:40:38

WolfsRainESP
Member
Registered: 2023-12-16
Posts: 3

Re: RTX 3050 Ti Mobile not working properly on Arch

Thank you for your response, here is the output from

cat /etc/mkinitcpio.conf

Output:

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck)

Offline

#6 2023-12-17 15:26:44

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

Re: RTX 3050 Ti Mobile not working properly on Arch

The card enumeration isn't critical

[     7.573] (--) PCI: (1@0:0:0) 10de:25a0:103c:8901 rev 161, Mem @ 0xfb000000/16777216, 0xfe00000000/4294967296, 0xff00000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[     7.573] (--) PCI:*(6@0:0:0) 1002:1638:103c:8901 rev 197, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256

and glxinfo and prime-run glxinfo show that you default to the renoir chip and can properly invoke the nvidia chip.
There're no outputs attrached to the nvidia GPU, so this is the most reasonable setup anyway and there're also no other indications of problems.

So if you prime-run your game, does it run on the nvidia chip as expected?
For steam see https://wiki.archlinux.org/title/PRIME# … _using_GPU

There might be a further issue reg. the vulkan driver, https://wiki.archlinux.org/title/Vulkan … initialize

Offline

Board footer

Powered by FluxBB