The trick to enabling closed-display mode is that your Mac must be plugged into an AC outlet and you must connect an external keyboard and mouse or trackpad