Unplugging a USB-C Dock crashes gnome-shell on wayland
OS: Arch Linux, Mainline Kernel, Fully updated Gnome: 41 Mutter: Mutter 41.0-0.3 XOrg/Wayland: Only Wayland, in XOrg it works fine
First of all I am reporting this to mutter as that's what I suspect from the crash log. Im sorry if its not mutters fault.
When using Wayland, attaching a USB-C Dock (Not Thunderbolt) using Displaylink, the system will detect the monitors attached to it but fail to handle it gracefully. The shell will crash and the login screen will appear after everything restarted in the background. When logging in, the settings will then show the monitors as they are still attached, but the monitors will not show an image. Changing monitor settings does not fix that either. The monitors will go into powersave, they don't even light up their backpanel.
This does not happen with XOrg. On XOrg I can properly plug in a USB-C Dock and the monitors will appear and work fine.
Steps to reproduce
- Setup displaylink and evdi (Verify with XOrg that they work)
- Disconnect the Dock from the computer
- Switch to a wayland session
- Connect the Dock to the computer
On wayland, plugging in an USB-C Dock with monitors will result in a crash and two blank, unlit monitors after logging in post-crash.
What did you expect to happen
I expect that the wayland session will handle the new monitors properly and does not crash. Basically do what the XOrg session does.