The conversation on this page has been archived and is no longer active.

Waking up Mac Pro after sleep

Message #1 - Posted 2012/02/13 - JF Mezei

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

How is one supposed to be able to wake it ?

keyboard and mouse activity do nothing.

A single fast press of the power button does nothing. Should that work ?

And a long press turns the unit off (blue light goes off and I hear a click in the back), and afterwards, pressing button results in a full cold reboot.

During such a cold reboot, is there some keypresses that can be done to cause it to reboot from "sleep" state ?

When I put the computer to sleep does it actually write RAM to disk and turn off ram, or does it maintain RAM contents alive ?

Does the motherboard have separatly switcheable power supplies for CPU, RAM and SMC controller as well as for disks and the PCI express ?

When asleep, the bluetooth-USB dongle still has its little blue light, but it seems at half intensity. Mouse activity does cause the blue light to flash. (but I suspect that no data is received by the Mac).

Plugging the iphone in the USB does nothing on the iPhone. So I ssume there is very little power on the USB when the unit is asleep.

(On my laptop, if I close the screen while on mains and with iphone alredy plugged in, the iphone continues to charge.)

Message #2 - Posted 2012/02/13 - Alan Browne

On 2012-02-13 01:34 , JF Mezei wrote:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

How is one supposed to be able to wake it ?

Talking from an iMac, not a Mac Pro.

Keyboard or mouse movement, or touching the trackpad, typically. Or a quick touch on the power button.

keyboard and mouse activity do nothing.

A single fast press of the power button does nothing. Should that work ?

Yep.

And a long press turns the unit off (blue light goes off and I hear a click in the back), and afterwards, pressing button results in a full cold reboot.

During such a cold reboot, is there some keypresses that can be done to cause it to reboot from "sleep" state ?

When I put the computer to sleep does it actually write RAM to disk and turn off ram, or does it maintain RAM contents alive ?

No. RAM is kept powered (on the iMac, anyway).

Does the motherboard have separatly switcheable power supplies for CPU, RAM and SMC controller as well as for disks and the PCI express ?

Something along those lines.

When asleep, the bluetooth-USB dongle still has its little blue light, but it seems at half intensity. Mouse activity does cause the blue light to flash. (but I suspect that no data is received by the Mac).

Should wake at that point in any case.

Plugging the iphone in the USB does nothing on the iPhone. So I ssume there is very little power on the USB when the unit is asleep.

(On my laptop, if I close the screen while on mains and with iphone alredy plugged in, the iphone continues to charge.)

I plug my iPhone into my side display USB port and it continues to charge when the Mac is asleep.

"We demand rigidly defined areas of doubt and uncertainty." Douglas Adams - (Could have been a GPS engineer).

Message #3 - Posted 2012/02/13 - Tom Stiller

Previously, JF Mezei wrote:

The little blue light remains lighted next to the power button, but fans and disks stop.

If the light is not pulsing slowly, the machine is not in a sleep state. .
.
.

When I put the computer to sleep does it actually write RAM to disk and turn off ram, or does it maintain RAM contents alive ?

Aside from display sleep, there are two sleep states: ordinary sleep in which RAM is kept alive and
hibernate in whichRAMis written to disk assuming there's enough space available. I don't know what happens in that case.

PRAY, v. To ask that the laws of the universe be annulled in behalf of a single petitioner confessedly unworthy. -- Ambrose Bierce

Message #4 - Posted 2012/02/13 - Jolly Roger

Previously, JF Mezei wrote:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

On my Mac Pro, choosing Sleep from the apple menu puts the display to sleep almost immediately (within the first second) and then puts the computer to sleep about 3 seconds later. I know because that's when I hear a little *click* noise inside of the computer and the light on the front of the computer starts glowing with the sleep pattern. So it takes 3-4 seconds, total. Mine may go to sleep faster than yours because I use a SSD as my startup volume.

How is one supposed to be able to wake it ?

keyboard and mouse activity do nothing.

Pressing the space key on the keyboard is sufficient to wake mine.

If the keyboard is wired, pressing the space bar or the left mouse button should wake the computer quite quickly.

If your keyboard and mouse are Bluetooth, and you have the System Preferences > Bluetooth > Advanced > Allow Bluetooth devices to wake this computer option enabled, pressing the space bar or clicking the left mouse button should wake up the computer - albeit more slowly. I find sometimes I need to click the mouse or press the space bar multiple times for Bluetooth mice/keyboards.

