Stuck on boot when enabling nvidia_drm.modeset=1

Hi,
I own an MSI nvidia optimus gaming laptop and am trying to launch a KDE Wayland session in which my secondary monitor is detected. After some research a reason for why the hdmi connected monitor is not detected could be, that nvidia_drm.modeset=1 is not enabled as a kernel parameter. Trying to do so ends in my system getting stuck during the boot process. Only solution is removing the entry from grub or a modprobe config file (I tried both ways to get the kernel parameter running) by chrooting from a live system.
What could be the issue?

nvidia and wayland isn’t compatible. whatever you do but you’ll have to use x11 with nvidia.
also post the mandatory

inxi --admin --verbosity=7 --filter --no-host --width

output and use the preformatted text option to paste it inside it.

nvidia and wayland isn’t compatible. whatever you do but you’ll have to use x11 with nvidia.

Well, that’s kind of an unsubstantial killer phrase.
Afaik KDE says otherwise: Plasma/Wayland/Nvidia - KDE Community Wiki

System:
  Kernel: 6.6.10-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=9e744c1a-ec40-4c90-b092-da43ca14110d rw quiet
    cryptdevice=UUID=3352fb98-8855-4902-9528-db429256c07d:luks-3352fb98-8855-4902-9528-db429256c07d
    root=/dev/mapper/luks-3352fb98-8855-4902-9528-db429256c07d
    resume=/dev/mapper/luks-3352fb98-8855-4902-9528-db429256c07d apparmor=1
    security=apparmor udev.log_priority=3 intel_pstate=disable
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 info: frameworks
    v: 5.113.0 wm: kwin_x11 tools: avail: light-locker,xscreensaver vt: 2 dm:
    1: LightDM v: 1.32.0 note: stopped 2: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: GE73 Raider RGB 8RF v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-17C5 v: REV:1.0 serial: <superuser required>
    part-nu: 17C5.1 uuid: <superuser required> UEFI: American Megatrends
    v: E17C5IMS.10F date: 05/20/2019
Battery:
  ID-1: BAT1 charge: 41.9 Wh (97.2%) condition: 43.1/53.4 Wh (80.7%)
    volts: 11.9 min: 10.9 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: not charging
Memory:
  System RAM: total: 16 GiB available: 15.47 GiB used: 5.54 GiB (35.8%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 32 GiB slots: 2 modules: 1 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelA-DIMM0 type: DDR4 detail: synchronous size: 16 GiB
    speed: 2667 MT/s volts: note: check curr: 1 min: 1 max: 1 width (bits):
    data: 64 total: 64 manufacturer: Samsung part-no: M471A2K43CB1-CTD
    serial: <filter>
  Device-2: ChannelB-DIMM0 type: no module installed
CPU:
  Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF4
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 2200 high: 2201 min/max: 800/2201 boost: disabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 2200 2: 2200
    3: 2200 4: 2200 5: 2201 6: 2200 7: 2201 8: 2201 9: 2201 10: 2201 11: 2200
    12: 2201 bogomips: 52815
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr
    mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge
    pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep
    smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, STIBP: conditional,
    RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Micro-Star MSI
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b
    class-ID: 0300
  Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] vendor: Micro-Star MSI
    driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+
    status: current (as of 2024-01; EOL~2026-12-xx) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-2021 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1ba1
    class-ID: 0300
  Device-3: Bison HD Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-13:10 chip-ID: 5986:1140
    class-ID: 0e02 serial: <filter>
  Device-4: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.4.3:12
    chip-ID: 046d:082d class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.10 with: Xwayland v: 23.2.3
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: vesa
    alternate: fbdev,nouveau,nv dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.88x11.22")
    s-diag: 1052mm (41.43")
  Monitor-1: HDMI-1-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  Monitor-2: eDP-1 pos: right res: 1920x1080 hz: 120 dpi: 128
    size: 381x214mm (15x8.43") diag: 437mm (17.2") modes: N/A
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.3-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    device-ID: 8086:3e9b memory: 15.1 GiB unified: yes
  API: Vulkan v: 1.3.274 layers: 10 device: 0 type: integrated-gpu name: Intel
    UHD Graphics 630 (CFL GT2) driver: mesa intel v: 23.3.3-manjaro1.1
    device-ID: 8086:3e9b surfaces: xcb,xlib device: 1 type: discrete-gpu
    name: NVIDIA GeForce GTX 1070 driver: nvidia v: 545.29.06
    device-ID: 10de:1ba1 surfaces: xcb,xlib
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:10f0 class-ID: 0403
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.4.3:12
    chip-ID: 046d:082d class-ID: 0102 serial: <filter>
  API: ALSA v: k6.6.10-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Qualcomm Atheros Killer E2500 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 1969:e0b1 class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: virbr0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb v: 0.8
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:11
    chip-ID: 8087:0aaa class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.1 lmp-v: 10
    status: discoverable: no pairing: yes
Logical:
  Message: No logical block device data found.
  Device-1: luks-654e7435-e8ca-4b13-8abb-18733a64eff7 maj-min: 254:1
    type: LUKS dm: dm-1 size: 1.82 TiB
  Components:
  p-1: sda1 maj-min: 8:1 size: 1.82 TiB
  Device-2: luks-3352fb98-8855-4902-9528-db429256c07d maj-min: 254:0
    type: LUKS dm: dm-0 size: 237.47 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:2 size: 237.47 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.99 TiB used: 786.48 GiB (25.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: RBUSNS8154P3256GJ
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
    lanes: 2 tech: SSD serial: <filter> fw-rev: E8FK11.C temp: 38.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT2000MX500SSD1
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 023 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Micron model: CT1000X8SSD9
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: SSD serial: <filter>
    fw-rev: PMAP scheme: GPT
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  ID-4: /dev/sdc maj-min: 8:32 vendor: Hama model: Hama size: 29.82 GiB
    block-size: physical: 512 B logical: 512 B type: USB rev: 3.1 spd: 5 Gb/s
    lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter> fw-rev: 1100
    scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 237.47 GiB size: 232.69 GiB (97.98%)
    used: 85.77 GiB (36.9%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-3352fb98-8855-4902-9528-db429256c07d label: N/A
    uuid: 9e744c1a-ec40-4c90-b092-da43ca14110d
  ID-2: /boot/efi raw-size: 1024 MiB size: 1022 MiB (99.80%)
    used: 456 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 6C3E-CC70
  ID-3: /home raw-size: 1.82 TiB size: 1.79 TiB (98.37%)
    used: 683.97 GiB (37.3%) fs: ext4 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-654e7435-e8ca-4b13-8abb-18733a64eff7 label: N/A
    uuid: eebc0eac-242a-49fb-b6d2-968d79f5c330
  ID-4: /run/media/ralf/Ventoy raw-size: 29.79 GiB size: 29.79 GiB (99.99%)
    used: 16.74 GiB (56.2%) fs: exfat dev: /dev/sdc1 maj-min: 8:33 label: Ventoy
    uuid: 4CE9-C018
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: exfat label: Free
    uuid: 6FFB-8557
  ID-2: /dev/sdc2 maj-min: 8:34 size: 32 MiB fs: vfat label: VTOYEFI
    uuid: F767-A619
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-1:2 info: Razer USA BlackWidow Lite (2018) type: keyboard,mouse
    driver: razerkbd,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 1532:0235 class-ID: 0300
  Device-2: 1-2:3 info: Razer USA DeathAdder Elite type: mouse,keyboard
    driver: razermouse,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 1532:005c class-ID: 0300
  Hub-2: 1-3:4 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2817
    class-ID: 0900
  Hub-3: 1-3.4:7 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2817
    class-ID: 0900
  Device-1: 1-3.4.3:12 info: Logitech HD Pro Webcam C920 type: video,audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
    chip-ID: 046d:082d class-ID: 0102 serial: <filter>
  Hub-4: 1-4:5 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2815
    class-ID: 0900
  Device-1: 1-6:6 info: SteelSeries ApS ALC type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 300mA chip-ID: 1038:1124 class-ID: 0300
  Device-2: 1-7:8 info: Realtek RTS5129 Card Reader Controller
    type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc
    interfaces: 1 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 0bda:0129 class-ID: ff00 serial: <filter>
  Device-3: 1-9:9 info: SteelSeries ApS KLC type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 300mA chip-ID: 1038:1122 class-ID: 0300
  Device-4: 1-13:10 info: Bison HD Webcam type: video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 5986:1140 class-ID: 0e02 serial: <filter>
  Device-5: 1-14:11 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP)
    type: bluetooth driver: btusb interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 8087:0aaa class-ID: e001
  Hub-5: 2-0:1 info: super-speed hub ports: 8 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-6: 2-3:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0817
    class-ID: 0900
  Hub-7: 2-3.4:4 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0817
    class-ID: 0900
  Hub-8: 2-4:3 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.2
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0815
    class-ID: 0900
  Device-1: 2-4.1:6 info: Silicon Motion - Taiwan (formerly Feiya ) Flash
    Drive type: mass storage driver: usb-storage interfaces: 1 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 power: 504mA
    chip-ID: 090c:1000 class-ID: 0806 serial: <filter>
  Device-2: 2-4.2:5 info: Micron CT1000X8SSD9 type: mass storage driver: uas
    interfaces: 1 rev: 3.2 speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1
    power: 896mA chip-ID: 0634:5602 class-ID: 0806 serial: <filter>
Sensors:
  System Temperatures: cpu: 46.0 C pch: 40.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 364 Power: uptime: 1h 5m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform
    avail: shutdown,reboot,suspend,test_resume image: 6.13 GiB
    daemons: upowerd,org_kde_powerdevil Init: systemd v: 255 default: graphical
    tool: systemctl
  Packages: 2997 pm: pacman pkgs: 2953 libs: 544 tools: pamac,paru,yay
    pm: flatpak pkgs: 41 pm: snap pkgs: 3 Compilers: clang: 16.0.6 gcc: 13.2.1
    Shell: Zsh v: 5.9 running-in: terminator inxi: 3.3.32