External monitor hangs Plasma on hotplug (or any plug really)

So after today’s update to 6.5.1 my external monitor started causing an issue with Plasma.

When it’s connected (via DP), the entire desktop “stops” - doesn’t crash, and it even works “underneath”, but the external display stays blank, and built-in one is frozen while the cable is connected.

It works ok with X11, so it looks like some Wayland/KWin regression.

journalctl shows (first line repeated like 20 times):

paź 29 23:34:08 home kwin_wayland[1046]: Atomic modeset test failed! Invalid argument
paź 29 23:34:08 home kwin_wayland[1046]: Applying output configuration failed!

and journalctl | grep nvidia:

paź 29 23:32:17 home systemd-modules-load[158]: Inserted module ‘nvidia_uvm’
paź 29 23:32:17 home kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:2d:00.0 on minor 1
paź 29 23:32:17 home kernel: nvidia 0000:2d:00.0: [drm] No compatible format found
paź 29 23:32:17 home kernel: nvidia 0000:2d:00.0: [drm] Cannot find any crtc or sizes

I’ve searched a bit and it seems it could be an issue with Nvidia (of course). I’ve tried several options (setting nvidia_drm.modeset to 1 or 0, switching to lts kernel) but none of them works.

Everything worked great on 6.5.0 (confirmed by timeshifting back to working state from 2 days ago) so I assume it’s some minor change that broke something. I know that Wayland + Nvidia don’t cooperate too well, but if anyone have any idea on how to fix it, I’d appreciate it because it sucks without my room-sized display. :wink:

Some additional info:

inxi -Fz:

System:
Kernel: 6.17.5-arch1-1 arch: x86_64 bits: 64
Desktop: KDE Plasma v: 6.5.1 Distro: EndeavourOS
Machine:
Type: Laptop System: LENOVO product: 20S1S7V21P v: ThinkPad T14 Gen 1
serial:
Mobo: LENOVO model: 20S1S7V21P v: SDK0J40697 WIN
serial: UEFI: LENOVO v: N2XET43W (1.33 )
date: 02/10/2025
Battery:
ID-1: BAT0 charge: 36.6 Wh (84.5%) condition: 43.3/50.5 Wh (85.9%)
CPU:
Info: quad core model: Intel Core i7-10610U bits: 64 type: MT MCP cache:
L2: 1024 KiB
Speed (MHz): avg: 400 min/max: 400/4900 cores: 1: 400 2: 400 3: 400 4: 400
5: 400 6: 400 7: 400 8: 400
Graphics:
Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 v: kernel
Device-2: NVIDIA GP108M [GeForce MX330] driver: nvidia v: 580.95.05
Device-3: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
type: USB
Device-4: Razer USA Gaming Webcam [Kiyo] driver: snd-usb-audio,uvcvideo
type: USB
Device-5: IMC Networks Integrated Camera driver: uvcvideo type: USB
Display: wayland server: ``X.org`` v: 1.21.1.20 with: Xwayland v: 24.1.9
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: iris
gpu: i915 resolution: 3840x2160~60Hz
API: EGL v: 1.5 drivers: iris,nvidia,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 25.2.5-arch1.2
renderer: Mesa Intel UHD Graphics (CML GT2)
API: Vulkan v: 1.4.328 drivers: nvidia surfaces: N/A
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
wl: wayland-info x11: xdpyinfo, xprop, xrandr
Audio:
Device-1: Intel Comet Lake PCH-LP cAVS driver: sof-audio-pci-intel-cnl
Device-2: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
type: USB
Device-3: Generalplus USB Audio Device
driver: hid-generic,snd-usb-audio,usbhid type: USB
Device-4: Razer USA Gaming Webcam [Kiyo] driver: snd-usb-audio,uvcvideo
type: USB
Device-5: Focusrite-Novation Scarlett Solo (3rd Gen.)
driver: snd-usb-audio type: USB
API: ALSA v: k6.17.5-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.4.9 status: active
Network:
Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi
IF: wlan0 state: up mac:
Device-2: Intel Ethernet I219-LM driver: e1000e
IF: enp0s31f6 state: down mac:
IF-ID-1: wwan0 state: down mac: N/A
Bluetooth:
Device-1: Intel AX201 Bluetooth driver: btusb type: USB
Report: btmgmt ID: hci0 state: up address: bt-v: 5.2
Drives:
Local Storage: total: 476.94 GiB used: 25.1 GiB (5.3%)
ID-1: /dev/nvme0n1 vendor: Toshiba model: N/A size: 476.94 GiB
Partition:
ID-1: / size: 474.94 GiB used: 25.1 GiB (5.3%) fs: btrfs dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 2 GiB used: 632 KiB (0.0%) fs: vfat
dev: /dev/nvme0n1p1
ID-3: /home size: 474.94 GiB used: 25.1 GiB (5.3%) fs: btrfs
dev: /dev/nvme0n1p2
ID-4: /var/log size: 474.94 GiB used: 25.1 GiB (5.3%) fs: btrfs
dev: /dev/nvme0n1p2
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 50.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 48 GiB available: 46.8 GiB used: 4.08 GiB (8.7%)
Processes: 276 Uptime: 23m Shell: nu inxi: 3.3.39

