PDA

View Full Version : Can I disable "Wake on Screen Open" on my PowerBook G4?


huckdunsany
10-11-2004, 10:36 AM
Howdy, folks!

Here's my question: The screen latch on my PowerBook G4/500 recently broke beyond the point where I can fix it, and I'm not covered by the Apple warranty anymore.
If I put my PB to sleep and than put it into my carrying case, the screen will inevitably open just enough to wake the computer... and kill the battery. I remember that on my beloved old PowerBook 1400/133, there was an option to have the computer wake when the screen was lifted, or just to wait till the user pressed a key. Is there any such option under OS X Panther? Any workaround? Baring a simply software solution, I'm going to be forced to put two Velcro patches on the top and bottom of the system, and use a small strap to keep it closed and sleeping. Yuck.
Any help would be great!

Thanks,
Huxley

Lankhmart
10-11-2004, 01:18 PM
There is a command-line tool called "pmset" that you can use to set various power management options, including this one. You can find out how to use the tool from its man page (type "man pmset" in the Terminal), but basically I think you will want to use:

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)

CAlvarez
10-11-2004, 01:59 PM
Damn, no option to not sleep when you close the lid...I was so excited for a second there...

Very useful command though.

CAlvarez
10-11-2004, 02:04 PM
Is it not possible to set the CPU speed characteristics via the OS X settings panel?

Mine show 0 for the CPU options, I would have thought they'd default to on.

Pastor41
10-12-2004, 05:50 PM
Lankhmart,
Would this work on the current iBook as well?
i also find that the latch, though noy broken on mine, opens easily when in my laptop bag and would prefer to have to touch a key to wake it up from sleep.

Thanks

Lankhmart
10-12-2004, 06:42 PM
Would this work on the current iBook as well?
I certainly believe that it should, but I have no iBook to test with.

CAlvarez: I'm not sure about the CPU options, but as to remaining awake with the lid closed, there is a Hint (http://www.macosxhints.com/article.php?story=20040307110350395&query=lid+closed) about it, but the comments seem to suggest that it won't work well with Panther (the OS will force the computer to shut down after a few minutes).

saint.duo
10-12-2004, 09:16 PM
If you're wanting to keep your PowerBook awake for use with an external display, then plug it in, close the lid, connect it to an external display, keyboard, and mouse, and use the external keyboard to wake the machine up. It'll wake up and turn on only the external display.

david-bo
06-23-2006, 09:37 AM
I'd like to be able to wake my powerbook, when it is connected to an external monitor, with the lid open but without switching on the internal screen. Is this doable?

Caius
06-24-2006, 01:32 AM
Sure, either have a script wake the machine, or plug in something USB with the lid shut, then open the lid when the machine has awoken.

I'd put my machine to sleep the other evening with the external screen attached, and the alarm clock (iTunesleep (http://electronicholas.com/itunesleep/)) awoke the machine, so I got up to find it running on the external screen only.

Handy to know.

david-bo
06-24-2006, 05:14 AM
I am too lazy for that. I want to make a setting somewhere 'if external monitor attached, never switch on the internal monitor when waking from sleep'.

I always forget to close the lid before I wake it up = the internal monitor activates which forces me to close the lid (the machine goes to sleep) and then rewake it again. All in all a lost 30 seconds and the life annoyance factor increased slightly;-)

simbalala
08-01-2006, 12:18 PM
Does anyone know of a way to make it sleep as if by closing the screen?

My workspace is very cramped and if I want to close the lid I have to swivel the Powerbook out from under the cinema display to close the lid, open it, then swivel it back again.

It would be great to have a little script which told the machine the lid had just been closed.

hayne
08-01-2006, 12:48 PM
Does anyone know of a way to make it sleep as if by closing the screen?

You do realize that there is a "Sleep" menu item in the Apple menu?

It is also possible to get it to sleep via an AppleScript - search for:
AppleScript sleep
and you should find examples.

voldenuit
08-01-2006, 02:03 PM
Find out where the hall sensor is that detects the magnet in the opposing part of the case and scotch-tape a small magnet there.

Now the iBook will assume that the lid is always closed.

simbalala
08-01-2006, 02:06 PM
You do realize that there is a "Sleep" menu item in the Apple menu?

It is also possible to get it to sleep via an AppleScript - search for:
AppleScript sleep
and you should find examples.
That does not accomplish the same thing at all.

It's closing the lid which turns off the internal screen yet allows the system to be woken for use with the external display.

Simple sleep is a whole different thing.

Read upthread...

If you're wanting to keep your PowerBook awake for use with an external display, then plug it in, close the lid, connect it to an external display, keyboard, and mouse, and use the external keyboard to wake the machine up. It'll wake up and turn on only the external display.

edit: Once the Powerbook is "slept" using this method the lid can be re-opened and the internal display remains off until the machine sleeps again and is rewoken with the screen already open.

simbalala
08-01-2006, 02:22 PM
Find out where the hall sensor is that detects the magnet in the opposing part of the case and scotch-tape a small magnet there.

Clever idea but it doesn't work. The magnet is in the lower part of the latch and no manipulation of a magnet around the upper part does anything more than make the little hook appear.

Caius
08-01-2006, 03:10 PM
Something that might work if you had the right hardware and its not limited to my mates iBook only.

Place a Sony Ericsson P910i over the right speaker grille so its propped upright against the screen. Then try sending a file to the phone via bluetooth.

For some reason it puts the iBook (14") straight to sleep!

simbalala
08-01-2006, 03:20 PM
Something that might work if you had the right hardware and its not limited to my mates iBook only.

Place a Sony Ericsson P910i over the right speaker grille so its propped upright against the screen. Then try sending a file to the phone via bluetooth.

For some reason it puts the iBook (14") straight to sleep!:rolleyes:

A little script would be a whole lot less expensive.

But I appreciate the thought.

ard
10-11-2006, 09:51 AM
Clever idea but it doesn't work. The magnet is in the lower part of the latch and no manipulation of a magnet around the upper part does anything more than make the little hook appear.

The hall sensor that is responsible for sleeping the system when closing the lid is located (on a TiBook/1GHz and and 400 MHz) under the upper left part of the trackpad. Simply move a magnet over that area (close to the surface) and see your system fall asleep. Let the magnet lay there and press a key to wake the system-with the internal monitor switched off. Pick up the magnet and keep working. On broken display powerbooks, this also allows you to get to the monitor control panel on the external monitor. The only way to get at it otherwise is to fish for the system preferences window after having opened the disk, the applications folder, and system preferences application. A simple magnet is much easier :-)

ThreeBKK
10-11-2006, 01:17 PM
The "Cocktail" application has an option to toggle sleep on/off when the lid is opened. It's a nice GUI alternative to the command-line solution.

simbalala
10-11-2006, 02:30 PM
The "Cocktail" application has an option to toggle sleep on/off when the lid is opened. It's a nice GUI alternative to the command-line solution.Do you know the command line solution?

ThreeBKK
10-11-2006, 04:03 PM
Do you know the command line solution?

Take a look at post # 2.