7

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?

  • 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
9

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
  • 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. – Lri Jan 18 '14 at 20:15
2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .