SDDM fails to start with video-hybrid-intel-nvidia-prime: failed to create screen resources

Hi,
I recently made a freq install of Manjaro using the video-hybrid-intel-nvidia-prime mhwd module/driver and end up with a frozen / black login screen with sddm failing to start. My system config is:

System:
  Host: thinkxtreme Kernel: 6.5.1-1-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.7 Distro: Manjaro Linux
Machine:
  Type: Laptop System: LENOVO product: 21DDS3WQ00 v: ThinkPad P1 Gen 5
    serial: <superuser required>
  Mobo: LENOVO model: 21DDS3WQ00 v: SDK0K17763 WIN
    serial: <superuser required> UEFI: LENOVO v: N3JET34W (1.18 )
    date: 05/03/2023
Battery:
  ID-1: BAT0 charge: 91.2 Wh (98.4%) condition: 92.7/90.1 Wh (102.9%)
CPU:
  Info: 14-core (6-mt/8-st) 12th Gen Intel Core i9-12900H [MST AMCP]
    speed (MHz): avg: 2215 min/max: 400/4900:5000:3800
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
  Device-2: NVIDIA GA103M [GeForce RTX 3080 Ti Mobile] driver: N/A
  Device-3: Chicony Integrated Camera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0 driver: X:
    loaded: modesetting dri: iris gpu: i915 resolution: 2560x1600~165Hz
  API: OpenGL v: 4.6 Mesa 23.1.6-3 renderer: Mesa Intel Graphics (ADL GT2)
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi
Drives:
  Local Storage: total: 1.86 TiB used: 139.32 GiB (7.3%)
Info:
  Processes: 372 Uptime: 1h 51m Memory: total: 32 GiB note: est.
  available: 31.05 GiB used: 7.34 GiB (23.6%) Shell: Bash inxi: 3.3.29

and I used successfully the video-hybrid-intel-nvidia-prime driver in the beginning. Today I somehow broke it and I can’t figure out what broke it and how to fix it. I installed tlp and some other packages to test something, did a reboot and suddenly sddm does not start anymore. I can access tty and I can use mhwd to reinstall drivers but without any success. If I install only the intel drivers via

mhwd -i pci video-linux

and remove the prime one I can use my device, but of course without the nvidia graphics card. The inxi output above is while running this mhwd config.

Here is my mhwd output from tty with the prime driver loaded:

e[1me[31m> e[m0000:01:00.0 (0300:10de:2420) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
          video-nvidia            2023.03.23               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


e[1me[31m> e[m0000:00:02.0 (0300:8086:46a6) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

and mhwd -li

e[1me[31m> e[mInstalled PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
     video-modesetting            2020.01.13                true            PCI

Here is the output from lspci:

00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Alder Lake-P Integrated Graphics Controller
	Flags: bus master, fast devsel, latency 0, IRQ 189, IOMMU group 0
	Memory at 645b000000 (64-bit, non-prefetchable) [size=16M]
	Memory at 4000000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 4000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
--
01:00.0 VGA compatible controller: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Mobile] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Lenovo GA103M [GeForce RTX 3080 Ti Mobile]
	Flags: bus master, fast devsel, latency 0, IRQ 190, IOMMU group 15
	Memory at b3000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 6000000000 (64-bit, prefetchable) [size=16G]
	Memory at 6400000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Expansion ROM at b4080000 [virtual] [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

also while the non functioning prime driver is installed. My xorg log shows following error:

[    13.677] (EE) modeset(G0): Failed to create pixmap
[    13.677] (EE) 
Fatal server error:
[    13.677] (EE) failed to create screen resources(EE) 

full log: xorg_log - Pastebin.com

My /etc/X11/mhwd.d/nvidia.conf is empty (I guess this should be the case). I can also use nvidia-settings and nvidia-smi while the driver is installed. dmesg does not show any obvious errors.

I am not sure what is causing the trouble. Any help appreciated.

Okay I solved this. :slight_smile: The problem was that in /etc/modprobe.d the nvidia driver installed somehow (or maybe it was the envycontrol package I am not sure) another config file next to mhwd-gpu.conf. It was calles nvidia.conf and contradicted the mhwd one. So xorg tried to load wrong drivers… Deleting the file resolved the issue. I recommend all prime users to never run nvidia-xconfig :wink: .

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