A single fast press of the power button does nothing. Should that work ?

No, I don't think so.

And a long press turns the unit off (blue light goes off and I hear a click in the back), and afterwards, pressing button results in a full cold reboot.

That's expected behavior for the power button, and is not the best way to shut down the computer. It can result in corrupt application preferences, etc.

During such a cold reboot, is there some keypresses that can be done to cause it to reboot from "sleep" state ?

Not that I know of, no. The sleep state was interrupted by a hard shutdown.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #5 - Posted 2012/02/13 - Jolly Roger

Previously, Alan Browne wrote:

On 2012-02-13 01:34 , JF Mezei wrote:

A single fast press of the power button does nothing. Should that work ?

Yep.

Indeed. I was wrong. Pressing the power button quickly *when the computer is asleep* does wake it back up.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #6 - Posted 2012/02/13 - Jolly Roger

Previously, JF Mezei wrote:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

If the light on the front is not pulsating as if the computer is asleep, it's not asleep - yet. I just did some tests with my Mac Pro. While in most cases, the computer went to sleep just a few seconds after I told it to sleep, in one case, the monitor went to sleep immediately, but the computer itself took about a minute to finally go to sleep. I'm not sure why it took that long; it was probably related to something the OS was doing at the time that needed to complete. During the time between the monitor going to sleep and the computer going to sleep, pressing the space key, mouse button, and power button on the front (quickly) did nothing. After it was actually asleep, all three of those actions will wake up the computer.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #7 - Posted 2012/02/13 - TaliesinSoft

On 2012-02-13 06:34:38 +0000, JF Mezei said:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

How is one supposed to be able to wake it ?

keyboard and mouse activity do nothing.

My experience has been…

For a wired keyboard or mouse just a tap or two will cause the wakeup.

For a bluetooth keyboard or mouse, if they are active, just a tap or two will cause the wakeup.

I'm at a loss as to why any of these methods has not worked.

James Leo Ryan - Austin, Texas

Message #8 - Posted 2012/02/14 - dorayme

Previously, TaliesinSoft wrote:

On 2012-02-13 06:34:38 +0000, JF Mezei said:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

How is one supposed to be able to wake it ?

keyboard and mouse activity do nothing.

My experience has been…

For a wired keyboard or mouse just a tap or two will cause the wakeup.

For a bluetooth keyboard or mouse, if they are active, just a tap or two will cause the wakeup.

You have to allow for this in sys prefs in the bluetooth section. (I prefer to have the option unticked, if the computer sleeps I don't want it to have sweet dreams and not constantly be wary in case the mouse pesters it.

Usually, a MB will wake if a a spacebar is pressed or a key, as is known. Another thing that might help is see if plugging a USB device like a usb stick wakes it, it does on my MB.

I'm at a loss as to why any of these methods has not worked.

dorayme

Message #9 - Posted 2012/02/13 - JF Mezei

Thanks for the feedback.

I'll do some more tests later this week (right now, I am busy with 3 presentations to make and don't want to have to re-open the gazilion documents needed to put those documents together)

The light does not pusle on my macpro. I will try to go through the various system preferences to change any relevant ones.

BTW, how does one do a "wake on ethernet" ? Is there a standard protocol for this ? Apple seems to insinuate that it can only be done with an "Airport" base station. (The mac pro is wired to a cisco switch).

Message #10 - Posted 2012/02/13 - nospam

Previously, JF Mezei wrote:

BTW, how does one do a "wake on ethernet" ? Is there a standard protocol for this ? Apple seems to insinuate that it can only be done with an "Airport" base station. (The mac pro is wired to a cisco switch).

<LAN">http://en.wikipedia.org/wiki/Wake-on-LAN>

Message #11 - Posted 2012/02/14 - dorayme

Previously, dorayme wrote:

For a bluetooth keyboard or mouse, if they are active, just a tap or two will cause the wakeup.

