When I run this command:
sudo systemsetup -getcomputersleep
I'm getting this:
Computer Sleep: after 55 minutes
And that corresponds to the setting in the "Energy Saver" Preference panel, the setting "Turn display off after".
So now I'm wondering what happens exactly after 55 minutes? Does the computer actually go to sleep (i.e. all activity is stopped) or is it only switching off the screen?
The command line and preferences use wordings that for me means completely different things so I'm just wondering which one is right?
Best Answer
systemsetup
From the command line you can confirm the state of your sleep situation using the
-getsleep
argument tosystemsetup
.This setup was accomplished by setting the preferences under "Energy Saver" section of System Preferences like this:
This shows that the display will be turned off after 10 minutes but the system itself will remain powered on. Pay special attention to the tabs in this dialog as well. The settings are different when on battery vs. the power adapter.
NOTE: If we were to unset that checkbox so that the system won't be prevented from going to sleep along with the display the output form
systemsetup
changes to this:You can see all the
get*
settings fromsystemsetup
like this:You can also augment the settings from the CLI as well:
pmset
Additionally there's another tool you can use to get/set timings related to the various "sleep" aspects of your system.