Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 22, 2013, 01:40 AM   #1
Macman45
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
iMac 2012 Wake From Sleep Issues

So the new 27" runs great, but instead of shutdown issues, I have wake from sleep problems. The imac runs perfectly, then sleeps at the allotted time fine.

If left for half an hour or so, it will wake normally. If left longer, it takes a couple (sometimes three) taps on the KB to wake it, when it once again runs fine.

Things I've done

SMC / PRAM re-et

Checked Indexing


I have a feeling that because I used MA to transfer my data ( Something I didn't want to do, but was persuaded, by my Apple rep to try) something has come over that should not have.


I should aslo say that the fix is a re-install of ML, but I'd really like to find a better / faster fix if one exists.
__________________
Thats Not All Folks

Last edited by Macman45; Jan 23, 2013 at 06:58 AM. Reason: Typo
Macman45 is offline   0 Reply With Quote
Old Jan 22, 2013, 05:06 AM   #2
Quad5Ny
macrumors 6502a
 
Join Date: Sep 2009
Can you do a experiment? Try waiting 5 seconds between taps.

The keyboard (if its wireless) may be asleep as well and it needs to wakeup/re-pair itself.

Or more likely, if the 2012 iMac supports standby hibernation what your waiting for is the system to copy the previous contents of your RAM that was copied to your hard drive back to your RAM from your hard drive (RAMception?).

Try a wired keyboard (or mouse). Also Open Terminal, type "pmset -g" and post the output here on the forum.
Quad5Ny is offline   0 Reply With Quote
Old Jan 22, 2013, 08:54 AM   #3
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by Quad5Ny View Post
Can you do a experiment? Try waiting 5 seconds between taps.

The keyboard (if its wireless) may be asleep as well and it needs to wakeup/re-pair itself.

Or more likely, if the 2012 iMac supports standby hibernation what your waiting for is the system to copy the previous contents of your RAM that was copied to your hard drive back to your RAM from your hard drive (RAMception?).

Try a wired keyboard (or mouse). Also Open Terminal, type "pmset -g" and post the output here on the forum.
KB is wired...I think a clean install will probably fix this...not a big deal unless it gets worse.
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 22, 2013, 09:36 AM   #4
southerndoc
macrumors 6502a
 
southerndoc's Avatar
 
Join Date: May 2006
Location: USA
It just takes a while to awaken it. I have a Bluetooth keyboard and trackpad. I can hit the trackpad once and it will awaken, but it takes about 20 seconds.
__________________
2012 iMac 27" | i7 | 3.4GHz | 768GB SSD | 32GB RAM | 680MX <<>> 2012 MacBook Air 13" | i7 | 2.0GHz | 256GB SSD | 8GB RAM
southerndoc is offline   0 Reply With Quote
Old Jan 22, 2013, 09:20 PM   #5
Quad5Ny
macrumors 6502a
 
Join Date: Sep 2009
As long as the contents of the RAM haven't been moved over to the hard drive the computer should wake up instantly. That's why I was curious what the "pmset -g" output was (it would have listed the sleep options).
Quad5Ny is offline   0 Reply With Quote
Old Jan 23, 2013, 01:48 AM   #6
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by Quad5Ny View Post
As long as the contents of the RAM haven't been moved over to the hard drive the computer should wake up instantly. That's why I was curious what the "pmset -g" output was (it would have listed the sleep options).
I'll have a go later on today...It now seems to wake at random too...I only noticed this last night when I got up for a drink...I'm happy with it particularly the screen so don't want a swap out really...I will probably re-insatll at the weekend.

----------

Quote:
Originally Posted by southerndoc View Post
It just takes a while to awaken it. I have a Bluetooth keyboard and trackpad. I can hit the trackpad once and it will awaken, but it takes about 20 seconds.
Terminal gives the following output:

tandby 1
powerbutton 0
womp 1
halfdim 1
hibernatefile /var/vm/sleepimage
autorestart 0
networkoversleep 0
disksleep 10
sleep 45
autopoweroffdelay 14400
hibernatemode 0
autopoweroff 1
ttyskeepawake 1
displaysleep 30
standbydelay 4200
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 23, 2013, 02:35 AM   #7
Quad5Ny
macrumors 6502a
 
Join Date: Sep 2009
It seems like your not the only one who is noticing their 2012 Mac's hibernating. Do you have a SSD (or Fusion Drive)?

Try this: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"

Test your computer for a day with those set. If it solves your problem then you know there is nothing wrong, it was just your iMac Hibernating.

If it does not help, then you can still re-install.

P.S. If you like the hibernation, you can switch it back on by re-entering the commands with 1's instead of 0's. You can even change the amount of time by adjusting "autopoweroffdelay" and "standbydelay".
Quad5Ny is offline   1 Reply With Quote
Old Jan 23, 2013, 02:45 AM   #8
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by Quad5Ny View Post
It seems like your not the only one who is noticing their 2012 Mac's hibernating. Do you have a SSD (or Fusion Drive)?

Try this: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"

Test your computer for a day with those set. If it solves your problem then you know there is nothing wrong, it was just your iMac Hibernating.

If it does not help, then you can still re-install.
I will give that a shot....But I fear a reinstall is on the cards

----------

Quote:
Originally Posted by Macman45 View Post
I will give that a shot....But I fear a reinstall is on the cards
It's the 3TB Fusion drive

----------

All now set to 0. Will leave it today and see, I do prefer it to sleep at night...guess I can just put them back, but it does seem to be ML related. Anybody running SL on a new IMac?
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 23, 2013, 05:26 AM   #9
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Update.

This may help some people out...As suggested above and using terminal, playing with the values seems to have sorted out my issues. The iMac is now sleeping and waking as it should. Thanks for the tips!
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 23, 2013, 05:32 AM   #10
Quad5Ny
macrumors 6502a
 
Join Date: Sep 2009
Edit: Glad everything is working.

---

The iMac should still sleep, it just won't Hibernate (see below).
  • Sleep/Standby: Machine state is held in RAM, then the computer cuts power to unneeded subsystems and places the RAM into a minimum power state.
  • Hibernation: Machine state is saved to a Hard Drive and then the computer is turned completely off.
  • Apple's Hybrid Standby-Hibernation: Machine state is saved to a Hard Drive, then the computer cuts power to unneeded subsystems including RAM.
This last one is what lets MacBook Air's stay "On" with the Lid closed for 30 days. I'm guessing they are now implementing it on other product lines that have SSD's to save energy. The SSD part its important because of how quickly they can copy the saved state back to RAM, HDD's are much slower (also HDD's take precious seconds to spin back up).

I really doubt Snow Leopard will run on the new iMac's without modifying it.
Quad5Ny is offline   0 Reply With Quote
Old Jan 23, 2013, 06:09 AM   #11
Confuzzzed
macrumors 68000
 
Confuzzzed's Avatar
 
Join Date: Aug 2011
Location: Liverpool, UK
Always in awe of people that can do clever things in Terminal! Thanks for the tips
Confuzzzed is offline   0 Reply With Quote
Old Jan 23, 2013, 06:15 AM   #12
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by Quad5Ny View Post
Edit: Glad everything is working.

---

The iMac should still sleep, it just won't Hibernate (see below).
  • Sleep/Standby: Machine state is held in RAM, then the computer cuts power to unneeded subsystems and places the RAM into a minimum power state.
  • Hibernation: Machine state is saved to a Hard Drive and then the computer is turned completely off.
  • Apple's Hybrid Standby-Hibernation: Machine state is saved to a Hard Drive, then the computer cuts power to unneeded subsystems including RAM.
This last one is what lets MacBook Air's stay "On" with the Lid closed for 30 days. I'm guessing they are now implementing it on other product lines that have SSD's to save energy. The SSD part its important because of how quickly they can copy the saved state back to RAM, HDD's are much slower (also HDD's take precious seconds to spin back up).

I really doubt Snow Leopard will run on the new iMac's without modifying it.
Nope, I'm going to use Terminal from now on...It's now fine...Wakes as It should after a little more playing around...It wasn't a big deal as thing is perfect in use...Very fast and my old one was top spec in 2011 so it isn't slow.....Now we've nailed it I think...No need for a tedious reinstall...Thanks again!!
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 23, 2013, 06:58 AM   #13
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Going to mark this resolved now, but keep it bookmarked...I think it could help a lot of people with the same issues.....threads cropping up all the time on the same topic. I guess Apple will fix it in an update...for now it seems the only way to effectively manage power settings is by using terminal...I have reported the bug to Apple, but I doubt I'm the first...
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Jan 23, 2013, 12:09 PM   #14
Quad5Ny
macrumors 6502a
 
Join Date: Sep 2009
Last thing; If for whatever reason you restore a backup of your current iMac to a MacBook Air/Pro, remember to set those two things back to "1".
Quad5Ny is offline   0 Reply With Quote
Old Jan 23, 2013, 11:19 PM   #15
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by Quad5Ny View Post
Last thing; If for whatever reason you restore a backup of your current iMac to a MacBook Air/Pro, remember to set those two things back to "1".
Spent up until I sell the old one and buy a new rMBP!
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Feb 19, 2013, 08:32 PM   #16
JoeBoy73
macrumors newbie
 
Join Date: Oct 2011
imac sleep\wake issues...

I'm having the same problem as Macman was...Mac won't wake up properly. Going to sleep on its own...here's my pmset -g info:

Active Profiles:
AC Power 1*
Currently in use:
autorestart 0
powerbutton 1
halfdim 1
panicrestart 157680000
hibernatefile /var/vm/sleepimage
networkoversleep 0
disksleep 10
sleep 10
hibernatemode 0
ttyskeepawake 1
displaysleep 5
womp 1
JoeBoy73 is offline   0 Reply With Quote
Old Feb 20, 2013, 03:17 AM   #17
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by JoeBoy73 View Post
I'm having the same problem as Macman was...Mac won't wake up properly. Going to sleep on its own...here's my pmset -g info:

Active Profiles:
AC Power 1*
Currently in use:
autorestart 0
powerbutton 1
halfdim 1
panicrestart 157680000
hibernatefile /var/vm/sleepimage
networkoversleep 0
disksleep 10
sleep 10
hibernatemode 0
ttyskeepawake 1
displaysleep 5
womp 1


I have now used the terminal fix above on 3 iMacs, all of which had the same issue....using them and setting the power management to prevent hibernation has cured the issue in all three cases.
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Apr 29, 2013, 10:22 PM   #18
MacChris87
macrumors newbie
 
Join Date: Apr 2013
Made the changes in Terminal still having trouble...

Here is my pmset -g

Active Profiles:
AC Power -1*
Currently in use:
standby 0
powerbutton 1
womp 1
halfdim 1
hibernatefile /var/vm/sleepimage
autorestart 0
networkoversleep 0
disksleep 10
sleep 10
autopoweroffdelay 14400
hibernatemode 0
autopoweroff 0
ttyskeepawake 1
displaysleep 10
standbydelay 4200

I am running a 2012 iMac with an HDD hard drive. I made both changes suggested on this thread in Terminal and I am still experiencing the problems. What else can I change?
MacChris87 is offline   0 Reply With Quote
Old May 1, 2013, 12:19 AM   #19
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by MacChris87 View Post
Here is my pmset -g

Active Profiles:
AC Power -1*
Currently in use:
standby 0
powerbutton 1
womp 1
halfdim 1
hibernatefile /var/vm/sleepimage
autorestart 0
networkoversleep 0
disksleep 10
sleep 10
autopoweroffdelay 14400
hibernatemode 0
autopoweroff 0
ttyskeepawake 1
displaysleep 10
standbydelay 4200

I am running a 2012 iMac with an HDD hard drive. I made both changes suggested on this thread in Terminal and I am still experiencing the problems. What else can I change?
Is that the log AFTER you made the changes? If it is, you need to try again. I have had circumstances where I've had to do it twice before the change were properly applied.
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old May 21, 2013, 04:40 AM   #20
asif10
macrumors newbie
 
Join Date: Sep 2012
Location: UK
I am having the same issue with my 2012 macbook pro retina.

I have had some success if i update the time autopoweroffdelay and standbydelay to 36000 (10 hrs), which essentially for me means it will never go to hibernate for me.

So for me, it looks like when it hibernates it doesn't wake up until i do a hard restart a few times.

(Booked in with Apple to see if they can fix this, but looking at some of the post from others, i shouldn't hold my breath)
asif10 is offline   0 Reply With Quote
Old Jun 6, 2013, 07:22 AM   #21
dfader
macrumors newbie
 
Join Date: Jun 2013
Can someone please give a clear set of instructions for solving this problem to a mac dummy? The problems with sleep has been driving me NUTS, and I'd love to have them solved!
dfader is offline   0 Reply With Quote
Old Jun 7, 2013, 01:46 AM   #22
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by dfader View Post
Can someone please give a clear set of instructions for solving this problem to a mac dummy? The problems with sleep has been driving me NUTS, and I'd love to have them solved!
Open terminal, and type in the following commands ( without the quotation marks )

Using Sudo will probably prompt you for your password...this is the system password that you use on your Mac:: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote
Old Aug 6, 2013, 02:46 AM   #23
stanem
macrumors newbie
 
Join Date: Aug 2013
Hello i am also having problems with sleep on iMac 2012 OS mountain lion, 1 TB fusion drive, first it took about 10 seconds to wake, after trying every tip i could find made things worse, it takes now about 20 seconds and screen is white clean all the time, is there a command that sets every change i made in terminal to stock/factory settings? (Some commands that i tried didnt apply or gave me warning about improper use or result)
I have tried command: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"
sudo pmset -a standbydelay 86400

Guess i ll have to wait for Mavericks to make clean install

Active Profiles:
AC Power -1*
Currently in use:
standby 1
powerbutton 1
womp 1
halfdim 1
hibernatefile /var/vm/sleepimage
autorestart 0
networkoversleep 0
disksleep 10
sleep 180 (sleep prevented by 1120)
autopoweroffdelay 14400
hibernatemode 0
autopoweroff 1
ttyskeepawake 1
displaysleep 10
standbydelay 4200
stanem is offline   0 Reply With Quote
Old Sep 24, 2013, 05:24 AM   #24
swiftflo
macrumors regular
 
Join Date: Jan 2010
Quote:
Originally Posted by Quad5Ny View Post
It seems like your not the only one who is noticing their 2012 Mac's hibernating. Do you have a SSD (or Fusion Drive)?

Try this: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"

Test your computer for a day with those set. If it solves your problem then you know there is nothing wrong, it was just your iMac Hibernating.

If it does not help, then you can still re-install.

P.S. If you like the hibernation, you can switch it back on by re-entering the commands with 1's instead of 0's. You can even change the amount of time by adjusting "autopoweroffdelay" and "standbydelay".
is the O a letter O or a number 0, thanks.
swiftflo is offline   0 Reply With Quote
Old Sep 24, 2013, 09:59 AM   #25
Macman45
Thread Starter
macrumors G5
 
Macman45's Avatar
 
Join Date: Jul 2011
Location: Somewhere Back In The Long Ago
Quote:
Originally Posted by swiftflo View Post
is the O a letter O or a number 0, thanks.
It's the numeral zero.
__________________
Thats Not All Folks
Macman45 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Tags
wake from sleep

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
2012 iMac, slow wifi after wake from sleep Icecoldcoke iMac 0 Nov 10, 2013 08:25 PM
iMac 2009 new SSD wake from sleep issues gmanWA iMac 0 Nov 2, 2013 03:09 PM
iMac Late 2012 slow to sleep and wake up HuseyinErgisi OS X 10.8 Mountain Lion 0 Mar 17, 2013 03:45 PM
Slow to wake from sleep (2012 27inch iMac) pete78 OS X 10.8 Mountain Lion 11 Feb 3, 2013 01:27 AM
2012 21.5" iMac wake from sleep white screen probs MrMister111 iMac 0 Dec 18, 2012 03:09 AM

Forum Jump

All times are GMT -5. The time now is 05:50 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC