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.

  • 1
  • 4
    Not a solution, but remember you can always use ⌥⌘⏏ to sleep the computer.
    – jtbandes
    Commented Aug 3, 2011 at 15:34
  • Not even realized this as I usually close the lid and switch off immediately the external monitor... :-/
    – LudoMC
    Commented Aug 3, 2011 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
    Commented Aug 3, 2011 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
    Commented Aug 3, 2011 at 18:20

5 Answers 5


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.

  • 1
    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? Commented Sep 18, 2014 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.
    – 2540625
    Commented Sep 23, 2014 at 1:20

I had this issue too, and came up with this script that monitors your lid state and puts the machine to sleep when lid is closed: https://github.com/pirj/noclamshell


In previous versions of OS X, you would go to ~/Library/Preferences/SystemConfiguration to find a file called com.apple.PowerManagement.plist. 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.

  • There is the option for "Wake On Clamshell Open", but not "Sleep On Clamshell Close", or something similiar. Screenshot: i.imgur.com/44Zrr.png
    – Tyilo
    Commented Aug 6, 2011 at 12:20
  • @Christian_Correa, btw this is in /Library/Preferences/SystemConfiguration, not ~/Library/Preferences/SystemConfiguration
    – Tyilo
    Commented Aug 6, 2011 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:



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

I made a LaunchAgent which does this. The source code can be downloaded here: https://github.com/Tyilo/Lid-sleep

  • Does it work in Yosemite? How would I use this LaunchAgent? Thank you.
    – 2540625
    Commented Jan 3, 2015 at 0:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .