Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Notebooks > Disabling waking from sleep when display opens

Disabling waking from sleep when display opens
Thread Tools
jdbrandt
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Sacramento, CA
Status: Offline
Reply With Quote
Oct 23, 2004, 03:38 PM
 
I have a 12" PowerBook that has lost the little hook on the display that keeps the cover closed. It is not user-replaceable; in fact, it can be repaired only by replacing the entire display, something I'm not willing to do on this older (but fully functional) PB.

The PB goes to sleep when I close the display; the problem is that if the display opens up even a little bit, it wakes up. Sometimes this happens in my computer bag or on my desk, and I then find out that it has drained the battery.

Question - Is there a way to tell the computer to ignore the open/close position of the screen in determining whether it goes to sleep or wakes up? I'd be happy to manually put it to sleep under the apple menu and hit enter to wake it up. I just want to avoid the situation of finding the computer has run itself down without my knowledge because it woke up from sleep when I didn't want it to.
     
Toutgood
Mac Enthusiast
Join Date: Jun 2003
Location: La Capitale
Status: Offline
Reply With Quote
Oct 23, 2004, 04:32 PM
 
in the terminal type: sudo pmset -a lidwake 0

"sudo" because pmset must be run as root,
"-a" for "all", meaning both when running on battery and when plugged in,
and
"lidwake 0" turns the automatic waking off ("lidwake 1" would turn it back on)
     
benwhanlee
Forum Regular
Join Date: Aug 2004
Status: Offline
Reply With Quote
Oct 23, 2004, 05:40 PM
 
i've always been curious about this too. so thanks for sharing the knowledge.
15" Al PB 1.67, 15" Ti PB 667, Power Mac 400
     
d.fine
Mac Elite
Join Date: May 2004
Location: on 650 cc's
Status: Offline
Reply With Quote
Oct 24, 2004, 04:09 AM
 
And it works like a charm too. I did it a couple of months ago, and since always transport the PB while in sleep, no need to turn it off, and it hasn't awakened once, no unpleasant surprises ...

stuffing feathers up your b*tt doesn't make you a chicken.
     
Ruahrc
Dedicated MacNNer
Join Date: Sep 2004
Status: Offline
Reply With Quote
Oct 24, 2004, 06:46 AM
 
Very interesting...

there are other parameters that can be changed with pmset also, here is what the terminal lists for usage:
-----------------------------------------------------------------
Usage: pmset [-b | -c | -u | -a] <action> <minutes> [<action> <minutes>...]
pmset -g [disk | cap | live | sched | ups]
-c adjust settings used while connected to a charger
-b adjust settings used when running off a battery
-u adjust settings used while running off a UPS
-a (default) adjust settings for both
<action> is one of: dim, sleep, spindown (with a minutes argument)
or: reduce, dps, womp, ring, autorestart, powerbutton,
lidwake, acwake (with a 1 or 0 argument)
or for UPS only: haltlevel (with a percentage argument)
haltafter, haltremain (with a minutes argument)
eg. pmset -c dim 5 sleep 15 spindown 10 autorestart 1 womp 1
-----------------------------------------------------------------
Does anyone know exactly what some of the actions are?
dim = pretty obvious
sleep = sleep
spindown = HD spindown? What is the default value for this one anyone know?
reduce = reduce CPU speed?
dps = ??
womp = ??
ring = wake on modem/LAN ring?
autorestart = autorestart after power failure?
powerbutton = ?
lidwake = prevent lid-waking
acwake = prevent waking when plugged into AC power?

Ruahrc
     
jdbrandt  (op)
Fresh-Faced Recruit
Join Date: Jan 2001
Location: Sacramento, CA
Status: Offline
Reply With Quote
Oct 24, 2004, 03:58 PM
 
Thank you. Worked perfectly!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:35 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,