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
/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