PDA

View Full Version : Delay after waking from sleep (MBA)




Wilson1313
Aug 10, 2012, 04:02 PM
I recently bought a 2012 MBA w/8gb Ram and upgraded it to Mountain Lion. While Mountain Lion has been running normally (besides slightly worse battery life I believe), the one issue I have found is that if I let it sleep for a long period of time (overnight), then when I open the screen the next morning the display turns on, but there is a 3 second delay before any movement is registered on the trackpad. I hadn't used this much pre-Mountain Lion (since I upgraded very soon after it arrived), but I don't remember this delay. Does anyone else have this issue/a fix, or is it likely just a bug with the initial release that should be fixed in the next update?



SRLMJ23
Aug 10, 2012, 04:59 PM
I also have this problem on a Late 2010 MacBook Air. With Lion, everything was instant but with ML there is the 3-5 second delay, it really bothers me.

I think it's because I upgraded from Lion instead of doing a Fresh Install, so I've been prepping my Mac for a Fresh Install and that, I hope will solve some issues.

Anyone have a fix out there?

sevimli
Aug 10, 2012, 05:02 PM
I also have this problem on a Late 2010 MacBook Air. With Lion, everything was instant but with ML there is the 3-5 second delay, it really bothers me.

I think it's because I upgraded from Lion instead of doing a Fresh Install, so I've been prepping my Mac for a Fresh Install and that, I hope will solve some issues.

Anyone have a fix out there?

I have late 2010 MBA as well. And tried both (clean install and update), didn't make a difference. I am getting ~8sec delays... :(:confused:

Wilson1313
Aug 10, 2012, 05:48 PM
I clean installed so it is highly unlikely something went wrong. I'm going to file a bug report and I encourage others to do the same- it's definitely something that can be fixed.

nissan.gtp
Aug 10, 2012, 07:59 PM
I've always had the same problem. Very annoying. My iMac is actually usable faster waking up from sleep than the air.

laudern
Aug 10, 2012, 08:11 PM
I'd say it must just be some bug...As I have a 2009 unibody macbook with 4gig of ram and have instant on after sleep

jypatl
Aug 10, 2012, 08:15 PM
Same thing happens to me and I have a rMBP. How do I report a bug?

Wilson1313
Aug 10, 2012, 08:56 PM
Same thing happens to me and I have a rMBP. How do I report a bug?

Report a bug here:
http://www.apple.com/feedback/macosx.html

For others who come across this thread: Please post if you have this issue as well as your computer (just type and year- i.e. Macbook Air 2012...).

SRLMJ23
Aug 10, 2012, 09:22 PM
I just submitted a Bug Report to Apple. I really encourage EVERYONE with this issue to submit one, it's very easy...takes about 3-4 minutes depending on how long of a description you write.

Please, do it guys!

jypatl
Aug 11, 2012, 10:50 AM
Just did it. Hopefully they'll fix this in the next update.

thomasuk
Aug 11, 2012, 03:29 PM
2012 MBA i7/8/256, shipped with Mountain Lion. Hope for fix with 10.8.1

Alameda
Aug 11, 2012, 03:40 PM
Happens on my vintage 2011 MBA

count chocula
Aug 11, 2012, 03:53 PM
Same problem with my Retina MacBook Pro!

