Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?

share|improve this question
    
Power nap is only available on certain machines, hence it would be helpful if you would add which system and OS you have. Additionally, could you edit your question such that only one question is asked at a time? Preferably only about he power nap feature, as the other one (about the cheatsheet) is not very well suited for this site. It doesn't have a single correct answer. – Saaru Lindestøkke Jan 8 '14 at 0:26
    
Bart, edited. And then where is the question on tutorial/cheatsheet suited? – Blaszard Jan 8 '14 at 1:20
    
Thank you. With regard to the cheatsheet: I don't think a complete list of these commands exist in the first place. Secondly such a question is not really practically answerable as it is unbounded. Here it's written that you should ask practical and answerable questions. So if you run into something you would like to change (like power nap) it's fine asking a specific question. You could try Googling the list though. – Saaru Lindestøkke Jan 8 '14 at 10:06
up vote 4 down vote accepted

Use pmset to change the darkwakes parameter:

sudo pmset -c darkwakes 1

The darkwakes parameter is not mentioned in the man page, but it is shown by pmset -g if your Mac supports Power Nap and is operating on an AC power.

-c is AC power (or charger or wall power), -b is battery power, -u is UPS, and -a is all.

You can also edit the plist directly, but you have to restart to apply the changes:

sudo /usr/libexec/PlistBuddy -c 'Set "Custom Profile":"AC Power":DarkWakeBackgroundTasks 1' \
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

Or using sed:

sudo sed -i '' '/DarkWakeBackgroundTasks/{N;s/false/true/;}' \
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
share|improve this answer
    
Thanks. Could you teach me about the possible values and its meaning of the darkwakes parameter? (And sorry for being a bit late to be notified of your answer...) – Blaszard Jan 17 '14 at 22:49
    
I guess it's just 1 for enabled and 0 for disabled. – user495470 Jan 18 '14 at 20:15

OS X: About Power Nap The following Mac computers can use Power Nap. Some of these computers may require an SMC update in order to use this feature.

http://support.apple.com/en-us/HT5394

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.