NOTE: Don't rush to mark as duplicate - most of the similar questions consider very old Ubuntu versions and their answers are not applicable.
I have Lenovo T460s with the latest Ubuntu 16.04. I like my lid closed when it's docked / connected to external monitors. However the moment I close the lid, the external monitors are turned off as well.
What I did so far:
- Set "Do nothing" in "When the lid is closed" line of Power settings
- Verified that
#HandleLidSwitchDocked=ignore
exists in/etc/systemd/logind.conf
(tried uncommenting and restarting - did not change anything) - Set my monitor LCD screen to OFF (when other monitors are connected)
- In "Brightness&Lock", "Lock" is off, and "Turn screen off when inactive for" is set to 30 minutes
#
in the line#HandleLidSwitchDocked=ignore
? Line start with#
is a comment, no effect...HandleLidSwitchDocked=ignore
is a default one. To be sure, I've additionally tried and uncommenting and rebooting, but it made no effect.