Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hubertheryan

macrumors newbie
Original poster
Jun 12, 2013
2
0
Hi All,

I use a script that sleeps the display, and just realized that the default behavior is to also sleep the laptop when the display turns off. If you remotely access your computer, as I do, this is probably not what you want.

To revert to the previous style, just check the box that says "Prevent computer from sleeping when display is off".

see below:

Screen%20Shot%202013-06-12%20at%203.38.03%20PM.png
 

techn0lady

macrumors regular
Apr 10, 2010
105
0
Ummmm ... that doesn't revert to the old style. It just prevents the computer from sleeping. I tried it on my MBA 13

There currently is NO option to have the display blank out while the computer is still working - in order to save energy. You can't even do that with a screen saver anymore because there is no blank screen saver . :(
 

scaredpoet

macrumors 604
Apr 6, 2007
6,627
342
I'm also able to get just display sleep working.

Also, note that the "prevent computer from sleeping" checkbox is only available for the power adapter option. It can't be enabled when running off battery.
 

techn0lady

macrumors regular
Apr 10, 2010
105
0
doing some research and testing - it seems that I can still set separate display and sleep timeouts using terminal and the pmset command.

ex.

sudo pmset -b sleep 300

will cause the machine to sleep 300 in 300 minutes - or 5 hours on battery

sudo pmset -b displaysleep 15

will cause the display to sleep in 15 minutes while on battery power.

Why apple took the computer sleep option (sudo pmset -b sleep 300 ) out of the UI is a mystery to me for now.
 

MeatRocket

macrumors regular
Jun 9, 2013
142
0
In the Sandbox
doing some research and testing - it seems that I can still set separate display and sleep timeouts using terminal and the pmset command.....

Gawd I love you! :D

I want to bid on your 2012 MBA but I just can't shake the desire to shell out $1700 on the new MBA. I've got just under 4 hours to change my mind!
 

flight

macrumors regular
Mar 4, 2010
130
0
Ummmm ... that doesn't revert to the old style. It just prevents the computer from sleeping. I tried it on my MBA 13

There currently is NO option to have the display blank out while the computer is still working - in order to save energy. You can't even do that with a screen saver anymore because there is no blank screen saver . :(

Can you dim the screen using the brightness buttons until the screen turns off?
 

flight

macrumors regular
Mar 4, 2010
130
0
Oh absolutely!
I can also cut out a piece of cardboard and tape it to the screen to cut off the display.

I don't understand the sarcasm. I was providing a way to "have the display blank while the computer is still working."

There currently is NO option to have the display blank out while the computer is still working

Edit: Now that I've re-read the post, you must mean that there's no way for the screen to go blank on its own without the computer going to sleep as well. I originally read it as, there is no way to make the screen go blank. :)
 

Agent-P

Contributor
Dec 5, 2009
2,502
23
The Tri-State Area
Can you dim the screen using the brightness buttons until the screen turns off?

