15

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.

Tyilo
  • 5,527

5 Answers5

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.

Lri
  • 105,117
  • 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. – 2540625 Sep 23 '14 at 01:20
2

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

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.

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

Robert S Ciaccio
  • 5,647
  • 3
  • 42
  • 52
0

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

Tyilo
  • 5,527