21
Jun
08
Tagged Under: , ,
Changing The Sleep Setting On A Mac Laptop

Hey

This is quite a little interest on mine. Since I have a laptop I open and close the lid a lot when moving from one place to another. As a result some time I want to change what happens. For example keeping the Mac asleep when the lid is opened and keeping my Mac awake when the lid is closed. There isn’t any default methods of doing this within the system preferences. It needs a bit of hacking and using applications to work around this problem.

The first part of this post will be to turn off the wake on lid option. This means that when the laptop is woken by opening the lid, this command should stop that. Its very simple to complete. The first step is to open Terminal. From there type:

sudo pmset -a lidwake 0

You will have to enter you admin password. This will then change a system setting located in you power management preference. If you want to change it back you have to use the same command but change the 0 to a 1.

sudo pmset -a lidwake 1

Within the code about, pmset is sort for power management settings. Most of the settings within that command relate to the settings you can access within System Preferences. the -a means that the command will work with all power sources. You can use other letters to relate the command to other sources including battery and UPS if avalible. The final piece of code, lidwake, it what we want. We are changing the binary value for this command.

As mention in the summary of this post there is way of making sure that you computer keeps running when the lid is closed. This is done through and application called InsomniaX, which has one of the best looking icons I have ever seen. This application, run from the menu bar, is designed to give your computer insomnia and stop it going to sleep when the lid is closed.


It works really well. Although I wouldn’t recommend using this option if you are using CPU intensive work. Since when the lid is closed the air ports at the back, by the screen, are blocked. As a result I can heat up the internals of your computer and possibly damage them. It has also been reported in many places that this can damage your screen due to the intense heat. Use caution.

Related posts:

  1. Putting Your Mac To Sleep
  2. Changing Terminals Skin
  3. Changing Your MAC Address (Wireless)
  4. Changing The App A File Opens With
  5. Changing The Login Screen Background

If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed. To find out more about RSS check out the help page for more information.

Save/Promote This Post

If you enjoyed reading this article, post you vote. Each vote is highly appreciated. Find out more about bookmarking here

2 Responses


  1. 1

    This is good ! my macbook won’t come out of sleep ! at all and I have to restart it most of the time, I can’t figure it out ! for the life of me !

    Comment By Miah on December 5th, at 9:24 pm

Trackbacks/Pingbacks (Trackback URL)

Please use the Trackback URL above to get properly credited

  1. Must Have Menu Bar Applications For Mac OS X Leopard | Mac Tricks And Tips

Respond

Name (required)

Mail (will not be published) (required)

Website

Comments Guidelines

  • Only basic HTML tags are allowed:
  • <a href> <h1 - h6> <acronym> <code> <em> <strike> <strong> <i> <b>
  • Spam comments will be deleted and IP's and websites blacklisted.
  • Remember the rules are here to make sure every one has a good time.
  • If you want more information visit the Comment Guidelines & Help page.

Live Comment Preview:

7,709 Spam comments caught. So why bother spamming?

Enjoy MacTricksAndTips? Get the latest posts everyday. Subscribe to the RSS feed or subscribe by

Small RSS Icon