Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
10 replies

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.

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.