Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know you have heard this before, but is there any app/hack that makes the computer behave like Snow Leopard when closing the lid?

I don't want to hear about this being a duplicate question, as I want a solution not an explanation.

Only post here if you have a solution that makes the macbook behave like in Snow Leopard when closing the lid.

share|improve this question
Not a solution, but remember you can always use ⌥⌘⏏ to sleep the computer. – jtbandes Aug 3 '11 at 15:34
Not even realized this as I usually close the lid and switch off immediately the external monitor... :-/ – LudoMC Aug 3 '11 at 18:00
@LudoMC have had my macbook running in the night three times now, because I forgot to remove the cable to the external monitor, as I also switch my monitor off immediately :S – Tyilo Aug 3 '11 at 18:12
@Tyilo Just ran an uptime command which shows mine is up for more than 3 days now! Hopefully I now know I have to manually put him at sleep. – LudoMC Aug 3 '11 at 18:20
up vote 6 down vote accepted

This worked in 10.7 and 10.8 with my MacBook Air:

sudo nvram boot-args=iog=0x0

After restarting, it should restore the pre-10.7 behavior:

  • Closing the lid puts a laptop to sleep even when it is connected to an external display
  • If you then wake the laptop up and open the lid, the internal display doesn't turn on

To undo it, run sudo nvram -d boot-args or hold ⌥⌘PR on startup.

share|improve this answer
This worked for me on a 10.9.4 Macbook Air! BUT... Is there a way to have the internal display turn on when you wake on the laptop? – Alan David Garcia Sep 18 '14 at 19:24
This worked for my MBP running Mavericks, but only if I disconnected the power and monitor before running the command, rebooting the Mac, and then reconnecting the power and monitor. Not sure if it was the rebooting, the disconnecting, or both. – jaepage Sep 23 '14 at 1:20

In previous versions of OS X, you would go to ~/Library/Preferences/SystemConfiguration to find a file called In that file you would find ways to tweak things like the old "clamshell" mode. I have not looked in Lion yet to see if this still exists, but if the file is still there, you may want to take a look at what it allows you to control. Hope this helps.

share|improve this answer
There is the option for "Wake On Clamshell Open", but not "Sleep On Clamshell Close", or something similiar. Screenshot: – Tyilo Aug 6 '11 at 12:20
@Christian_Correa, btw this is in /Library/Preferences/SystemConfiguration, not ~/Library/Preferences/SystemConfiguration – Tyilo Aug 6 '11 at 12:49

Not sure if it will still work with Lion, but on SL I use InsomniaX when I want to close the lid and prevent my mbp from sleeping. Check out the following links for similar programs:

share|improve this answer
I don't want to prevent the Mac from sleeping. I want it to sleep when I close the lid! – Tyilo Aug 17 '11 at 21:36
@tyilo: oops, totally read that backwards :) – Robert S Ciaccio Aug 18 '11 at 22:59
left my answer up in case that app helps someone with the opposite problem... – Robert S Ciaccio Sep 19 '11 at 0:20

I made a LaunchAgent which does this. The source code can be downloaded here:

share|improve this answer
Does it work in Yosemite? How would I use this LaunchAgent? Thank you. – jaepage Jan 3 '15 at 0:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.