pmset -g prints the power settings your Mac is using right now without sudo: sleep and displaysleep are idle timers in minutes where 0 means never, the names in parentheses are processes holding sleep off, and SleepDisabled 1 means system sleep is switched off for the whole Mac. If you are checking pmset because you want a closed MacBook to keep running, Clamshell for Mac keeps a closed Apple Silicon MacBook awake on battery or power from the menu bar, with no admin password, no sudo, and nothing to undo, for $9.99 once after a 7-day free trial.
Written by Matyas Rathonyi, the maker of Clamshell for Mac.
What pmset -g shows
pmset is Apple's built-in Terminal tool for reading and modifying macOS power management settings. Running pmset -g is read-only and requires no sudo.
Per Apple's pmset(1) manual, -g with no argument displays the settings currently in use. Any change saved through pmset is written to /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist, the same file System Settings updates. Processes can also override saved settings temporarily with power assertions, which pmset -g lists in parentheses next to sleep or displaysleep.
Example pmset -g output
Here is real pmset -g output from an Apple Silicon MacBook Pro (MacBookPro18,2, macOS 27.2, on AC power). Values such as displaysleep 0 reflect that Mac's saved settings rather than macOS defaults:
System-wide power settings:
SleepDisabled 0
Currently in use:
standby 1
Sleep On Power Button 1
hibernatefile /var/vm/sleepimage
powernap 1
networkoversleep 0
disksleep 10
sleep 1 (sleep prevented by coreaudiod, powerd)
hibernatemode 3
ttyskeepawake 1
displaysleep 0
tcpkeepalive 1
powermode 0
womp 1
Every line of pmset -g explained
This table covers every line printed on a MacBook Pro and a desktop iMac, checked against man pmset:
| Line | Meaning | In man pmset |
|---|---|---|
SleepDisabled | System sleep off for whole Mac (1) | No |
standby | Hibernates Mac after timed sleep | Yes |
Sleep On Power Button | Not documented by Apple | No |
hibernatefile | Path to hibernation image file | Yes |
powernap | Power Nap on (1) or off (0) | Yes |
networkoversleep | Shared network services during sleep | Yes (changing it unsupported) |
disksleep | Disk spindown timer, minutes (0 = off) | Yes |
sleep | System sleep timer, minutes (0 = never) | Yes |
hibernatemode | 0 desktop, 3 portable, 25 hibernate | Yes |
ttyskeepawake | Blocks idle sleep during active tty | Yes |
displaysleep | Display sleep timer, minutes (0 = never) | Yes |
tcpkeepalive | Not documented by Apple | No |
powermode | 0 Automatic, 1 Low, 2 High Power | No (Energy Mode) |
womp | Wake for network access (0 or 1) | Yes |
autorestart | Restart after power loss (0 or 1) | Yes |
autorestartatconnect | Restart on power connect (0 or 1) | Yes |
SleepServices | Not documented by Apple | No |
Key notes on specific lines:
- MacBook vs desktop lines.
hibernatefile,hibernatemode, andpowermodeappeared on the MacBook Pro, whileautorestart,autorestartatconnect, andSleepServicesappeared on the desktop iMac.man pmsetalso documentslidwake("wake the machine when the laptop lid (or clamshell) is opened"), butpmset -gdid not print it on an Apple Silicon MacBook Pro. hibernatemodevalues. Perman pmset,0is the desktop default,3is the portable default (memory stays powered while a copy is written to disk), and25writes memory to disk and removes power from memory.networkoversleepandpowernap.man pmsetsaysnetworkoversleepis not used on all platforms and changing it is unsupported. Forpowernap, Apple lists Enable Power Nap on its macOS 27 desktop Energy page, not its macOS 27 Battery page.powermode. Apple's macOS 27 Battery page lists the Energy Mode choices Low Power, Automatic, and High Power; Apple's openpmsetsource maps0to Automatic,1to Low, and2to High on Macs with High Power Mode (other Macs showlowpowermode).SleepDisabled. Printed underSystem-wide power settings:, not per power source, and absent frompmset -g custom. Set withsudo pmset -a disablesleep 1and cleared withsudo pmset -a disablesleep 0(see what sudo pmset disablesleep 1 does and how to undo sudo pmset disablesleep 1).
What "sleep prevented by" means
When a process holds a power assertion, pmset -g prints its name in parentheses after sleep or displaysleep, such as sleep 1 (sleep prevented by coreaudiod, powerd).
powerdshows up next tosleepwhen the display is on: inpmset -g assertions, it holds aPreventUserIdleSystemSleepassertion named"Powerd - Prevent sleep while display is on".caffeinateshows up when you or another tool runs Apple'scaffeinatecommand; its detail line starts withcaffeinate assertingand lists whether it holds forever, for a countdown, or on behalf of a command or process ID (see what caffeinate does on a Mac).
To inspect every active assertion and its owning process ID, run:
pmset -g assertions
Apple's IOPMLib.h SDK header documents key assertion types including PreventUserIdleSystemSleep (blocks idle sleep, while the header notes the system may still sleep for lid close, Apple menu, or low battery), PreventUserIdleDisplaySleep (keeps the display on, which also blocks idle system sleep), PreventDiskIdle, and NetworkClientActive (keeps the Mac awake on AC power). For any other assertion name, read the owning process and description string. If your Mac refuses to sleep and you want a check order to clear the holder, see Mac won't sleep or Sleep is greyed out.
pmset -g shows both.pmset -g options: assertions, batt, therm, custom, and more
All of these commands are read-only and run without sudo:
pmset -g
pmset -g custom
pmset -g assertions
pmset -g batt
pmset -g therm
pmset -g | grep SleepDisabled
Here is what each common -g option prints:
| Command | What it shows | Example output |
|---|---|---|
pmset -g / pmset -g live | Active settings plus SleepDisabled | Both print the same on an iMac |
pmset -g custom | Saved settings per power source | An AC Power: section, no SleepDisabled |
pmset -g cap | Power features supported by this Mac | Supported keys for AC power |
pmset -g batt (or ps) | Power source, charge, time remaining | Now drawing from 'Battery Power' or Now drawing from 'AC Power' |
pmset -g therm | Thermal warnings affecting CPU speed | "No thermal warning level has been recorded" |
pmset -g assertions | Active power assertions by process | Counts, then each process with PID |
pmset -g sysload | User, battery, and thermal load levels | combined level = OK, thermal level = Great |
pmset -g ac | Attached power adapter wattage and details | Adapter details, on an iMac too |
pmset -g stats | Sleep, dark wake, user wake counts | Counts since boot |
pmset -g systemstate | Current power state and capabilities | CPU Graphics Audio Network |
pmset -g sched | Scheduled wake, sleep, startup, shutdown | Empty when nothing is scheduled |
Three notes on the options: man pmset notes -g therm is not available on all platforms (when no warnings are recorded, it prints "No thermal warning level has been recorded", "No performance warning level has been recorded" and "No CPU power status has been recorded"). Although man pmset describes -g ac as MacBook-only, it prints adapter wattage on desktops too. man pmset also lists pmset -g log for sleep/wake history (covered in MacBook battery drains overnight while asleep), pmset -g everything, and streaming options such as pslog, assertionslog, and thermlog.
Where pmset stops: keeping a closed MacBook awake
Reading settings with pmset -g is free and needs no sudo, but man pmset states: "pmset must be run as root in order to modify any settings." Any change you write applies to battery (-b), charger (-c), UPS (-u), or all sources (-a), and stays saved in the preferences file until you change it back.
If you are using sudo pmset -a disablesleep 1 to keep a closed MacBook running, that free command asks a lot of you:
- An admin password and
sudo. On a managed work Mac without admin rights,pmsetrefuses to run. - Manual undo every time. Sleep stays off until you remember to run
sudo pmset -a disablesleep 0. - No closed-lid battery floor or heat cut-off.
pmsethas no built-in 20% battery disarm or thermal disarm for a closed-lid session.
Why pay $9.99 once for Clamshell when pmset is built in? pmset asks for sudo, requires manual cleanup after every session, and leaves heat and battery protection to you.
- No
sudo, no admin password, and nothing to undo. Arm Clamshell from the menu bar, by pressing both Option keys, or from a script withopen "clamshell://arm". Normal lid sleep returns when you disarm or quit. - Keeps a closed MacBook running on battery or power. No external monitor, keyboard, or mouse needed, and the built-in display stays off while your tasks finish.
- Always-on heat cut-off and 20% battery floor. Thermal safety stays on at all times and disarms Clamshell toward normal sleep if your Mac gets too hot. Low-battery stop at 20% is on by default.
- Notarized and installable with Homebrew. Direct download,
brew install --cask clamshell, or Setapp on Apple Silicon Macs running macOS 14 or later.
Test it on your Mac before paying anything: Download free trial (free for 7 days, no card required; $9.99 once for 1 Mac or $19.99 for up to 3 Macs, with a 14-day money-back guarantee). To build standard pmset or caffeinate commands, see the pmset and caffeinate command builder.
When pmset is the better pick
- You are diagnosing sleep or configuring a desktop Mac.
pmset -gandpmset -g assertionsare free, built in, and show every power setting and holder; Clamshell is for keeping a closed MacBook awake, not inspecting power preferences. - You use an Intel Mac or macOS 13 or earlier. Clamshell requires an Apple Silicon MacBook running macOS 14 or later, while
pmsetships on every Mac.
Frequently asked questions
Does pmset -g need sudo?
No. Reading current settings, assertions, battery status, or thermal state with pmset -g needs no sudo. Only changing settings with pmset requires root.
What does SleepDisabled 1 mean in pmset -g?
SleepDisabled 1 means system sleep is turned off for the whole Mac, set by sudo pmset -a disablesleep 1. Run sudo pmset -a disablesleep 0 to restore normal sleep (see how to undo sudo pmset disablesleep 1), or switch to Clamshell if you want closed-lid awake control with no sudo and nothing to undo.
What does sleep 0 mean in pmset -g?
In man pmset, sleep is the system idle sleep timer in minutes, and 0 disables automatic idle sleep. It does not keep a MacBook awake when you close the lid on its own.
Why does pmset -g say sleep prevented by powerd?
powerd holds a PreventUserIdleSystemSleep assertion named "Powerd - Prevent sleep while display is on", which appears in pmset -g whenever the display is awake. It is normal macOS behavior and not a stuck app.
What does pmset -g assertions show?
Apple's manual calls it a summary of power assertions. It prints system-wide counts per assertion type, then lists every process holding an assertion with its PID, held time, type, and description string so you can see what is keeping your Mac awake.
Why pay $9.99 for Clamshell when sudo pmset disablesleep 1 is free?
sudo pmset -a disablesleep 1 needs an admin password, stays active until you manually undo it, and adds no low-battery or heat cut-off for a closed lid. Clamshell costs $9.99 once with no subscription so you get closed-lid awake control on battery or power with no admin password, an always-on heat cut-off, a 20% battery floor, and normal lid sleep back when you disarm or quit, backed by a 7-day free trial.
Related guides
- Mac won't sleep or Sleep is greyed out
- What sudo pmset disablesleep 1 does and how to undo it
- What does caffeinate do on a Mac? Every flag explained
- pmset and caffeinate command builder
Try Clamshell free for 7 days
Keep your Apple Silicon MacBook running with the lid closed, on battery or power, with no admin password, an always-on heat cut-off, and a 20% battery floor. Normal lid sleep returns when you disarm or quit.
$9.99 for 1 Mac, $19.99 for up to 3 Macs. 7-day free trial with no card required and a 14-day money-back guarantee. Apple Silicon, macOS 14 or later, notarized by Apple. Also available via Homebrew or Setapp.
Sources checked November 23, 2026: macOS 27.2.1 pmset(1) manual (footer dated November 9, 2012), Apple's IOPMLib.h header from the macOS 27.0 SDK, Apple's macOS 27 Battery and Energy settings pages, read-only pmset -g checks on macOS 27.2.1, and MacBook Pro (MacBookPro18,2, macOS 27.0.1 and 27.2) captures from October 27 and 28, 2026. Clamshell details come from version 2.0.5. Clamshell is an independent app, not affiliated with or endorsed by Apple. Product names belong to their respective owners.