My understanding was that doing this only turns off the backlight, but the screen is still technically on (you just can't see it). From reading this thread, I thought we were looking for a way to make the screen actually turn off (thus saving resources as the screen does not need to be running), but the computer to still be awake.

EDIT: I read your followup post and it looks like you got that. Nevermind then.
 

C C

macrumors newbie
Oct 14, 2009
1
0
Under the Screen Saver preferences, is there still a "Put Display to Sleep" option under "Hot Corners", or has that changed?
 

ctyrider

macrumors 65816
Jul 15, 2012
1,025
591
Still there.

Yes, but it only truly sleeps the display when a machine is plugged in. Activating a sleep screen hotcorner when it's running on battery puts the whole machine to sleep. Which I find infuriating.
 

teffers

macrumors regular
Jun 23, 2013
137
10
United Kingdom
Just bought a 2013 MBA. This issue (if I can't fix it) will mean I'll return the laptop.

My intended use is VPN / RDP / Teamviewer for weekends on call and if there is no way to have the screen sleep without losing connection to these services then I can't use the MBA 13.

I'm trying to use the Terminal commands but it's not something I've used before on Mac - any guidance on how to use the 'sudo pmset -b sleep 300' command would be really appreciated:

When I enter it into the terminal window I get:
sudo: /private/etc/sudoers is mode 0644, should be 0440
sudo: no valid sudoers sources found, quitting
 
Last edited:

scaredpoet

macrumors 604
Apr 6, 2007
6,627
342
When I enter it into the terminal window I get:
sudo: /private/etc/sudoers is mode 0644, should be 0440
sudo: no valid sudoers sources found, quitting

Something has wrecked the file permissions on your drive, preventing sudo from running.

Try this:

1. Go into your "Applications" Folder, and from there the "Utilities" Folder.
2. Double click on the "Disk Utility" app.
3. On the window that pops up, click on "Macintosh HD" (or whatever you've named your boot drive), and then click "Repair Disk Permissions."

This could take a while, and likely a whole bunch of status messages will pop up similar to what you listed above. Once it's done though, quite Disk Utility and try running sudo again.

Just bought a 2013 MBA. This issue (if I can't fix it) will mean I'll return the laptop.

I suggest you do it quick then, and either search for a previous (2012) MacBook Air or a current-model MacBook Pro before they get refreshed. Apparently this change was brought about as a result of the new CPU architecture, so no doubt newer Macs going forward might also have this feature change.
 

teffers

macrumors regular
Jun 23, 2013
137
10
United Kingdom
Thanks scaredpoet - much appreciated, just trying it now.

If I return this MBA I think I'll not be getting another. I was trying to justify the purchase as I could link it to the better portability the Air gives (I didn't take much convincing lol.)

I kinda guessed it might be related to the new chipset / fantastic battery life etc.

Just seems totally crazy to have it drop this connectivity when the screen goes off on battery power.

Ok so it fixed a bunch of permissions, I entered the command, it asked for my password, I entered it and it put me back to the prompt ... that sound right ?
 

hags2k

macrumors newbie
Jun 26, 2013
1
0
The pmset command seems to have fixed this for me.

Code:
sudo pmset -c sleep 0
sudo pmset -c displaysleep 30

The above seems to get me what I need - the display turns off after 30 minutes but the system does not go to sleep. For battery I did:

Code:
sudo pmset -b sleep 5
sudo pmset -b displaysleep 5

So on battery the display turns off after 5 minutes and the system goes to sleep as well. Normally I would have one happen before the other, but this thing wakes up so fast that I don't mind and it probably saves a tiny bit of juice.

If you do these in a different order the command might spit out an error (if you set your computer to sleep BEFORE your display sleeps, basically).

So, now my computer remains awake at all times when plugged in but the display does go ahead and turn itself off. I just wish they'd left the systemp preference pane alone :)
 

DoctorK4

macrumors regular
Jan 31, 2011
142
3
Should we want to change settings back to factory default, how would we go about that?
 

scaredpoet

macrumors 604
Apr 6, 2007
6,627
342
Ok so it fixed a bunch of permissions, I entered the command, it asked for my password, I entered it and it put me back to the prompt ... that sound right ?

Yup, that should do it. Only thing to do now is test the behavior and see if the display goes to sleep without the rest of the system.
 

teffers

macrumors regular
Jun 23, 2013
137
10
United Kingdom
Phew ... it seems to have worked for me too.

Best cancel that return to JohnLewis.com ... Thanks scaredpoet :)

My VPN connection is staying on and my Teamviewer panel on my second client still shows the MBA as online.

Big thank you to technolady and scaredpoet :)
 
Last edited:

Weaselboy

Moderator
Staff member
Jan 23, 2005
34,133
15,596
California
Should we want to change settings back to factory default, how would we go about that?

Just delete these two files.

/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

/Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist
 

teffers

macrumors regular
Jun 23, 2013
137
10
United Kingdom
Suppose the trade off is it won't sleep automatically when we close the lid ?

Or is there something I can do to get that functionality back ?

If not that's fine, I'd still rather have the no sleep when it's open.
 

markmd624

macrumors newbie
Jun 26, 2013
1
0
I talked to AppleCare support representative on this today. I was told that is has to do with the low power state of the Haswell processor. After talking with an engineer, he determined that this was an intentional merging of the two settings and that it is not changeable. I'm waiting on some answers to questions that I asked, but it appears that there is no way to sleep the display without triggering the Power Nap state.

My only advice for those of us using the new MacBook Airs for business purposes at this time is to set the display to never sleep while on power and to sleep after an hour or so on battery for those who need to ensure that it does not enter the Power Nap state at undesirable times.
 

teffers

macrumors regular
Jun 23, 2013
137
10
United Kingdom
Ok, so just as a proof of concept I decided to try and put everything back how it was, and because I wanted to return the functionality of closing the lid inducing immediate sleep.

I looked for the two preference files mentioned above but could only find the first one, so deleted it and it's reset my sleep settings (see below) but still the macbook doesn't automatically sleep when I close the lid.

Anyone able to direct me to be able to reset the behaviour so when the lid is closed it sleeps ;-)

macbook:~ myusername$ pmset -g
Active Profiles:
Battery Power 1*
AC Power 2
Currently in use:
standbydelay 10800
standby 1
halfdim 1
hibernatefile /var/vm/sleepimage
darkwakes 0
disksleep 10
sleep 1
autopoweroffdelay 14400
hibernatemode 3
autopoweroff 1
ttyskeepawake 1
displaysleep 2
acwake 0
lidwake 1
macbook:~ myusername$
 
Last edited:

APlotdevice

macrumors 68040
Sep 3, 2011
3,145
3,861
Ummmm ... that doesn't revert to the old style. It just prevents the computer from sleeping. I tried it on my MBA 13

There currently is NO option to have the display blank out while the computer is still working - in order to save energy. You can't even do that with a screen saver anymore because there is no blank screen saver . :(

A blank screen saver wouldn't save any power anyway. Almost all of an LCD's power consumption comes from its backlight, which remains on even when all the pixels are showing "black".
 

ctyrider

macrumors 65816
Jul 15, 2012
1,025
591
I talked to AppleCare support representative on this today. I was told that is has to do with the low power state of the Haswell processor. After talking with an engineer, he determined that this was an intentional merging of the two settings and that it is not changeable. I'm waiting on some answers to questions that I asked, but it appears that there is no way to sleep the display without triggering the Power Nap state.

That is obviously incorrect, as you could have read from the earlier posts in this thread.

I sleep my display just fine without sleeping the whole system, while the laptop is plugged in. The Energy Saver UI limitations are overwritten by the 'pmset' command, as indicated above.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.