I would like my MacBook Air running Yosemite to sleep once I close the lid, even if an external monitor is attached.
Before Yosemite this could be achieved with sudo nvram boot-args=iog=0x0
. This has stopped working after the upgrade.
Is there another or a new way to achieve the effect I want?