https://yeri.be/mac-os-mountain-lion-external-display-sleep-when-closing-the-lid/
Mac os (Mountain) Lion + external display + sleep when closing the lid