Difference between revisions of "Pmset"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
https://apple.stackexchange.com/questions/298933/command-line-stop-macbook-from-sleeping-when-lid-is-closed | https://apple.stackexchange.com/questions/298933/command-line-stop-macbook-from-sleeping-when-lid-is-closed | ||
+ | |||
+ | Disable Sleeping when the [[lid]] is closed running on battery | ||
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | ||
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 | sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 | ||
+ | == Related == | ||
+ | * [[systemsetup]] | ||
+ | * [[Standby]] | ||
− | + | == See also == | |
− | + | * {{pmset}} | |
* {{macOS}} | * {{macOS}} |
Latest revision as of 10:43, 27 May 2024
Disable Sleeping when the lid is closed running on battery
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
Related[edit]
See also[edit]
pmset
- macOS: macOS versions, iTerm2, Homebrew, FileVault, System Integrity Protection,
dscacheutil
,networksetup
, XNU kernel, APFS, diskutil, mdfind, Keychain Access, Growl, Activity Monitor, sidecar, macOS FHS, Apple Notification Center,sw_vers
, Spotlight,pbcopy
, MacOS application firewall,Applesimutils
, Automatic login,security (command)
,codesign
,spctl
, Alfred, Xcode,system_profiler
,log show
, MacOS Preview, Rectangle app, Finder, macOS: Shortcuts, SEP, osascript, macOS profile, UTM,softwareupdate, systemsetup, pmset
, macOS tips, macOS Dock, Automator, SIP, System Preferences,installer, cryptex
, AirPlay, macOs first setup, Universal Control, menu bar, IPSW
Advertising: