I would like to obtain the following behavior on a laptop:
- closing the lid should not suspend the computer
- closing the lid should turn off the display
- when closing the lid with an external display connected, I would like the system to "detect" the fact that the internal display is turned off and thus behave in "single screen mode" (all windows moved back to the external display, mouse cursor back on the display, etc.).
At the moment I obtained the correct behavior with the first two points by simply changing the settings.
Could you remind me what is the correct way to get 1. and 2. and point me in the correct direction for 3.?