Why your Mac sleeps while running Handbrake
Handbrake encodes can run for hours, especially for large video files or batch queues. It doesn't prevent macOS from sleeping during encodes.
macOS tracks idle time based on mouse and keyboard input, not CPU or app activity. If you're not actively moving the mouse while Handbrake does its thing, the idle timer counts down and your Mac sleeps.
Keep your Mac awake with Shake It On
Shake It On moves your mouse slightly at regular intervals, resetting the idle timer. It only runs when your conditions are met, so it activates when Handbrake is working and stops when you're done.
Best condition for Handbrake: Only Shake If CPU is above 70% sustained for 1 minute. Handbrake pegs the CPU during encoding; sustained-window catches the rare dip-between-files in batch queues.
Quick setup
- Install Shake It On and grant Accessibility permission
- Open Settings from the menu bar icon
- Under "Only Shake If," enable the condition: Only Shake If CPU is above 70% sustained for 1 minute. Handbrake pegs the CPU during encoding; sustained-window catches the rare dip-between-files in batch queues.
- Under "Paused When," enable "On battery" to save power when unplugged
- For long overnight operations, enable "Allow display to sleep" in the General section so the screen turns off but the system stays awake