SUMMARY In dual monitor setup (notebook + external monitor) the external monitor does not turn off when I close the lid even though I have the relevant option enabled in the settings. My settings are: "When laptop lid closed" -> Turn off the screen "Even when an external monitor is connected" is checked Actually, at the time I close the lid, *both* screens go off. But in the next second my external monitor turns back on and the display setup gets rearranged in a single monitor setup with the external monitor as primary. I found bug 438716 which looks relevant but it's the opposite of my problem and on Wayland. My platform is X11. kscreen-doctor -o Output: 66 eDP-1 enabled connected primary Panel Modes: 71:1920x1080@60*! 72:1920x1080@60 73:1920x1080@60 --- 158:320x240@60 159:360x202@60 160:360x202@59 161:320x180@60 162:320x180@59 Geometry: 0,0 1920x1080 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown primary Output: 67 HDMI-1 disabled disconnected HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown Output: 68 DP-1 enabled connected DisplayPort Modes: 76:1680x1050@60 84:1280x1024@60 97:1280x800@60 --- 184:640x480@60 185:720x400@70 Geometry: 1920,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown Output: 69 HDMI-2 disabled disconnected HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown ❯ xrandr -q Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384 eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm 1920x1080 60.00*+ 59.97 59.96 59.93 48.01 --- 320x180 59.84 59.32 HDMI-1 disconnected (normal left inverted right x axis y axis) DP-1 connected 2560x1440+1920+0 (normal left inverted right x axis y axis) 597mm x 336mm 2560x1440 59.95*+ --- 720x400 70.08 HDMI-2 disconnected (normal left inverted right x axis y axis) SOFTWARE/OS VERSIONS Operating System: KDE neon 5.24 KDE Plasma Version: 5.24.1 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.3 Kernel Version: 5.13.0-28-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz Memory: 31.1 GiB of RAM Graphics Processor: Mesa Intel® Iris® Plus Graphics
> When laptop lid closed" -> Turn off the screen That's referring to the laptop screen, not any connected external screens. > Actually, at the time I close the lid, *both* screens go off. But in the next second my > external monitor turns back on and the display setup gets rearranged in a single monitor > setup with the external monitor as primary. This is exactly what's supposed to happen when you close your laptop lid with that option checked and an external monitor connected. To put the system to sleep when you have a laptop connected to an external screen, you'll need to use the explicit "Sleep" action found the Application Launcher or KRunner.
(In reply to Nate Graham from comment #1) > > When laptop lid closed" -> Turn off the screen > That's referring to the laptop screen, not any connected external screens. I am sorry but it was not working that way in the past. Besides that make no sense at all, If I close the lid why should I care if the laptop screen is on or off? > > > Actually, at the time I close the lid, *both* screens go off. But in the next second my > > external monitor turns back on and the display setup gets rearranged in a single monitor > > setup with the external monitor as primary. > This is exactly what's supposed to happen when you close your laptop lid > with that option checked and an external monitor connected. > > To put the system to sleep when you have a laptop connected to an external > screen, you'll need to use the explicit "Sleep" action found the Application > Launcher or KRunner. I don't want to put my system to sleep, I want *both* of my monitors off
Besides, it does not matter if that check box is selected or not, currently closing the lid always switches off the laptop screen and rearranges the display configuration
Sorry, I think I'm getting confused here. Would you mind describing *exactly* what you would like to happen to each monitor and the system as a whole when you close your laptop lid when there is an external monitor attached, if it were working the way you'd prefer?
OK, so that is how I understand these settings: - the combo box provides a means to select an action to be executed when I close the laptop lid. - the check box gives me a choice to override this action i.e. to NOT execute the action when the external monitor is connected. Currently on the lid close the laptop screen is turned off, no matter what, even if I chose the action 'Do nothing'. That does not respect the settings but I have no objection to that, there is no point for the laptop screen to be on while the lid is closed. But, when I chose 'Turn off screen' I expect the action to depend on the check box 'Even when an external monitor is connected' if that check box is not checked - the external monitor(s) should stay on when I close the lid(with the layout rearranging and all), but if it is checked all external monitor(s) should also go off. Otherwise, these settings are not consistent and confusing. Did I misunderstand the settings and are my expectations not correct?
Thanks for the info, and sorry for the delayed reply. Your expectations are correct. In the meantime, maybe you want to set the action to "sleep" rather than "turn off screen?" That might work.
(In reply to Nate Graham from comment #6) > Thanks for the info, and sorry for the delayed reply. Your expectations are > correct. > > In the meantime, maybe you want to set the action to "sleep" rather than > "turn off the screen?" That might work. Well, I choose "turn of monitor" deliberately. As part of my job, I am executing long-running tasks (6-7-8h and even longer) remotely connected via VPN. "Sleep" is not an option in my case.