Is there a way to close the lid on a MacBook without putting it sleep?

19

6

Is there a way to close the lid on a MacBook without putting it sleep? This would be useful when connecting the macbook to an external display, for instance.

I've never been able to figure it out myself, but here is a picture from LifeHacker where it looks like it is being done.

enter image description here

James McMahon

Posted 2009-09-10T04:52:56.683

Reputation: 3 010

1I am not starting a flame war. I don't use macs. I don't care about them even. Just curious: Is it really not possible to do it via settings? Because my laptop has the same setting right now, and I am quite sure it is not a Dell specific setting, but a general Control Panel one. – Anurag Kalia – 2013-03-07T22:07:49.813

Answers

21

You most definitely can. It is even documented on Apple Support

tl;dr: Plugging in an using an external keyboard and mouse will wake the device, even if the lid is shut

Apple Portables: How to use your computer in closed clamshell (display closed) mode with an external display

If you are using a wired keyboard and mouse:

  • Make sure the computer is plugged in to an outlet using the AC power adapter.
  • Connect a USB keyboard and mouse to your computer.
  • With the computer turned on connect the Apple portable (using the appropriate Apple adapter if necessary) to the appropriate port on the external display or projector and turn the display or projector on.
  • Once your computer's Desktop appears on the external display, close the computer's lid.
  • Once the lid is closed, wake the computer up by either clicking your mouse button or by pressing a key on your external keyboard.

You should now be able to use your Apple portable as you normally would, using your USB keyboard and mouse.

The process is a little bit different if you are using a wireless keyboard and mouse. To check that out, or and further details, see Apple Portables: How to use your computer in closed clamshell (display closed) mode with an external display on Apple Support.

Josh Hunt

Posted 2009-09-10T04:52:56.683

Reputation: 20 095

But you need a Power Adapater. Can this be done without the Power Adapater? – TheBlackBenzKid – 2014-11-03T12:26:03.573

No worries! – Josh Hunt – 2009-09-12T10:50:19.177

I tried to get this to work all day, without success. The trick in getting it to work was:

  1. set your display to Mirroring mode
  2. close the lid
  3. wait for the external HDD to power down
  4. click the mouse button or press a key to get the computer to re-awaken
  5. < – lo_fye – 2009-11-17T04:26:52.893

4

Try using InsomniaX.

Dan Walker

Posted 2009-09-10T04:52:56.683

Reputation: 8 869

You don't need this software. It does work, although occasionally it gets a little "confused". One way I found to force it to realise what was going on was to plug in the keyboard, mouse, screen, and then hit restart and shut the lid just as the screen went black... it would then correctly reboot with the lid closed and output to the screen. – Jon Grant – 2009-09-10T11:52:59.393

1Sorry by "it does work" I meant the built-in Mac OS X does correctly work with the lid shut without any extra software. – Jon Grant – 2009-09-10T11:53:47.130

I believe InsomniaX works even if you don't connect a keyboard and monitor. So if you want to keep your computer running all night with the lid closed and no external screen or keyboard, this is the best option - although I think that Apple should make this possible by default. – SPRBRN – 2013-01-02T08:32:25.263

2

I researched around and came across a project to keep my MacBook on without having to keep my keyboard or mouse in since I hate having to go get them to plug into my Mac. Here is the project's page https://code.google.com/p/macosx-nosleep-extension/

Jessi

Posted 2009-09-10T04:52:56.683

Reputation: 21

Linking directly to the extension's project page (rather than just to the blog post) would have been preferable, as it prevents link rot. – Dennis – 2013-01-02T08:05:40.373

2

I've just started using NoSleep, it seems wonderful and does the job cleanly (http://code.google.com/p/macosx-nosleep-extension/).

Aquilamo

Posted 2009-09-10T04:52:56.683

Reputation: 21

1

I did some additional research and found this MacRumors thread.

Actually if you have a keyboard or mouse connected to it, with the PSU connected as well, you can close the laptop wake it back up. The Monitor will become the default screen, and the screen on the laptop stays off.

I haven't confirmed that this works.

James McMahon

Posted 2009-09-10T04:52:56.683

Reputation: 3 010

1Yup, this is exactly how it works once an external monitor is connected. – Darren Greaves – 2009-09-10T08:51:52.160

1

I do this without an external keyboard or mouse - I use synergy to connect to it over the network instead.

When I close the lid it goes to sleep, I then have one of two ways of waking it.
One way is to plug in a USB device (usually my external hard drive I use for Time Machine).
The other way is via wake-on-lan - I run etherwake on my Linux box with the Macbook's MAC address and it wakes up.

Wake-on-lan only works if you had put the computer to sleep via the menu option - it won't work if you put it to sleep by closing the lid. USB connections always work though.

I think both these options may need enabling in the Macbook's preferences - I can't be 100% sure as I set it up this way ages ago.

Darren Greaves

Posted 2009-09-10T04:52:56.683

Reputation: 171

0

Also if you're running windows you can just change what closing the lid does in the power options. Handy for anyone on bootcamp who wants to do this

roryok

Posted 2009-09-10T04:52:56.683

Reputation: 672

0

If you turn on Internet Sharing in the Sharing Control Panel, your MacBook will not go to sleep with the lid closed.

Charles

Posted 2009-09-10T04:52:56.683

Reputation: 1