-
Notifications
You must be signed in to change notification settings - Fork 5
reset_nvram_reboot_macos.sh
Corey Watson edited this page Dec 1, 2025
·
1 revision
Schedules an NVRAM reset on the next reboot and immediately reboots the Mac.
This script schedules an NVRAM reset on the next reboot and immediately reboots the Mac. NVRAM stores system settings like startup disk selection, display resolution, speaker volume, etc.
Resets NVRAM (Non-Volatile Random-Access Memory) on Intel-based Macs. NVRAM stores settings that macOS accesses quickly, including:
- Startup disk selection
- Display resolution
- Speaker volume
- Time zone information
- Recent kernel panic information
Useful for troubleshooting:
- Boot issues
- Display problems
- Audio issues
- Startup disk not found errors
- Time/date problems
NOTE: On Apple Silicon Macs (M1/M2/M3), NVRAM is automatically reset during the update process and this manual reset may not be needed.
- Root/sudo access required
- macOS 10.14 or later
- Intel-based Mac (Apple Silicon uses different reset method)
No configuration required.
- Checks for root privileges
- Detects Mac architecture (Intel vs Apple Silicon)
- Sets NVRAM variable to trigger reset on next boot
- Immediately reboots the system
- No secrets exposed in output
- Runs with elevated privileges (sudo required)
- WILL IMMEDIATELY REBOOT THE SYSTEM
- User data is not affected (only system settings reset)
- 0 - Success (reboot initiated)
- 1 - Failure (permission denied, unsupported architecture)
[ INPUT VALIDATION ]
--------------------------------------------------------------
Running as root : Yes
[ SYSTEM DETECTION ]
--------------------------------------------------------------
Architecture : x86_64
Mac Model : MacBookPro15,1
[ CURRENT NVRAM ]
--------------------------------------------------------------
Current NVRAM values (subset):
SystemAudioVolume=%80
boot-args=
csr-active-config=%00%00%00%00
[ OPERATION ]
--------------------------------------------------------------
Setting NVRAM reset flag...
NVRAM Reset Flag : Set
Action : Initiating reboot
*** SYSTEM WILL REBOOT NOW ***
[ REBOOTING ]
--------------------------------------------------------------
- 1.0.0 (November 2024) - Initial release
- View Script Source
- Scripts - Back to script index