You have to allow for this in sys prefs in the bluetooth section. (I prefer to have the option unticked, if the computer sleeps I don't want it to have sweet dreams and not constantly be wary in case the mouse pesters it.

Usually, a MB will wake if a a spacebar is pressed or a key, as is known. Another thing that might help is see if plugging a USB device like a usb stick wakes it, it does on my MB.

Christ!

You have to allow for this in sys prefs in the bluetooth section. (I prefer to have the option unticked, if the computer sleeps I want it should have sweet dreams, not constantly watching for the mouse to pester it).

Something that might help OP, see if plugging a USB device like a usb stick wakes it, it does on my MB.

dorayme

Message #12 - Posted 2012/02/13 - Warren Oates

Previously, JF Mezei wrote:

Thanks for the feedback.

I'll do some more tests later this week (right now, I am busy with 3 presentations to make and don't want to have to re-open the gazilion documents needed to put those documents together)

The light does not pusle on my macpro. I will try to go through the various system preferences to change any relevant ones.

BTW, how does one do a "wake on ethernet" ? Is there a standard protocol for this ? Apple seems to insinuate that it can only be done with an "Airport" base station. (The mac pro is wired to a cisco switch).

I've got a php 'wake on LAN' script if you want. I use it to wake up the oul' Woman's MacBook Pro for backups. It won't do it over the Internet though, just over the LAN.
--

... do not cover a warm kettle or your stock may sour. -- Julia Child

Message #13 - Posted 2012/02/13 - JF Mezei

Warren Oates wrote:

I've got a php 'wake on LAN' script if you want. I use it to wake up the oul' Woman's MacBook Pro for backups. It won't do it over the Internet though, just over the LAN.

Would appreciate this. You can email me (remove the spamnot) or just post it here I guess.

Message #14 - Posted 2012/02/13 - Tom Stiller

Previously, Warren Oates wrote:

Previously, JF Mezei wrote:

Thanks for the feedback.

I'll do some more tests later this week (right now, I am busy with 3 presentations to make and don't want to have to re-open the gazilion documents needed to put those documents together)

The light does not pusle on my macpro. I will try to go through the various system preferences to change any relevant ones.

BTW, how does one do a "wake on ethernet" ? Is there a standard protocol for this ? Apple seems to insinuate that it can only be done with an "Airport" base station. (The mac pro is wired to a cisco switch).

I've got a php 'wake on LAN' script if you want. I use it to wake up the oul' Woman's MacBook Pro for backups. It won't do it over the Internet though, just over the LAN.

There's nothing about the wake packet that prevents it from being sent from any computer on the internet. The issue is will the target's router pass the packet and if so, will it forward the packet to the proper port on the target machine.

PRAY, v. To ask that the laws of the universe be annulled in behalf of a single petitioner confessedly unworthy. -- Ambrose Bierce

Message #15 - Posted 2012/02/13 - Warren Oates

Previously, Tom Stiller wrote:

There's nothing about the wake packet that prevents it from being sent from any computer on the internet. The issue is will the target's router pass the packet and if so, will it forward the packet to the proper port on the target machine.

Okay. I've never figure it out. There are websites that claim to be able to do WOL for you; I can't get them to work either. That's just an intellectual exercise though -- I don't need to wake the computer up from anywhere but across the room.
--

... do not cover a warm kettle or your stock may sour. -- Julia Child

Message #16 - Posted 2012/02/13 - Warren Oates

Previously, JF Mezei wrote:

Would appreciate this. You can email me (remove the spamnot) or just post it here I guess.

It uses PHP 5.3 as a "shell" script starting like this:

#!/Users/warren/php5.3/bin/php

(the path to my installation of the cli PHP). Is that something you can work with?
--

... do not cover a warm kettle or your stock may sour. -- Julia Child

Message #17 - Posted 2012/02/13 - Salmon Egg

Previously, Jolly Roger wrote:

Previously, Alan Browne wrote:

On 2012-02-13 01:34 , JF Mezei wrote:

A single fast press of the power button does nothing. Should that work ?

Yep.

Indeed. I was wrong. Pressing the power button quickly *when the computer is asleep* does wake it back up.

It has been a long time so my memory is hazy. I think I had a Mac G4 desktop computer using an early version of OS X. I had similar problems. I could put the computer to sleep either from the keyboard or by pressing the power button momentarily.

Every now and then, I just could not wake the computer up from the keyboard or by pressing the power button briefly. I just had to grit my teeth and hold the button down until the computer turned off.

I went to the Genius Bar at an Apple store but they were not of much help. I was shown a button inside the computer to press once to perform some magic to reset something. I was warned not to press it more than once. For me, there was no magic.

When I switched to a Mac Pro desktop, I never had the problem again. At the time, I remember reading many articles and complaints about sleeping macs that would not wake up.

--

