🐞: [BUG] Expected to decode Bool
iclems opened this issue · 8 comments
Sorry for filing this, bought you a coffee to apologise for the noise :-) I can probably take a look at the code in a couple of weeks myself to debug if you need help
Thx for submitting the bug and for the coffee of course!
Looks like the RequiresACPower
value in /Library/Preferences/com.apple.TimeMachine.plist
is neither 0
nor 1
in your case. Could you please share what value it is in your case?
Maybe I need to change this to an enum of some sort instead of a boolean.
It would be interesting to know what possible values there could be.
And what string?
Which device are you on?
Any special energy related settings?
I tried on both my Mac Mini and (Intel) MacBook Pro and couldn't reproduce it unfortunately. The checkbox in Time Machine Settings for backing up on battery power only changes the value to either 0 or 1. And energy related settings like Power Nap have no impact on the value.
This file should not be edited manually. Which tool are you talking about?
Could you run the following command in a terminal session to read the file out?
plutil -p /Library/Preferences/com.apple.TimeMachine.plist
Then look for the line that starts with "RequiresACPower" =>
. What value has it assigned?
It should be either 0
or 1
(without any quotes) like so:
"RequiresACPower" => 1
Ok then something messed up your time machine preferences.
To fix this you can simply run this in Terminal:
sudo defaults write /Library/Preferences/com.apple.TimeMachine.plist RequiresACPower -bool NO