How to set screen saver idle time in Terminal

Hi


I would like to set the Mac OS screen saver time to 45 min = 2700 second and the system settings don't have that option, only 1, 2, 5, 10, 20, 30 min and 1 hour. I need 45 min if possible.

So i'm trying to figure out how to do it in Terminal. Anyone who knows how to do that ?


I tried this:


user$ defaults -currentHost write com.apple.screensaver idleTime 2700


But it didn't work. It just changed it to standard 20 min and not 45 min = 2700 seconds.


Thanks

Posted on May 13, 2020 12:10 PM

Reply
Question marked as Top-ranking reply

Posted on May 13, 2020 4:53 PM

When you open System Preferences, it must set it back to 20 because it cannot display 45 minutes in the menu.

Set it in defaults and don't open ScreenSaver System Prefs. See if it activates in 45 minutes.

Any time you open the ScreenSaver System Prefs, it will get reset since it cannot display the 45 minute value.

If it actually sets it to 45 minutes with the defaults, then any time you have to make changes in the ScreenSaver System Prefs, you'll have to run the defaults command, again after closing the prefs.

10 replies
Question marked as Top-ranking reply

May 13, 2020 4:53 PM in response to sjogren

When you open System Preferences, it must set it back to 20 because it cannot display 45 minutes in the menu.

Set it in defaults and don't open ScreenSaver System Prefs. See if it activates in 45 minutes.

Any time you open the ScreenSaver System Prefs, it will get reset since it cannot display the 45 minute value.

If it actually sets it to 45 minutes with the defaults, then any time you have to make changes in the ScreenSaver System Prefs, you'll have to run the defaults command, again after closing the prefs.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to set screen saver idle time in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.