Hi Mario, On Sunday, 29. November 2026 04:36:45 CET Mario Limonciello wrote: > > A few ideas. > > 1) Can you force a modeset after resume? You can do this with a CLI > tool like modetest if you don't have a drm master running. Or you can > do it from your compositor (like kwin or mutter). No, because after resume kscreen-doctor complains that there are no output screens. Sorry for not providing exact output but it aborts momentarily after resume when remotely accessing the machine by ssh. Before suspend it produced this: Output: 1 DP-2 68382564-284f-4c12-80de-9c08948d1c05 enabled connected priority 1 DisplayPort replication source:0 Modes: 1:3840x2160@60.00! 2:3840x2160@120.00* 3:3840x2160@119.88 4:3840x2160@120.00 5:3840x2160@60.00 6:3840x2160@59.94 7:3840x2160@50.00 8:3840x2160@30.00 9:3840x2160@29.97 10:3840x2160@25.00 11:3840x2160@24.00 12:3840x2160@23.98 13:2560x1440@120.00 14:2560x1440@59.95 15:1920x1200@59.88 16:1920x1080@120.00 17:1920x1080@119.88 18:1920x1080@60.00 19:1920x1080@60.00 20:1920x1080@59.94 21:1920x1080@50.00 22:1920x1080@30.00 23:1920x1080@29.97 24:1920x1080@25.00 25:1920x1080@24.00 26:1920x1080@23.98 27:1600x1200@60.00 28:1680x1050@59.95 29:1600x900@60.00 30:1280x1024@75.03 31:1280x1024@60.02 32:1280x800@59.81 33:1152x864@75.00 34:1280x720@60.00 35:1280x720@59.94 36:1280x720@50.00 37:1024x768@75.03 38:1024x768@60.00 39:800x600@75.00 40:800x600@60.32 41:720x576@50.00 42:720x480@60.00 43:720x480@59.94 44:640x480@75.00 45:640x480@60.00 46:640x480@59.94 47:640x480@59.94 Custom modes: None Geometry: 0,0 2649x1490 Scale: 1.45 Rotation: 1 Overscan: 0 Vrr: Never RgbRange: Automatic HDR: incapable Wide Color Gamut: incapable ICC profile: none Color profile source: sRGB Color power preference: prefer efficiency and performance Brightness control: supported, set to 40% and dimming to 100% Color resolution: automatic (10), range: [8; 16] bits per color Allow EDR: unsupported Sharpness control: unsupported Automatic brightness: unsupported Auto Rotate Policy: incapable Adaptive backlight modulation: unsupported > If a modeset makes it work I'd guess we're missing an HPD event to > trigger all the GPU driver actions. Maybe at the end of > tb_add_dp_resources()? Or right after where it was placed in > tb_restore_children()? Not sure. Related to this, output of $ for i in /sys/class/drm/card0-DP-*/status; do echo "$i: $(cat $i)"; done Before suspend: /sys/class/drm/card0-DP-1/status: disconnected /sys/class/drm/card0-DP-2/status: connected /sys/class/drm/card0-DP-3/status: disconnected /sys/class/drm/card0-DP-4/status: disconnected /sys/class/drm/card0-DP-5/status: disconnected /sys/class/drm/card0-DP-6/status: disconnected After resume: /sys/class/drm/card0-DP-1/status: disconnected /sys/class/drm/card0-DP-2/status: disconnected /sys/class/drm/card0-DP-3/status: disconnected /sys/class/drm/card0-DP-4/status: disconnected /sys/class/drm/card0-DP-5/status: disconnected /sys/class/drm/card0-DP-6/status: disconnected > 2) I guess I would say try drm.debug=0x106 and then let's see what > events show up during the resume cycle to confirm this too. Please find dmesg with with 'drm.debug=0x106 thunderbolt.dyndbg=+p' attached. Seems like verbosity made dmesg ringbufer overflow, but the suspend/resume cycle is still contained. One more observation, the following suspend/resume script seems to fix it: means a single keypress wakes the system up and the unlock screen is displayed after about 20-50 seconds randomly, but very reliably: #!/bin/sh # File: /etc/elogind/system-sleep/99-bolt-wake.sh # USB controller: ASMedia Technology Inc. ASM4242 USB 4 / Thunderbolt 3 Host Router (rev 01) PCI_ADDR="0000:71:00.0" case "$1" in pre) # suspend if [ -e "/sys/bus/pci/drivers/thunderbolt/$PCI_ADDR" ]; then echo "$PCI_ADDR" > /sys/bus/pci/drivers/thunderbolt/unbind fi ;; post) #resume if [ ! -e "/sys/bus/pci/drivers/thunderbolt/$PCI_ADDR" ]; then echo "$PCI_ADDR" > /sys/bus/pci/drivers/thunderbolt/bind fi # Wait up to 5s for the USB4 DP tunnel + amdgpu hotplug to report "connected" for (( i=0; $i < 50; i++ )); do if grep -q "^connected$" /sys/class/drm/card0-DP-*/status 2>/dev/null; then break fi sleep 0.1 done ;; esac BR, Achim