sudo dmesg | grep -E “drm|nvidia”

[ 0.000000] Command line: BOOT_IMAGE=/@/boot/vmlinuz-linux root=UUID=9c0e146d-9c40-4710-89c1-534133798404 rw rootflags=subvol=@ nowatchdog nvme_load=YES loglevel=3 psmouse.synaptics_intertouch=1 nvidia_drm.modeset=1
[ 0.148268] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-linux root=UUID=9c0e146d-9c40-4710-89c1-534133798404 rw rootflags=subvol=@ nowatchdog nvme_load=YES loglevel=3 psmouse.synaptics_intertouch=1 nvidia_drm.modeset=1
[ 1.001672] ACPI: bus type drm_connector registered
[ 1.026851] simple-framebuffer simple-framebuffer.0: [drm] Registered 1 planes with drm panic
[ 1.026853] [drm] Initialized simpledrm 1.0.0 for simple-framebuffer.0 on minor 0
[ 1.032481] simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device
[ 1.736786] nvidia: loading out-of-tree module taints kernel.
[ 1.736793] nvidia: module license ‘NVIDIA’ taints kernel.
[ 1.736798] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 1.736799] nvidia: module license taints kernel.
[ 2.051954] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 2.067080] nvidia 0000:2d:00.0: enabling device (0006 → 0007)
[ 2.318093] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 580.95.05 Tue Sep 23 09:41:17 UTC 2025
[ 2.319468] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 2.327305] [drm] [nvidia-drm] [GPU ID 0x00002d00] Loading driver
[ 2.919062] [drm] Initialized nvidia-drm 0.0.0 for 0000:2d:00.0 on minor 1
[ 2.919080] nvidia 0000:2d:00.0: [drm] No compatible format found
[ 2.919082] nvidia 0000:2d:00.0: [drm] Cannot find any crtc or sizes
[ 5.898251] systemd[1]: Load Kernel Module drm was skipped because of an unmet condition check (ConditionKernelModuleLoaded=!drm).
[ 7.310497] i915 0000:00:02.0: [drm] Found cometlake/ult (device ID 9b41) integrated display version 9.00 stepping N/A
[ 7.425735] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[ 7.507611] i915 0000:00:02.0: [drm] Registered 3 planes with drm panic
[ 7.507615] [drm] Initialized i915 1.6.0 for 0000:00:02.0 on minor 2
[ 7.614021] fbcon: i915drmfb (fb0) is primary device
[ 7.637528] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device

So, if anyone has this problem too (it will probably be solved with 6.5.2 anyway), my solution is mysterious, but apparently installing switcheroo (using nvidia-inst –switcheroo) helped, and now everything works again. Why? No idea. Do I care? Not really, it works. :smiley: