Open ghost opened 4 years ago
My need is to disable sleep when the lid closed without power, and this command simply works.
sudo pmset -b disablesleep 1 # To restore sudo pmset -b disablesleep 0
-b means set the parameter for battery mode. There is also -a|-c|-u.
-b
-a|-c|-u
disablesleep is undocumented in man pmset. Does someone know about it?
disablesleep
man pmset
Source
My need is to disable sleep when the lid closed without power, and this command simply works.
-b
means set the parameter for battery mode. There is also-a|-c|-u
.disablesleep
is undocumented inman pmset
. Does someone know about it?Source