Laptop black screen after closing and opening lid when using an external monitor in mirror mode
Affected version
OS: Fedora 36
Mutter version: 42.0, release 6.fc36
Issue appears on XOrg and Wayland
Graphics info:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
Device-2: NVIDIA GP104M [GeForce GTX 1070 Mobile] driver: nouveau
v: kernel
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
v: 4.6 Mesa 22.0.3
Bug summary
I plugged in an external monitor and set the display mode in gnome-settings
to "Mirror".
I then closed the laptop lid. The system didn't suspend, which is to be expected since there's an external monitor plugged in.
After opening the lid the laptop screen remained black, even though it showed up as enabled in gnome-settings
. Unplugging the external monitor or changing the mode to "Join" turned the laptop screen back on.
The same behavior occurs on XOrg and Wayland. I tried connecting the monitor via HDMI (directly to the laptop) and DisplayPort (through a Thunderbolt 3 dock), but it didn't make any difference. I could also reproduce it in an XOrg session on Pop!_OS 22.04, which comes with GNOME 42 and proprietary NVidia drivers.
I could not reproduce this issue on Manjaro 21.2.6 booted from a Live ISO, which comes with GNOME 41.5.
Steps to reproduce
- Plug in an external monitor
- Set the display mode in
gnome-settings
to "Mirror" - Close the laptop lid
- Open the laptop lid
What happened
The laptop screen remains black
What did you expect to happen
The two displays should be mirrored again, with the laptop screen displaying the same thing as the external monitor.
Relevant logs, screenshots, screencasts etc.
Journal messages when trying to reproduce this:
<Set display mode to "Mirror">
May 12 13:50:49 fedora gnome-shell[1989]: Ignored exception from dbus method: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
May 12 13:50:51 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:50:51 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:50:51 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
<Close lid>
May 12 13:51:04 fedora systemd-logind[1031]: Lid closed.
<Open lid>
May 12 13:51:12 fedora systemd-logind[1031]: Lid opened.
May 12 13:51:12 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Failed to post KMS update: drmModeAtomicCommit: Invalid argument
May 12 13:51:12 fedora gnome-shell[1989]: Page flip discarded: drmModeAtomicCommit: Invalid argument
<These messages continue until I fix it either by changing the display mode or unplugging the external monitor>