encyclopegia.org

Pmset

On Apple computers, pmset is a command line utility to manipulate power management settings under the Darwin and macOS operating systems.[src] It can assign sleep settings, schedule sleep and wake times, and display power information.[src]

On Apple computers, pmset is a command line utility to manipulate power management settings under the Darwin and macOS operating systems.[src] It can assign sleep settings, schedule sleep and wake times, and display power information.[src] autopoweroffdelay (AC power) delay before entering autopoweroff mode.[src] (Value = integer, in seconds) standbydelaylow Delay before writing the hibernation image to disk and powering off memory for Standby.[src] standbydelaylow is used when the remaining battery capacity is low.[src] (Value = integer, in seconds) standbydelayhigh Delay before writing the hibernation image to disk and powering off memory for Standby.[src] standbydelayhigh is used when the remaining battery capacity is high.[src] (Value = integer, in seconds) networkoversleep This setting affects how macOS networking presents shared network services during system sleep.[src] This setting is not used by all platforms; changing its value is unsupported.[src] destroyfvkeyonstandby Destroy File Vault Key when going to standby mode.[src] By default File vault keys are retained even when system goes to standby.[src] If the keys are destroyed, user will be prompted to enter the password while coming out of standby mode.[src] (value: 1 - Destroy, 0 - Retain).[src] Since it is essential that the system fully powered down, you also need to set `hibernatemode` to 25 (suspend to disk).[src] Settings may be adjusted independently for circumstances where the machine is attached to a charger, when running off a battery (in the case of a laptop), or when running off a UPS (if available).[src] Settings can also be adjusted for all four scenarios simultaneously; this is the default option, for when no usage flag is specified.[src] Power management options can be specified for different profiles by appending -c (charger), -b (battery), -u (UPS) or -a (all) flags.[src] The following example will set the machine to sleep after 10 minutes and sleep the display after five minutes, but only when powered by the battery.[src] pmset -b sleep 10 displaysleep 5 The following command will assign slightly different power management settings for circumstances where the machine is powered by the charger.[src] Here, the machine is set to sleep after 30 minutes and the display is set to never sleep, but only when set by the charger.[src] Issuing both commands will not interfere with each other.[src] pmset -c sleep 30 displaysleep 0 Arguments can be entered in serial form to set or modify several power management parameters with one command.[src] The following command will set the machine to never sleep ( sleep 0 ), enable the Sudden Motion Sensor ( sms 1 ), set the display to sleep after 20 minutes ( displaysleep 20 ), disable processor speed reduction ( reduce 0 ), enable intermediate display dimness ( halfdim 1 ), enable the machine to wake when the lid is opened ( lidwake 1 ), prevent the system from sleeping when a tty session (such as SSH) is active ( ttyskeepawake 1 ), disable waking the machine when the AC adapter is inserted ( acwake 0 ), disable an automatic restart after power is removed and restored ( autorestart 0 ), enable dynamic change of processor speed based on system load ( dps 1 ), enable wake on modem ring ( ring 1 ), enable wake on receipt of "magic" Ethernet packet ( womp 1 ), and disable hard disk sleep ( disksleep 0 ): pmset sleep 0 sms 1 displaysleep 20 reduce 0 halfdim 1 lidwake 1 ttyskeepawake 1 acwake 0 autorestart 0 dps 1 ring 1 womp 1 disksleep 0 Because the above example did not include a usage flag, the settings specified will apply to all usage scenarios.[src] Subsequent commands that do specify a usage flag will only affect settings for that usage scenario.[src] For instance, pmset -b sleep 10 will cause the machine to sleep after 10 minutes, but only when the battery is attached.[src] All other settings will apply when the battery is attached, and all settings in the above example will apply when a charger or UPS is attached.[src] At least as of Darwin 9.4 and OS X 10.5.4 "Leopard", all changes made through pmset are saved in a persistent preferences file at /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist .[src] This file can be modified manually using the defaults command, but those changes will not be taken up immediately by the power management system.[src] Manual edits of com.apple.PowerManagement.plist also stand the risk of being overwritten.[src] The command pmset touch will reread existing settings from disk and apply them to the system.[src] With autopoweroff enabled the machine will go into hibernate mode even if hibernatemode is 0.[src] The value of autopoweroffdelay may be in seconds despite the man page (for Mavericks, Nov 9, 2012) documenting it as minutes.[src] pmset sleepnow The following example will apply only to laptops when powered by the battery.[src] It will set the machine to sleep after 5 minutes of inactivity, put the display to sleep after 2 minutes, and spin down the hard disk after 3 minutes.[src] Only privileged users can issue this command.[src] If the command is issued successfully and is without syntax errors, pmset will exit silently with an exit code of 0.[src] To verify that the system took the new configuration, issue the command pmset -g .[src] pmset -b sleep 5 displaysleep 2 disksleep 3 The following example will apply only to machines being powered by a UPS.[src] It will set the machine to perform an emergency shutdown when 5 percent battery remains on the UPS, or 5 minutes estimated draw time remains, whichever comes first.[src] Only privileged users can issue this command.[src] If the command is issued successfully and is without syntax errors, pmset will exit silently with an exit code of 0.[src] To verify that the system took the new configuration, issue the command pmset -g .[src] pmset -u haltlevel 5 haltremain 5 The following example will apply for all usage scenarios.[src] It will set the machine to wake on receipt of a "magic" Ethernet packet, wake if the modem detects a ring, and prevent the system from sleeping if a tty session is active.[src] Only privileged users can issue this command.[src] If the command is issued successfully and is without syntax errors, pmset will exit silently with an exit code of 0.[src] To verify that the system took the new configuration, issue the command pmset -g .[src] pmset -a womp 1 ring 1 ttyskeepawake 1 The following example sets a one-time scheduled power event.[src] The machine will be set to shut down 01/10/2009 at 10:00 PM (10 January 2009 – Note the US centric MM/DD/YYY time syntax).[src] Only privileged users can issue this command.[src] If the command is issued successfully and is without syntax errors, pmset will exit silently with an exit code of 0.[src] To verify that the system took the new configuration, issue the command pmset -g sched .[src] pmset schedule shutdown "01/10/2009 22:00:00" The following example sets a repeating power event.[src] The machine will wake or power on every weekday at 8:00 AM.[src] Only privileged users can issue this command.[src] If the command is issued successfully and is without syntax errors, pmset will exit silently with an exit code of 0.[src] To verify that the system took the new configuration, issue the command pmset -g sched .[src] pmset repeat wakeorpoweron MTWRF 08:00:00 Here, example output from pmset -g .[src] At the time, the machine was being powered by the charger, while simultaneously charging the battery.[src] The command prints the current configuration.[src] $ pmset -g Active Profiles: Battery Power -1 AC Power -1* Currently in use: sleep 0 sms 1 displaysleep 20 reduce 0 halfdim 1 lidwake 1 ttyskeepawake 1 acwake 0 autorestart 0 dps 1 ring 1 womp 1 disksleep 0 Here, example output from pmset -g sched .[src] In this example, the machine has already been configured for a repeating event to start or wake up every weekday at 8:00 AM.[src] The command prints the repeating event; note that the next such occurrence appears as a scheduled power event.[src] $ pmset -g sched Repeating power events: wakepoweron at 8:00AM weekdays only Scheduled power events: [0] wakeorpoweron at 08/04/08 08:00:00 by Repeating Here, example output from pmset -g .[src] At the time, the machine was being backed up.[src] The output shows the PID for the backup program.[src] $ pmset -g | grep sleep disksleep 10 sleep 0 (imposed by 33927) displaysleep 5 $ ps -ef | grep 33927 0 33927 1 0 9:22am ??[src] 10:54.97 /System/Library/CoreServices/backupd ==References== pmset(1) manual page at Apple Developer Connection Power Management and Scheduling via Command Line at uMac, University of Utah standbydelayhigh and standbydelay low at Apple Discussions sys-suspend for Solaris systems poweradm for Solaris systems[src]

70 sentences · 70 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Pmset." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pmset. Accessed 27 November 2026.

Chicago

"Pmset." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/pmset.

APA

encyclopegia.org. (2026). Pmset. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/pmset

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1363780032 · 0.5 · snapshot enwiki-001363780032

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.