Posted on 10-18-2013 03:39 PM
I've been digging around to find terminal commands for SMC and PRAM resets so I can created a script to use with Self Service to reset PRAM and SMC. Has anyone else attempted or had any success? I can't find the proper boot args for 10.8.x
Posted on 10-20-2013 02:48 PM
for more info check out the man page for nvram
Posted on 10-20-2013 03:38 PM
This seems like it would be a neat thing to have in Self Service. The manpage doesn't say much though (where'd the "-c" come from?) and my Googlefu fails me. Any other info?
Posted on 10-21-2013 05:19 AM
nvram -c will clear everything currently set in NVRAM. I'm not sure about PRAM. The only way i've ever been able to zap that is command-option-p-r at boot, and that is only if a firmware password is not set. If the nvram is corrupt (nvram -p returns "this command is not supported on this system") you will need to use AST (earlier than version 1.5) to flash it, or if its a pre-2011 machine, remove a stick of RAM and do the PRAM reset key combo.
Posted on 10-21-2013 11:53 AM
I'm sorry, my post title should have been SMC and NVRAM resets. Thank you for providing the nvram -c command. Does anyone have ideas about how to reset SMC via terminal?
Posted on 06-07-2016 07:01 PM
Any more info regarding SMC via terminal or script would be great.
We have keyboards not been detected and i think resetting SMC and NVRAM could fix the issue.
Posted on 06-08-2016 04:45 AM
Hmmm - never heard of a command to reset the SMC. That's pre-firmware boot stuff and I doubt a terminal command could get to it. Some of the fan commands can address the SMC but I've never heard of more than that.
However there are terminal commands to boot into safe boot mode which has maintenance qualities to it.
Go to safeboot in next boot - nvram boot-args="-x"
Go back to normal boot next boot - nvram boot-args=""
But this significantly changes the boot process and delays and there should be a warning what to expect and what to do in case - if it turns off rather than finishes booting then there is a problem beyond what automated scripts can fix. But there is the problem that how does one get booted back to normal if the user shouldn't log in or again the experience will be so different they might be weirded out.