How to keep graphical session running in 17.10 when external screen is turned off?
Solution 1:
I heard from a duplicate question that you can work around this by locking your screen (Super+L) (that's the "windows" or "command" key, plus L) before turning off the display.