Sam

Conservatives are against Darwinism but for natural selection. Liberals are for Darwinism but totally against any selection.

Message #18 - Posted 2012/02/13 - Tom Stiller

Previously, Warren Oates wrote:

Previously, Tom Stiller wrote:

There's nothing about the wake packet that prevents it from being sent from any computer on the internet. The issue is will the target's router pass the packet and if so, will it forward the packet to the proper port on the target machine.

Okay. I've never figure it out. There are websites that claim to be able to do WOL for you; I can't get them to work either. That's just an intellectual exercise though -- I don't need to wake the computer up from anywhere but across the room.

I've read that Apple's Remote Desktop will do it but I've never had occasion to try it.

PRAY, v. To ask that the laws of the universe be annulled in behalf of a single petitioner confessedly unworthy. -- Ambrose Bierce

Message #19 - Posted 2012/02/13 - Michael Vilain

Previously, Salmon Egg wrote:

Previously, Jolly Roger wrote:

Previously, Alan Browne wrote:

On 2012-02-13 01:34 , JF Mezei wrote:

A single fast press of the power button does nothing. Should that work ?

Yep.

Indeed. I was wrong. Pressing the power button quickly *when the computer is asleep* does wake it back up.

It has been a long time so my memory is hazy. I think I had a Mac G4 desktop computer using an early version of OS X. I had similar problems. I could put the computer to sleep either from the keyboard or by pressing the power button momentarily.

Every now and then, I just could not wake the computer up from the keyboard or by pressing the power button briefly. I just had to grit my teeth and hold the button down until the computer turned off.

I went to the Genius Bar at an Apple store but they were not of much help. I was shown a button inside the computer to press once to perform some magic to reset something. I was warned not to press it more than once. For me, there was no magic.

When I switched to a Mac Pro desktop, I never had the problem again. At the time, I remember reading many articles and complaints about sleeping macs that would not wake up.

The more 3rd-party stuff I added to my G4, the less likely I was to respond to waking from Sleep. So I stopped doing it entirely. I have a minimum of extra hardware (2 FW drives, keyboard, monitor) and my MacPro will sleep just fine. But I bet the SCSI peripherals didn't help.

DeeDee, don't press that button! DeeDee! NO! Dee... [I filter all Goggle Groups posts, so any reply may be automatically ignored]

Message #20 - Posted 2012/02/13 - Wes Groleau

On 02-13-2012 19:29, Salmon Egg wrote:

When I switched to a Mac Pro desktop, I never had the problem again. At the time, I remember reading many articles and complaints about sleeping macs that would not wake up.

Call Sister Mary Elephant.

Wes Groleau

You're all individuals!
Yes, we're all individuals!
You're all different!
Yes, we are all different!
I'm not!
("Life of Brian")

Message #21 - Posted 2012/02/13 - Wes Groleau

On 02-13-2012 18:55, Warren Oates wrote:

Okay. I've never figure it out. There are websites that claim to be able to do WOL for you; I can't get them to work either. That's just an

Most home routers these days by default do not allow comm sessions to be initiated from the outside.

Wes Groleau

You're all individuals!
Yes, we're all individuals!
You're all different!
Yes, we are all different!
I'm not!
("Life of Brian")

Message #22 - Posted 2012/02/14 - JF Mezei

Warren Oates wrote:

It uses PHP 5.3 as a "shell" script starting like this:

#!/Users/warren/php5.3/bin/php

(the path to my installation of the cli PHP). Is that something you can work with?

Since I do not have access to your home directory, it is rather hard for me to work with :-)

is this just a php script, or is it some proper program that is linked into php ?

Message #23 - Posted 2012/02/14 - Jolly Roger

Previously, JF Mezei wrote:

The light does not pusle on my macpro. I will try to go through the various system preferences to change any relevant ones.

Try also just waiting a few minutes after you tell it to sleep. Sometimes sleep can take a while. Then again, sometimes applications can prevent sleep, in which case you'll need to try to figure out which app is the culprit.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #24 - Posted 2012/02/14 - Warren Oates

Previously, JF Mezei wrote:

Since I do not have access to your home directory, it is rather hard for me to work with :-)

Hah hah. What I meant was: do you have PHP 5.x installed? Some of the array operations rely on 5.x, as I recall. You need the command line version of PHP somewhere (I honestly forget what OS X comes with in this regard).

