GNOME Bugzilla – Bug 789199
Gnome switch to laptop screen when closing lid
Last modified: 2017-11-13 04:27:52 UTC
Created attachment 361871 [details] ~/.config/monitors.xml Hello When connecting a external monitor to my laptop through HDMI and choosing "external monitor only" in gnome-control-center, everything seems to work as expected, but when I close my lid it decide to switch back to the laptop screen. The only workaround seems to be to choose "extend screen", close the laptop lid and click "Yes, continue with new screen configuration. System information: OS: ArchLinux (64 bit) I'm using Gnome with X (not wayland) $ pacman -Q gnome-shell gnome-control-center linux mesa gnome-shell 3.26.1+3+g43ec5280b-1 gnome-control-center 3.26.1-1 linux 4.13.6-1 mesa 17.2.2-1 $ glxinfo | grep OpenGL OpenGL vendor string: X.Org OpenGL renderer string: AMD SUMO (DRM 2.50.0 / 4.13.6-1-ARCH, LLVM 5.0.0) OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.2.2 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 17.2.2 OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.2.2 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 OpenGL ES profile extensions: $ lspci | grep VGA 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek [Radeon HD 6520G] 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff) $ gdbus call -e -d org.gnome.Mutter.DisplayConfig -o /org/gnome/Mutter/DisplayConfig -m org.gnome.Mutter.DisplayConfig.GetCurrentState (uint32 90, [(('HDMI-0', 'GSM', 'W2453', '0x0005a112'), [('1920x1080@59.933879852294922', 1920, 1080, 59.933879852294922, 1.0, [1.0], {'is-current': <true>, 'is-preferred': <true>}), ('1920x1080@60', 1920, 1080, 60.0, 1.0, [1.0], {}), ('1920x1080@50', 1920, 1080, 50.0, 1.0, [1.0], {}), ('1920x1080@59.940200805664062', 1920, 1080, 59.940200805664062, 1.0, [1.0], {}), ('1920x1080i@30', 1920, 1080, 30.0, 1.0, [1.0], {'is-interlaced': <true>}), ('1920x1080i@25', 1920, 1080, 25.0, 1.0, [1.0], {'is-interlaced': <true>}), ('1920x1080i@29.970100402832031', 1920, 1080, 29.970100402832031, 1.0, [1.0], {'is-interlaced': <true>}), ('1680x1050@59.883251190185547', 1680, 1050, 59.883251190185547, 1.0, [1.0], {}), ('1280x1024@60.019741058349609', 1280, 1024, 60.019741058349609, 1.0, [1.0], {}), ('1280x960@60', 1280, 960, 60.0, 1.0, [1.0], {}), ('1280x720@60', 1280, 720, 60.0, 1.0, [1.0], {}), ('1280x720@50', 1280, 720, 50.0, 1.0, [1.0], {}), ('1280x720@59.940200805664062', 1280, 720, 59.940200805664062, 1.0, [1.0], {}), ('1024x768@60.003841400146484', 1024, 768, 60.003841400146484, 1.0, [1.0], {}), ('800x600@60.316539764404297', 800, 600, 60.316539764404297, 1.0, [1.0], {}), ('720x576@50', 720, 576, 50.0, 1.0, [1.0], {}), ('720x480@60', 720, 480, 60.0, 1.0, [1.0], {}), ('720x480@59.940059661865234', 720, 480, 59.940059661865234, 1.0, [1.0], {}), ('640x480@60', 640, 480, 60.0, 1.0, [1.0], {}), ('640x480@59.940475463867188', 640, 480, 59.940475463867188, 1.0, [1.0], {})], {'is-underscanning': <false>, 'is-builtin': <false>, 'display-name': <'Goldstar Company Ltd 24"'>}), (('LVDS', 'AUO', '0x20ec', '0x00000000'), [('1366x768@60.066631317138672', 1366, 768, 60.066631317138672, 1.0, [1.0], {'is-preferred': <true>}), ('1366x768@40.047046661376953', 1366, 768, 40.047046661376953, 1.0, [1.0], {}), ('1280x720@59.974033355712891', 1280, 720, 59.974033355712891, 1.0, [1.0], {}), ('1152x768@59.949573516845703', 1152, 768, 59.949573516845703, 1.0, [1.0], {}), ('1024x768@59.949382781982422', 1024, 768, 59.949382781982422, 1.0, [1.0], {}), ('800x600@59.959999084472656', 800, 600, 59.959999084472656, 1.0, [1.0], {}), ('848x480@59.93939208984375', 848, 480, 59.93939208984375, 1.0, [1.0], {}), ('720x480@59.9375', 720, 480, 59.9375, 1.0, [1.0], {}), ('640x480@59.9375', 640, 480, 59.9375, 1.0, [1.0], {})], {'is-builtin': <true>, 'display-name': <'Indbygget terminal'>})], [(0, 0, 1.0, uint32 0, true, [('HDMI-0', 'GSM', 'W2453', '0x0005a112')], @a{sv} {})], {'layout-mode': <uint32 2>, 'global-scale-required': <true>, 'max-screen-size': <(8192, 8192)>}) $ gdbus call -e -d org.gnome.Mutter.DisplayConfig -o /org/gnome/Mutter/DisplayConfig -m org.gnome.Mutter.DisplayConfig.GetResources (uint32 90, [(uint32 0, int64 117, 0, 0, 1920, 1080, 9, uint32 0, [uint32 0, 1, 2, 3, 4, 5, 6, 7], @a{sv} {}), (1, 118, 1920, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (2, 63, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (3, 64, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (4, 65, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (5, 66, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (6, 67, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {}), (7, 68, 0, 0, 0, 0, -1, 0, [0, 1, 2, 3, 4, 5, 6, 7], {})], [(uint32 0, int64 121, 0, [uint32 0, 1], 'HDMI-0', [uint32 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], @au [], {'vendor': <'GSM'>, 'product': <'W2453'>, 'serial': <'0x0005a112'>, 'width-mm': <531>, 'height-mm': <299>, 'display-name': <'Goldstar Company Ltd 24"'>, 'backlight': <-1>, 'min-backlight-step': <-1>, 'primary': <true>, 'presentation': <false>, 'connector-type': <'HDMIA'>, 'underscanning': <false>, 'supports-underscanning': <true>, 'edid': <[byte 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x1e, 0x6d, 0xf5, 0x56, 0x12, 0xa1, 0x05, 0x00, 0x04, 0x14, 0x01, 0x03, 0x80, 0x35, 0x1e, 0x78, 0x0a, 0xae, 0xc5, 0xa2, 0x57, 0x4a, 0x9c, 0x25, 0x12, 0x50, 0x54, 0x21, 0x08, 0x00, 0xb3, 0x00, 0x81, 0x80, 0x81, 0x40, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1a, 0x36, 0x80, 0xa0, 0x70, 0x38, 0x1f, 0x40, 0x30, 0x20, 0x35, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x1a, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38, 0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x38, 0x3d, 0x1e, 0x53, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x57, 0x32, 0x34, 0x35, 0x33, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0xc5, 0x02, 0x03, 0x21, 0xf1, 0x4e, 0x90, 0x04, 0x03, 0x01, 0x14, 0x12, 0x05, 0x1f, 0x10, 0x13, 0x00, 0x00, 0x00, 0x00, 0x23, 0x09, 0x07, 0x07, 0x83, 0x01, 0x00, 0x00, 0x65, 0x03, 0x0c, 0x00, 0x10, 0x00, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38, 0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x1e, 0x01, 0x1d, 0x80, 0x18, 0x71, 0x1c, 0x16, 0x20, 0x58, 0x2c, 0x25, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x9e, 0x01, 0x1d, 0x00, 0x72, 0x51, 0xd0, 0x1e, 0x20, 0x6e, 0x28, 0x55, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x1e, 0x8c, 0x0a, 0xd0, 0x8a, 0x20, 0xe0, 0x2d, 0x10, 0x10, 0x3e, 0x96, 0x00, 0x13, 0x2b, 0x21, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26]>}), (1, 120, -1, [0, 1], 'LVDS', [0, 1, 2, 3, 4, 5, 6, 7, 8], [], {'vendor': <'AUO'>, 'product': <'0x20ec'>, 'serial': <'0x00000000'>, 'width-mm': <344>, 'height-mm': <193>, 'display-name': <'Indbygget terminal'>, 'backlight': <-1>, 'min-backlight-step': <-1>, 'primary': <false>, 'presentation': <false>, 'connector-type': <'LVDS'>, 'underscanning': <false>, 'supports-underscanning': <false>, 'edid': <[byte 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x06, 0xaf, 0xec, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x01, 0x04, 0x90, 0x22, 0x13, 0x78, 0x02, 0xc8, 0x95, 0x9e, 0x57, 0x54, 0x92, 0x26, 0x0f, 0x50, 0x54, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xce, 0x1d, 0x56, 0xd2, 0x50, 0x00, 0x26, 0x30, 0x10, 0x10, 0x3e, 0x00, 0x58, 0xc1, 0x10, 0x00, 0x00, 0x18, 0xdf, 0x13, 0x56, 0xd2, 0x50, 0x00, 0x26, 0x30, 0x10, 0x10, 0x3e, 0x00, 0x58, 0xc1, 0x10, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0d, 0x39, 0xe0, 0x0d, 0x3c, 0x64, 0x14, 0x12, 0x24, 0x6f, 0x20, 0x20, 0x20, 0x00, 0x26]>})], [(uint32 0, int64 123, uint32 1366, uint32 768, 60.066631317138672, uint32 10), (1, 124, 1366, 768, 40.047046661376953, 10), (2, 125, 1280, 720, 59.974033355712891, 6), (3, 126, 1152, 768, 59.949573516845703, 6), (4, 127, 1024, 768, 59.949382781982422, 6), (5, 128, 800, 600, 59.959999084472656, 6), (6, 129, 848, 480, 59.93939208984375, 6), (7, 130, 720, 480, 59.9375, 6), (8, 131, 640, 480, 59.9375, 6), (9, 132, 1920, 1080, 59.933879852294922, 9), (10, 133, 1920, 1080, 60.0, 5), (11, 134, 1920, 1080, 50.0, 5), (12, 135, 1920, 1080, 59.940200805664062, 5), (13, 136, 1920, 1080, 30.0, 21), (14, 137, 1920, 1080, 25.0, 21), (15, 138, 1920, 1080, 29.970100402832031, 21), (16, 139, 1680, 1050, 59.883251190185547, 9), (17, 140, 1280, 1024, 60.019741058349609, 5), (18, 141, 1280, 960, 60.0, 5), (19, 142, 1280, 720, 60.0, 5), (20, 143, 1280, 720, 50.0, 5), (21, 144, 1280, 720, 59.940200805664062, 5), (22, 145, 1024, 768, 60.003841400146484, 10), (23, 146, 800, 600, 60.316539764404297, 5), (24, 147, 720, 576, 50.0, 10), (25, 148, 720, 480, 60.0, 10), (26, 149, 720, 480, 59.940059661865234, 10), (27, 150, 640, 480, 60.0, 10), (28, 151, 640, 480, 59.940475463867188, 10)], 8192, 8192) Regards Kristian Klausen
Created attachment 361872 [details] xrandr --verbose
Could you test the patches in bug 788915?
(In reply to Jonas Ådahl from comment #2) > Could you test the patches in bug 788915? I just compiled mutter 3.26.2 with that three patch and now everything is working as expected. Good work :)
Great. Marking as dup. *** This bug has been marked as a duplicate of bug 788915 ***