Wilson1313
Aug 11, 2012, 04:06 PM
Seems to me like it happens to only the MBA and rMBP (something with SSD's?).

3bs
Aug 11, 2012, 05:14 PM
Also happens on my mid 2012 11" MBA i7/8/512 upgraded to ML 10.8.

3bs
Aug 11, 2012, 06:39 PM
I just tried my sisters mid 2012 11" MBA i7/8/256 which was also upgraded to Mountain Lion but it was on instantly and responsive right away.

Splazzatch
Aug 11, 2012, 08:23 PM
This happens to occasionally. I have noticed it happens when I have my "fitbit" doc plugged in. Not sure if it is "fitbit" doc or just that something is plugged in.

I have an rMBP 2.3/16/256

anotherjoey
Aug 23, 2012, 05:07 AM
I thought this was normal behavior? That after a period of time (70 minutes?) the MBA goes into deep sleep/hibernation, which is why it takes longer to wake up (3-5 seconds before any movement is registered)

If you put it on sleep and try to wake it up within 60 minutes, it goes instantly.

Wowzera
Aug 23, 2012, 06:29 AM
The problem related by you happens to me too. But just when in Battery, if I am running my Macbook air mid-2012, i5/4/128, in A/C I've no delay when typing my password.

Wilson1313
Aug 26, 2012, 09:19 PM
10.8.1 and still no fix- unacceptable :mad:!! And battery life is ok but not as good as Lion... 10.8.2 anyone?

jk73
Aug 26, 2012, 09:52 PM
I've had this problem three times with my rMBP twice with 10.8 and once (today) with 10.8.1. However, I don't have a three-second delay, like the OP; I have a complete refusal to wake from sleep (or to allow the screen to be locked), which necessitates a hard shutdown and restart. (The keyboard lights up when I hit the trackpad, but the screen stays black and the login screen never appears.)

Arizor
Aug 26, 2012, 10:30 PM
I hate to be Mr. Obvious but have you guys and gals checked your hibernate mode?

I can't believe people have literally reinstalled ML without doing a simple check, in terminal:

pmset -g | grep hibernatemode

Be sure to read up about it first, but I set mine to 0 so it wakes instantly, in terminal:

sudo pmset -a hibernatemode 0

colloc
Aug 27, 2012, 02:11 AM
I recently bought a 2012 MBA w/8gb Ram and upgraded it to Mountain Lion. While Mountain Lion has been running normally (besides slightly worse battery life I believe), the one issue I have found is that if I let it sleep for a long period of time (overnight), then when I open the screen the next morning the display turns on, but there is a 3 second delay before any movement is registered on the trackpad. I hadn't used this much pre-Mountain Lion (since I upgraded very soon after it arrived), but I don't remember this delay. Does anyone else have this issue/a fix, or is it likely just a bug with the initial release that should be fixed in the next update?

I believe that's how it's designed to work, in order to keep up with the 30 days standby promise. Well we can't have the best of both worlds can we.

Wilson1313
Aug 27, 2012, 08:12 AM
I hate to be Mr. Obvious but have you guys and gals checked your hibernate mode?

I can't believe people have literally reinstalled ML without doing a simple check, in terminal:

pmset -g | grep hibernatemode

Be sure to read up about it first, but I set mine to 0 so it wakes instantly, in terminal:

sudo pmset -a hibernatemode 0

This is the closest I've seen to a fix and will do this for now, although I don't think the pause is warranted. Is there a way to change the amount of time until the computer enters hibernate mode (such as 2 days) rather than only if the computer is left alone for a few hours?

Edit: Found a pretty extensive document from Apple outlining all you can change/view with regards to sleep settings: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/pmset.1.html

madsci954
Aug 27, 2012, 09:18 AM
I had this problem on my 2011 MBA when it was running Lion. When I updated to ML, the problem went away. Whether its asleep for 5 minutes or overnight, the delay does not appear.

macography.net
Aug 27, 2012, 10:45 AM
I've noticed this problem too and I think the problem is related to hybernation. After about an hour ML goes into hybernation mode.

Waking up from it takes longer than from the normal sleep. Annoying but anyway... :)

Alameda
Aug 27, 2012, 12:38 PM
I've noticed this problem too and I think the problem is related to hybernation. After about an hour ML goes into hybernation mode.An hour and ten minutes. Pending my tests, my hypothesis is that, if you want fast resume from Standby, then enable Power Nap on Battery Power. You should not change the hibernatemode to 0.

Here are the defaults I found in Terminal:
pmset -g | grep hibernate mode
hibernatemode 3
pmset -g | grep standby
standbydelay 4200
standby 1

