Power Mode Switch is a small set of PowerShell scripts for Razer laptops that switch between a battery-friendly profile and a performance profile when AC power is disconnected or reconnected.
The watcher runs at login as a scheduled task. On battery, it prompts before applying Battery Mode. When AC power returns, it automatically restores Performance Mode.
Battery Mode can:
- Switch to a custom Windows power plan
- Limit CPU min/max processor state
- Set shorter display-off and sleep timers
- Lower display resolution, refresh rate, and brightness
- Enable Wi-Fi power saving
- Enable USB selective suspend
- Disable VRR
- Optionally disable CPU boost
- Optionally stop Razer Synapse-related processes
Performance Mode can:
- Restore CPU processor state
- Set longer display-off and sleep timers
- Restore native display resolution and the best available refresh rate
- Raise brightness
- Set Wi-Fi to maximum performance
- Disable USB selective suspend
- Enable VRR
- Optionally restart Razer Synapse
Edit power-mode-settings.psd1 before installing. The most common settings to change are:
BatteryMode = @{
DisplayWidth = 1920
DisplayHeight = 1200
RefreshRate = 60
BrightnessPercent = 40
CpuMaxPercent = 60
}
PerformanceMode = @{
DisplayWidth = 2560
DisplayHeight = 1600
PreferredRefreshRate = 165
BrightnessPercent = 100
}If your panel does not expose the preferred performance refresh rate, the performance script logs the available refresh rates and uses the highest available mode at the configured native resolution.
CPU boost is available but disabled by default:
DisableCpuBoost = $falseSet it to $true only if you want a cooler, quieter battery profile and are
comfortable with weaker burst performance while unplugged.
Open PowerShell as Administrator:
cd C:\Scripts\PowerModeSwitch
.\install.ps1Start the watcher immediately:
Start-ScheduledTask -TaskName "PowerModeWatcher"Restart the watcher after changing power-watcher.ps1 or
power-mode-settings.psd1:
Stop-ScheduledTask -TaskName "PowerModeWatcher"
Start-ScheduledTask -TaskName "PowerModeWatcher"Changes to battery-mode.ps1 and performance-mode.ps1 are picked up the
next time the watcher switches modes.
Unregister-ScheduledTask -TaskName "PowerModeWatcher" -Confirm:$falseThe scripts write to power-mode.log in the repo folder. This file is ignored
by git because it contains local timestamps and machine-specific run history.
- Run and install from an elevated PowerShell prompt.
- Display modes depend on what Windows and your GPU driver enumerate.
- Review the settings file before running on a different model.
- Synapse process names and executable paths are configurable in
power-mode-settings.psd1.