System hang when plugging in external monitor
Symptoms
When plugging in the external screen, it remains black, windows change size on the external screen, and the system hangs completely. (Unable to move mouse, screen doesn't update, ctrl+alt+f does not change to a console).
To reproduce
- Boot with external screen plugged in
- open a chromium window on the external screen
- open a firefox window on the internal screen
- unplug the external screen
- plug the external screen back in
System details
Arch Linux, Gnome shell on wayland
gnome-shell 3.28.2-1 mutter 3.28.2-1 wayland 1.14.0-1 linux 4.16.7-1
Dell XPS 9560 with hybrid nvidia graphics, primarily intel kaby lake, internal 3840x2160 screen 2560x1440 external screen plugged in with a USB-C <-> displayport cable
Logs
- System log of the issue occurring with mutter 3.28.2 with
drm.debug=0xff
andMUTTER_VERBOSE=1
- Log of the issue not occurring with mutter compiled from
lfrb/wip/issue122
at7a93f8912daefbcf544d310e4f17f3a4c16326ea
When the issue occurs, the following messages are visible in the log:
gnome-shell[1288]: Failed to apply DRM plane transform 1: Invalid argument
gnome-shell[1288]: Failed to set CRTC mode 2560x1440: Invalid argument
gnome-shell[1288]: Failed to flip: Device or resource busy
gnome-shell[1288]: Failed to set CRTC mode 2560x1440: Invalid argument
gnome-shell[1288]: Failed to set CRTC mode 2560x1440: Invalid argument
gnome-shell[1288]: Failed to set CRTC mode 2560x1440: Invalid argument
Potentially the same issue: https://bbs.archlinux.org/viewtopic.php?id=236807