A lightweight macOS menu bar utility to keep your Mac awake, prevent sleep on lid close, control Intel Turbo Boost, and manage power settings from a single menu bar icon.
macOS's built-in caffeinate prevents idle and display sleep, but it cannot stop your Mac from sleeping when you close the lid without an external monitor. DontDoze combines caffeinate, pmset (SleepDisabled & power management flags), Intel Turbo Boost control, and optional app suspension into a minimal native menu bar app.
- macOS 12 Monterey or newer (Universal Binary: Intel
x86_64& Apple Siliconarm64) - Xcode Command Line Tools (
swiftc) if building from source:xcode-select --install
- (Optional, Intel Macs only)
DisableTurboBoost.64bits.kextplaced inresources/or/Applications/Turbo Boost Switcher.app
- Download
DontDoze-macOS.zipfrom Releases. - Unzip and move
DontDoze.appto/Applications. - Open
DontDoze.app(if macOS warns about an unidentified developer, right-click → Open).
git clone https://github.com/IqyRily/DontDoze.git
cd DontDoze
chmod +x build.sh
./build.sh
open DontDoze.app- Left-Click Icon: Quickly toggle Keep Device Awake / Allow Device Sleep (runs
caffeinate -d -i -m -sand setspmset -a disablesleep 1/0when the Helper is installed). - Right-Click Icon: Open the menu:
- Turbo Boost Status (Intel
x86_64only): Switch between Always Enabled, Disable When Lid Close, or Always Disabled. - Preferences:
- Launch at Login: Start DontDoze automatically via
~/Library/LaunchAgents/com.rizki.DontDoze.plist. - Advanced Mode: Unlocks independent Keep Display Awake (
caffeinate) and Keep System Awake on Lid Close (pmset -a disablesleep) toggles, Suspend Running Apps (SIGSTOP/SIGCONTon lid close +~/Library/Logs/DontDoze.log), and Power Management (standby,autopoweroff,hibernatemode,disksleep,powernap,womp,proximitywake,tcpkeepalive,ttyskeepawake, plus Reset to Defaults...). - Install / Remove Helper...: One-time
/etc/sudoers.d/dontdozesetup (prompted only when using features that needsudo, such aspmsetor Turbo Boost), plus clean uninstallation. - Menu Bar Icon: Choose Default (
Zzz), MacBook, or Coffee Cup. - Language: Follow System, Indonesia, or English.
- Launch at Login: Start DontDoze automatically via
- Turbo Boost Status (Intel
Note on Turbo Boost: macOS requires third-party kernel extensions to be authorized once in System Settings → Privacy & Security (click Allow and restart) before
kextloadcan loadDisableTurboBoost.64bits.kext.
- Swift — Compiled directly into a Universal (
x86_64+arm64) binary viaswiftc&lipo - AppKit / Cocoa — Native
NSStatusBar&NSMenuUI - IOKit — Clamshell / lid state detection (
AppleClamshellState) - macOS
caffeinate&pmset— Display, idle, disk, and system sleep management
- @IqyRily — Creator & Maintainer
DisableTurboBoost.64bits.kextfrom Turbo Boost Switcher by Rubén García Pérez
Distributed under the MIT License. See LICENSE for more information.
