How do I set Screen Saver to Never?

dwaterbury
New Contributor III

Hi Everyone,
I have a couple lobby displays with mac minis connected to display pictures/slideshows. How can I set the screen saver to Never? I've tried settings in Configuration Profiles and Managed Preference Profiles, but nothing seems to be straight forward and clear as to resolve this so I'm confused. Thank you in advance for any help.

9 REPLIES 9

bburdeaux
Contributor II

Your easiest solution may be to package up Caffeine with the proper settings and deploy it to the minis.

stevevalle
Contributor III

You can create a policy that executes the following command

defaults -currentHost write com.apple.screensaver idleTime 0

Scope that policy to the required computers and they will no longer display a screensaver

d14f7fde1671471cb14291ec4ee99d37

BoscoATX
New Contributor III

defaults -currentHost write com.apple.screensaver idleTime 0

agerson
New Contributor III

This appears to be a user level setting. When I run it at login it does not affect the currently logging in user.

mariobarrera
New Contributor

The command does not work.

tranatisoc
New Contributor II

would the following work:

user1=stat -f "%Su" /dev/console
sudo -u $user1 defaults -currentHost write com.apple.screensaver idleTime 0

HCSTech
Contributor
Contributor

This works: defaults write com.apple.screensaver idleTime 0

Aguiness
New Contributor III

With things like this I use configuration profiles github is a great source for this kind of thing

HCSTech
Contributor
Contributor

Agreed.. You can also add this to a Custom Profile as is so it will be enforced.