is this just a php script, or is it some proper program that is linked into php ?

It's an executable PHP script. You can check here to see what's going on: <LAN">http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_packet>

----------start----------
#![path to]/php
<?php
// MAC address goes here.
// You could add more
$pro = '00:12:34:56:aa:bb'; //MacBook Pro, say

// create a function with MAC address and
// port as parameters
function wol($mac, $prt=9) {
$bcast = '255.255.255.255'; //Broadcast address

// MAC address to array without the colons
$mac_out = trim(preg_replace('/[^0-9A-Fa-f]/', '', $mac)); $mac_out = str_split($mac_out, 2);

// send ascii value of the underlying decimal
$mac_message = '';
for ($a = 0; $a<6; $a++)
$mac_message .= chr(hexdec($mac_out[$a]));

// now we can build the magic
$pload = '';
for ($a = 0; $a<6; $a++)
$pload .= chr(255);

for ($a = 0; $a<16; $a++)
$pload .= $mac_message;

//and send it
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1); $sent = @socket_sendto($sock, $pload, strlen($pload), 0, $bcast, $prt); $ecod = socket_last_error();
$emsg = socket_strerror($ecod);

if (!$sent) {
echo "WOL message to $mac failed with error $ecod: $emsg \n"; } else {
echo "WOL message ($sent bytes) sent to $mac\n"; }
socket_close($sock);
}

// make the script executable and
// now call the function
wol($pro);
?>
----------end----------

So in my case I save the script as wol.php, make it executable. Then I can call it from the prompt or from a cron job. I gotta admit, I don't totally understand most of the socket stuff, but yeah, I wrote that. There's no internal error checking -- it only reports success or failure. Do whatever you want with it; there are, as they say, no guarantees.
--

... do not cover a warm kettle or your stock may sour. -- Julia Child

Message #25 - Posted 2012/02/14 - Paul Sture

On Mon, 13 Feb 2012 18:36:34 -0500, Tom Stiller wrote:

There's nothing about the wake packet that prevents it from being sent from any computer on the internet. The issue is will the target's router pass the packet and if so, will it forward the packet to the proper port on the target machine.

I think my router understands Wake on LAN and can do this.

Paul Sture

Message #26 - Posted 2012/02/14 - Warren Oates

Previously, Paul Sture wrote:

On Mon, 13 Feb 2012 18:36:34 -0500, Tom Stiller wrote:

There's nothing about the wake packet that prevents it from being sent from any computer on the internet. The issue is will the target's router pass the packet and if so, will it forward the packet to the proper port on the target machine.

I think my router understands Wake on LAN and can do this.

Mine will, but I'd also have to create a virtual server. --

... do not cover a warm kettle or your stock may sour. -- Julia Child

Message #27 - Posted 2012/02/14 - Kevin McMurtrie

Previously, JF Mezei wrote:

If I put my Mac pro to sleep from the Apple menu, it does go to sleep. (it takes a little while though, perhaps it writes memory to disk ?)

The little blue light remains lighted next to the power button, but fans and disks stop.

How is one supposed to be able to wake it ?

keyboard and mouse activity do nothing.

A single fast press of the power button does nothing. Should that work ?

And a long press turns the unit off (blue light goes off and I hear a click in the back), and afterwards, pressing button results in a full cold reboot.

During such a cold reboot, is there some keypresses that can be done to cause it to reboot from "sleep" state ?

When I put the computer to sleep does it actually write RAM to disk and turn off ram, or does it maintain RAM contents alive ?

Does the motherboard have separatly switcheable power supplies for CPU, RAM and SMC controller as well as for disks and the PCI express ?

When asleep, the bluetooth-USB dongle still has its little blue light, but it seems at half intensity. Mouse activity does cause the blue light to flash. (but I suspect that no data is received by the Mac).

Plugging the iphone in the USB does nothing on the iPhone. So I ssume there is very little power on the USB when the unit is asleep.

(On my laptop, if I close the screen while on mains and with iphone alredy plugged in, the iphone continues to charge.)

Is the motherboard battery dead? Strange things can happen when it's not providing power.

Forget about wake-on-LAN. It doesn't do anything fancier than what happens when you press the power button. Also, as the name implies, it needs a Local Area Network so those web sites claiming to do it remotely are probably scams. For it to work over a WAN, you'd need your local broadcast address to be publicly accessible (no chance in hell) or your local router would need to cache your computer's location long after it has gone to sleep (some models can, but it causes other problems). --
I will not see posts from Google because I must filter them as spam

