You are not logged in.
Just got a new laptop yesterday and proceeded to install Arch Linux using the latest available image (2026.04.01), and utilizing the archinstall script. Was nervous about getting something with an nVidia graphics card (have been avoiding nVidia for 20+ years) and unsurprisingly, I ran into issues. I have been using Arch for probably close to a decade and solely (without dual booting) for about 5 years now so I have some experience, but absolutely none with dealing with nVidia. Laptop is a Lenovo Legion 5i with Intel i7 14700HX and nVidia RTX5050 (+ integrated Intel graphics which I disabled via laptop UEFI)
Here's what I've done so far:
1) Used the archinstall script to install linux-zen kernel, KDE Plasma (and KDE-applications packages group), and plasma-login-manager
2) Attempted to follow the directions here: https://wiki.archlinux.org/title/NVIDIA, including:
a) Installing linux-zen-headers and the nvidia-open-dkms packages
b) Blacklisted nouveau driver (as it didn't appear to be automatic per the wiki)
c) Removed kms from HOOKS array (although I'm pretty sure this was redundant because of the above blacklisting)
d) Added nvidia_drm.modeset=1 and nvidia_drm.fbdev=1 to my kernel parameters in /etc/kernel/cmdline
e) Verified the output of cat /sys/module/nvidia_drm/parameters/modeset is Y
f) Verified the output of cat /sys/module/nvidia_drm/parameters/fbdev is Y
g) Blacklisted simpledrm (as a suggested workaround from the Wiki)
3) Disabled the hybrid graphics of the laptop so it only uses the nVidia graphics
4) Verfied with lspci -k -d ::03xx that the nvidia driver is being used (notably not the nvidia_drm, not sure if that makes a difference?)
I have no issues booting the laptop (including putting in an encryption password and logging in via the Plasma Login Manager. The issue is that following the Plasma Login Manager I get the spinning KDE gear for a bit and then just a black screen with a cursor, which leads me to believe it is specifically an issue with Wayland (have not tried xorg).
Modesetting appears to be working correctly because scaling reverts to a reasonable value part way through the boot process (small text for encryption password since it's higher DPI screen but then corrects), I get a properly scaled login screen and terminal when switching TTY after the DE fails to load properly. I don't believe the "Early Loading" section of the Wiki will be helpful, but perhaps I am wrong.
Since all I can seem to find about making nVidia and Wayland work properly together is ensuring the two above-mentioned kernel parameters are set correctly, I seem to be at a loss... any help would be appreciated.
Thanks.
Offline
What do you get from
lspci -k -d ::03xx
ls -l /dev/dri/by-path
eglinfo -B #mesa-utilspost those in code tags. Assuming we might need more system state
sudo journalctl -b | curl -F 'file=@-' https://paste.c-net.org/Offline
Thanks for your assistance, as requested:
lspci -k -d ::03xx
00:02.0 Display controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)
Subsystem: Lenovo Device 3e2d
Kernel driver in use: i915
Kernel modules: i915, xe
01:00.0 VGA compatible controller: NVIDIA Corporation GB207M [GeForce RTX 5050 Max-Q / Mobile] (rev a1)
Subsystem: Lenovo Device 3e2d
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidials -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root 8 Apr 8 16:16 pci-0000:00:02.0-card -> ../card2
lrwxrwxrwx 1 root root 13 Apr 8 16:16 pci-0000:00:02.0-render -> ../renderD129
lrwxrwxrwx 1 root root 8 Apr 8 16:16 pci-0000:01:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Apr 8 16:16 pci-0000:01:00.0-render -> ../renderD128eglinfo -B
GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Wayland platform:
eglinfo: eglInitialize failed
X11 platform:
eglinfo: eglInitialize failed
Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 595.58.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 595.58.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 595.58.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device platform:
Device #0:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 595.58.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 595.58.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 595.58.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device #1:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device #2:
Platform Device platform:
eglinfo: eglInitialize failed
Device #3:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Wayland platform:
eglinfo: eglInitialize failed
X11 platform:
eglinfo: eglInitialize failed
Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 595.58.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 595.58.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 595.58.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device platform:
Device #0:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 595.58.03
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 595.58.03
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 5050 Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 595.58.03
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device #1:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (RPL-S)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
Device #2:
Platform Device platform:
eglinfo: eglInitialize failed
Device #3:
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 26.0.4-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 26.0.4-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 22.1.2, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.0.4-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20sudo journalctl -b
https://paste.c-net.org/OliverToilets
Offline
So the integrated card is still there, normally "disabling it in UEFI" would not make it visible, but might be up to implementation, but it's simply marked as "not attached to anything".
Try telling Kwin to not try to use the intel card in any capacity by exporting
KWIN_DRM_DEVICES="/dev/dri/by-path/pci-0000\:01\:00.0-card"somewhere (and/or explicitly blacklist i915) before KDE/plasma starts https://wiki.archlinux.org/title/Environment_variables (and/or if you want to set this specifically for plasma/kwin only https://wiki.archlinux.org/title/KDE#Me … -specific)
Offline
No luck with the above.
Offline
Since it was a fresh install I opted to just try to reinstall the system and it seems to have worked this time. The only thing I did differently was the early loading of nVidia modules in the initramfs, but then I tried taking them out and rebooting and it still works, so I don't know. Will mark as solved though (once I figure out how)
Last edited by spudgunner (2026-04-09 01:48:49)
Offline