Score:0

How to switch to an external monitor when a laptop lid is closed?

dz flag

There are a lot of similar questions. For example this one suggests a complicated solution with hotkeys.

Everything worked fine on Ubuntu 22.04. When I closed a laptop lid, then the laptop screen is turned off and an external montor was still turned on.

But after updating to 22.10 the behaviour was changed. Both screens are turned on. I can move a mouse pointer to the closed screen and windows are opened sometimes on the closed laptop screen. How to turn it off automatically?

I installed dconf-editor. The power settings are as follows:

lid-close-ac-action = blank
lid-close-suspend-with-extenral-monitor = false

All settings in /etc/systemd/logind.conf are commented out:

#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

What settings should I change?

David avatar
cn flag
You may want to report this as a bug is the only change is an upgrade. https://ubuntu.com/blog/the-keys-to-successful-bug-reporting
dz flag
Thanks for the advice! I've created a bug report https://bugs.launchpad.net/ubuntu/+bug/1995788 Actually I agree that it seems to be a bug, because the laptop screen should be at least turned off when it's closed.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.