Changing The Sleep Setting On A Mac Laptop 5

System

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.


If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

5 Responses to “Changing The Sleep Setting On A Mac Laptop”

  1. 1

    [...] Similar to Caffeine InsomniaX is designed to keep your Mac awake. It is designed to keep you computer up and running even if you close the lid on your laptop or trying to make it go to sleep through other methods. Very useful if you want to keep you computer constantly running, but does use more electrical power and can cause overheat on a Macbook i you close the lid. You can read more about it from me here. [...]

    Comment By Must Have Menu Bar Applications For Mac OS X Leopard | Mac Tricks And Tips on July 10th, at 9:37 pm

  2. 2

    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

  3. 3

    This looks great, but what if my Mac won’t automatically sleep when I close the lid? What do I type in that situation? Thanks!

    Comment By Abby on March 22nd, at 3:03 pm

  4. 4

    Great post, but I’d like to clear up a possible discrepancy in the last paragraph. Macbooks can run hard for years with the lid closed. Using an external display, they are designed to run this way, and that’s how I’ve used mine for most of it’s useful life. My load average is higher than most, since I run hypervisors and graphics apps constantly, but have had zero problems with heat, and my average temperature is around 175ยบ. Go forth and clamshell!

    Comment By technicallyhesright on July 2nd, at 3:06 pm

  5. 5

    Danke mehrmals

    Comment By anti falten on November 24th, at 6:39 pm

Leave a Reply

You can use: <a href> <h1 - h6> <acronym> <code> <em> <strike> <strong> <i> <b>