hibernatemode 3 means that when it enters Standby, the Mac will copy memory to disk for Hibernation, but it leaves the contents of memory powered for Standby.

standby 1 means the Mac will automatically transition from Standby to Hibernate after a specified period of time

standbydelay 4200 means the Mac will keep memory powered for Standby for 4,200 seconds, or 70 minutes. After that, it powers off memory and the Hibernate file is used for resume, which (I think) causes the delay some people notice.

If you increase standbydelay, it will probably shorten battery life. But how does the PowerNap feature work if the system's hibernated? I checked the documentation (http://support.apple.com/kb/HT5394), and it said that Power Nap operations cease when battery life reaches 30%. Low and behold, my battery is at 29%.

I'll try some tests with a stopwatch later, but here's what I think right now:
* Resume from Standby is fast when you resume within an hour and ten minutes
* Resume from Standby is fast when you enable Power Nap on Battery Power, as long as the battery is above 30%. Of course, this reduces battery life somewhat.
* Changing the hibernatemode to 0 will make Resume from Standby fast, but if the battery dies, you lose all of your work. Bad idea for a laptop.
* You can probably make the standbydelay longer. I haven't tested this. It should be perfectly safe to do, because the Hibernate file is created as soon as the computer sleeps, so if the battery dies it will resume from Hibernate once you attach a power adapter.

macography.net
Aug 27, 2012, 12:47 PM
* Resume from Standby is fast when you enable Power Nap on Battery Power, as long as the battery is above 30%. Of course, this reduces battery life somewhat.


Cool. Thanks for the hint.

gpociej
Mar 27, 2013, 10:15 AM
I'll try some tests with a stopwatch later, but here's what I think right now:
* Resume from Standby is fast when you resume within an hour and ten minutes
* Resume from Standby is fast when you enable Power Nap on Battery Power, as long as the battery is above 30%. Of course, this reduces battery life somewhat.
* Changing the hibernatemode to 0 will make Resume from Standby fast, but if the battery dies, you lose all of your work. Bad idea for a laptop.
* You can probably make the standbydelay longer. I haven't tested this. It should be perfectly safe to do, because the Hibernate file is created as soon as the computer sleeps, so if the battery dies it will resume from Hibernate once you attach a power adapter.

Hey,
did you done anymore tests?
Did you try to adjust delay to hibernate?

I'm curious because from 2 days I really worried about my SSD life with safe sleep.
I think it will shorten SSD life with that much RAM dumps which will be made with my frequency of putting MacBook to sleep (10 or more per day...)

For now I think best option it to extend standby delay to around 2-3hrs (for me) or use DeepSleep widget and set regular sleep mode to 0 (quick).

regards, Greg

tvamvarg
Mar 28, 2013, 12:07 PM
I hate to be Mr. Obvious but have you guys and gals checked your hibernate mode?

I can't believe people have literally reinstalled ML without doing a simple check, in terminal:

pmset -g | grep hibernatemode

Be sure to read up about it first, but I set mine to 0 so it wakes instantly, in terminal:

sudo pmset -a hibernatemode 0

I always set hibernatemode to 0 with my macs, and this was the first thing I did on my MBA as well. However, it still created a hibernatefile and I think it tried to read it on wakeup, which caused 3-10 sec delay. I had to resort to creating an empty (touch) sleepimage under /var/vm and make it untouchable by the system. This fixed it. Many threads about this here on forums, e.g. http://forums.macrumors.com/showthread.php?t=1532245

gpociej
Mar 28, 2013, 02:32 PM
Yeah, I noticed too that sleepimage is created again but I didn't notice when (after sleep or shut down) it was created.
Need to check it.

I don't want to make this file untouchable for OSX.

Anyway, from yesterday, with hibernate mode 0, after sleep over night and twice during the day sleep image weren't updated.
So maybe OSX just creating this file to have it when need to dump RAM but not using when safe sleep is disabled.

Thanks for link. :]