Message #28 - Posted 2012/02/20 - JF Mezei

Any update:

I tested the sleep function, and a minute later, I pressed the "space" bar on the USB keyboard and voila ! Machine awoke. However, it took a bit of finagling to get the mouse to work again.

So, before going to bed, I put the computer to sleep. This morning, the space bar trick did not work. So I had to reboot.

Will have to do further tests. Perhaps a MacPro with connections to the oytside works can only sleep until TCP connections time out after which, waking up is not possible ?

Message #29 - Posted 2012/02/20 - Jolly Roger

Previously, JF Mezei wrote:

Any update:

I tested the sleep function, and a minute later, I pressed the "space" bar on the USB keyboard and voila ! Machine awoke. However, it took a bit of finagling to get the mouse to work again.

So, before going to bed, I put the computer to sleep. This morning, the space bar trick did not work. So I had to reboot.

As I already said, try also just waiting a few minutes after you tell it to sleep. Sometimes sleep can take a while. Also, the system log may tell you what was going on during this time span while you waited for it to go to sleep. Sometimes applications can prevent sleep, in which case you'll need to try to figure out which app is the culprit.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #30 - Posted 2012/02/21 - JF Mezei

I did a few more tests.

I put the mac pro to sleep for just over 10 minutes. It had no problems waking up. And the logs show it is going to sleep and then being awakened by keyboard.

I put the mac pro to sleep again, this time, for 10 hours. And no go. couldn't wake it up.

12-02-21 02:58:22 rpc.statd[38] Failed to contact host brakes.vaxination.ca: RPC: Unknown host
12-02-21 03:06:04 plugin-container[776] unknown error code: invalid context 12-02-21 13:28:25 kernel npvhash=4095
12-02-21 03:06:04 [0x0-0x4a04a].org.mozilla.firefox[770] Tue Feb 21 03:06:04 bike.vaxination.ca plugin-container[776] <Error>: unknown error code: invalid context
12-02-21 13:28:25 kernel Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 12-02-21 13:28:25 kernel vm_page_bootstrap: 3044075 free pages and 85269 wired pages

Note that there is no message about the Mac going to sleep. I suspect this is logged or written to disk when the mac wakes up along with the "waking up" messages.

BUT, there is a message at 13:28 indicating the start of boot, followed by an entry at 03:06 (when machine was put to sleep) which seems to indicate that there was soe buffer that survived the reboot.

Message #31 - Posted 2012/02/21 - JF Mezei

Looking at the diagnostic messages in the console.app :

12-02-21 02:09:04 configd[14] Sleep: Success - AC - Software Sleep com.apple.message.domain: com.apple.powermanagement.sleep com.apple.message.signature: Success com.apple.message.value: 1
com.apple.message.result: Success
com.apple.message.uuid: 593630CD-66F5-46BF-89A3-D8D079DDFB04

12-02-21 02:09:04 configd[14] Wake: Success - AC - EHC2 com.apple.message.domain: com.apple.powermanagement.wake com.apple.message.signature: Success
com.apple.message.uuid: 593630CD-66F5-46BF-89A3-D8D079DDFB04 com.apple.message.result: Success

12-02-21 13:28:34 configd[14] Sleep: Platform Failure - AC com.apple.message.domain: com.apple.powermanagement.sleep com.apple.message.signature: Platform Failure com.apple.message.result: Failure
com.apple.message.uuid: 0A7ED8B2-B177-44DB-BB16-D196207B7AE1

So the test at 02:09 is succesful. Note that Sleep and Wake are logged at the same time (probably when machine is awakened). I would have thought that in the 15 or so seconds it takes for machine to gosub sleep, it would have written something to the log and flushed the buffer to ensure it is committed to disk.

So, what can I make of the message at 13:28 ? Is there a way for me to look this up n the apple web site ?

bike:~ $ sudo pmset -g
Password:
Active Profiles:
AC Power -1*
Currently in use:
hibernatemode 0
womp 1
sleep 0
powerbutton 0
disksleep 10
hibernatefile /var/vm/sleepimage
autorestart 1
ttyskeepawake 1
displaysleep 10

I asked my buddy Mr Google and while this message ( Sleep: Platform Failure - AC) is common, I haven't found much relevant to Mac pros (most sleep problems are related to laptops.

