11

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.

  • 4
    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
6

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? – 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. – jtheletter Sep 23 '14 at 1:20
1

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

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/

  • 2
    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
0

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. – jtheletter Jan 3 '15 at 0:56
0

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

You must log in to answer this question.

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