Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

Can I disable "wake on lid open" on my MacBook?

My Mac has a rather flaky lid catch and I'd love to figure out a way that I can disable the "wake on lid open" capability of the MacBook. I understand that there is some sort of solution, but for the life of me I can't find anything!


Dave's Answer:

It's possible that there's a way to do this with a Mac application, but the only way I know to change this setting is from the command line in the Terminal application (Applications --> Utilities --> Terminal.app).

Open it up and type in the following command:

$ pmset -g
Active Profiles:
Battery Power -1*
AC Power -1
Currently in use: sms 1
hibernatefile /var/vm/sleepimage
acwake 0
sleep 30
halfdim 1
hibernatemode 3
disksleep 10
displaysleep 10
lidwake 1
lessbright 1

The key setting there is lidwake which is enabled, as you can see by its "1" value. To disable this particular setting you need to use the "pmset" command again, but this time you need to be the administrator since you're actually changing something:

$ sudo pmset -a lidwake 0
$

Now if you run the "pmset -g" command again you'll see that the "lidwake" setting is zero, not one. That's all you need to do. Now, until you use the command to reset the value to 1, you'll have a Mac that doesn't wake up when you open the lid.

By the way, while we're looking at the "pmset" command, note that there are a number of other settings you can tweak, including the time-to-sleep, whether your screen should dim, and a lot more. Check out the man page for the command (type "man pmset") and scroll down to the bottom to read all the examples. Very useful utility!

By the way, my PowerBook had the same problem with a flaky screen latch, a problem worsened by the screen warping. I finally ended up always leaving it screen-down and having a tightly-fitting fabric envelope to keep the unit closed in my computer bag. It would have been a far smarter thing to have known about "pmset", however!

Good luck to you!



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Great stuff, Dave ... thanks! The latch on my trusty old iBook gave up the ghost ages ago. I thought about going for the impromptu (you can do anything with) duct tape latch, but wisely tossed the idea aside ...

Posted by: Daniel Gray at March 19, 2007 9:44 AM

I have been having a problem with my Macbook Pro waking up on it's own while in my backpack because of moving around or whenever it is moved while asleep, this usually leads to over heating and my battery dying.

So after a quick Google search I found this page and I am now thanking you. :)

Posted by: Mark at February 4, 2009 1:59 PM

Thank you very much! I've been having the same problem as Mark (2/4/2009), and I think this will put my mind at ease when my MBP is asleep in my backpack.

Posted by: Nick at February 22, 2009 6:46 PM

thank you so much, I wish I would have found this website earlier, it would have saved me so much time thank you!!!

Posted by: c s at March 7, 2009 12:21 PM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement



Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2010 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.