I will look more deeply into the pmset. One of the items in the man page specifies that after a while, some setting causes the mac to write memory to disk (hibernate) and while my hibernate is set to 0, maybe there is some other setting that causes this (this would explain why a short lived sleep works, but not one that is hours long).

Message #32 - Posted 2012/02/21 - Jolly Roger

Previously, JF Mezei wrote:

12-02-21 13:28:34 configd[14] Sleep: Platform Failure - AC com.apple.message.domain: com.apple.powermanagement.sleep com.apple.message.signature: Platform Failure com.apple.message.result: Failure
com.apple.message.uuid: 0A7ED8B2-B177-44DB-BB16-D196207B7AE1

I take it you've tried resetting the PMU/SMC?

I'm wondering if this is the result of a hardware failure of some type.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #33 - Posted 2012/02/21 - JF Mezei

Jolly Roger wrote:

I take it you've tried resetting the PMU/SMC?

That was the first thing I tried.

I'm wondering if this is the result of a hardware failure of some type.

If I can reliably wake up after 10 minutes of sleep but not after hours, I have to wonder if it is hardware.

Message #34 - Posted 2012/02/21 - Jolly Roger

Previously, JF Mezei wrote:

Jolly Roger wrote:

I take it you've tried resetting the PMU/SMC?

That was the first thing I tried.

I'm wondering if this is the result of a hardware failure of some type.

If I can reliably wake up after 10 minutes of sleep but not after hours, I have to wonder if it is hardware.

I read in one forum about that error message happening with a MacBook (Pro?) that it turned out to be what they suspected was a faulty power button. I believe replacing the top case (where the power button circuitry is located) fixed it for that person.

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #35 - Posted 2012/02/23 - JF Mezei

An update:

I used "sudo pmset -a hibernatemode 25" to force the mac to write memory contents to disk as it goes to sleep.

I went swimming and a few hours later, I was able to get the mac to awaken without problem with the space bar.

Here are my settings:

bike:~ $ pmset -g

Active Profiles:
AC Power -1*
Currently in use:
hibernatemode 25
womp 1
sleep 0
powerbutton 0
disksleep 10
hibernatefile /var/vm/sleepimage
autorestart 1
ttyskeepawake 1
displaysleep 10

Question:

On default systems, is hibernatefile set to the above or left blank ?

Message #36 - Posted 2012/02/23 - Jolly Roger

Previously, JF Mezei wrote:

An update:

I used "sudo pmset -a hibernatemode 25" to force the mac to write memory contents to disk as it goes to sleep.

I went swimming and a few hours later, I was able to get the mac to awaken without problem with the space bar.

Here are my settings:

bike:~ $ pmset -g

Active Profiles:
AC Power -1*
Currently in use:
hibernatemode 25
womp 1
sleep 0
powerbutton 0
disksleep 10
hibernatefile /var/vm/sleepimage
autorestart 1
ttyskeepawake 1
displaysleep 10

Question:

On default systems, is hibernatefile set to the above or left blank ?

Probably blank. Here's what I have:

# pmset -g
Active Profiles:
UPS Power -1
AC Power -1*
Currently in use:
hibernatemode 0
disksleep 0
womp 1
networkoversleep 0
sleep 0 (imposed by 8831)
powerbutton 0
ttyskeepawake 1
hibernatefile /var/vm/sleepimage
autorestart 1
panicrestart 15
displaysleep 10

# ps ax | grep 8831
8831 ?? Us 0:09.80 /System/Library/CoreServices/backupd

Send responses to the relevant news group rather than email to me. E-mail sent to this address may be devoured by my very hungry SPAM filter. Due to Google's refusal to prevent spammers from posting messages through their servers, I often ignore posts from Google Groups. Use a real news client if you want me to see your posts.

JR

Message #37 - Posted 2012/02/27 - JF Mezei

A further update:

I though I had fixed the sleep problem with hibernatemode = 25.

But NO ! It does go to sleep, with the power light pulsating. But about a minute or two later, it wakes up by itself !!!!

So now I tried hibernatemode = 3

It dod go to sleep. Light pulsating. But this morning, the light was on, not pulsating (same problem as without the hibernate). had to power off the mac and power it back on. But instead of rebooting, it saw a valid sleep image and restored the session.

I guess I'll have to put a camera and record goes happens during the night to cause the pulsating light to stop and go on fixed "on".

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.