Home > Mac administration, Mac OS X > Disabling the Sleep command in the Apple menu

Disabling the Sleep command in the Apple menu

After recently participating in a discussion about disabling the Sleep command in the Apple menu, I wanted to document how to do this. This may be most useful for Mac terminal services, which was the context where I learned how to do this.

1. Log in with an account that has admin privileges

2. Open Terminal and run the following command:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool YES

Screen Shot 2013-01-26 at 9.48.54 PM

3. You should see that the Sleep command is now grayed-out in the Apple menu.

Screen Shot 2013-01-26 at 9.48.58 PM

To revert back, you’ll need to do the following:

1. Log in with an account that has admin privileges

2. Open Terminal and run the following command:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO

Screen Shot 2013-01-26 at 10.00.34 PM

3. Restart the Mac (this is necessary to apply the change.)

After the restart, you should see that the Sleep command is available again in the Apple menu.

Screen Shot 2013-01-26 at 9.52.41 PM

  1. January 27, 2013 at 5:23 am

    A bit off topic, but could you share your thoughts on the IRAPP TS? We’ve looked at AquaConnect in the past as well, but held off purchasing.

    • January 27, 2013 at 8:24 am

      Jason,

      I haven’t previously used the iRAPP terminal service. CodeRebel’s support article showed me how to disable the sleep function, but I don’t have direct experience with their terminal service software.

      I had tested AquaConnect at my previous workplace and it seemed OK.

  2. Tom Tubbiola
    January 28, 2013 at 1:47 am

    Thanks for this Rich. It will make my life easier than trying to teach my designers to just log out.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 153 other followers

%d bloggers like this: