Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
    
3  
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

4 Answers 4

up vote 2 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

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.

share|improve this answer
    
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 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:

http://www.macupdate.com/app/mac/22211/insomniax

http://alternativeto.net/software/insomniax/

share|improve this answer
1  
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: https://github.com/Tyilo/Lid-sleep

share|improve this answer

Your Answer

 
discard

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.