Re: Prevent screen saver from starting, but don't prevent computer sleep
Re: Prevent screen saver from starting, but don't prevent computer sleep
- Subject: Re: Prevent screen saver from starting, but don't prevent computer sleep
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Mon, 29 Jun 2020 08:55:24 +0200
Thanks for the hint.
Can caffeinate be run such that it prevents ONLY the screensaver from kicking
in,
but does NOT prevent the system from sleeping?
(I could not find that option in the man page.)
Best regards, Gabriel
> On 29. Jun 2020, at 04:28, じょいすじょん <email@hidden> wrote:
>
> One way to do this is with the command line tool:
> caffeinate
>
> You could run a background task that starts it with something like
> caffeinate -dimsu
>
> You can probably also find its source code on opensource.apple.com to
> understand what it does and how.
>
> Like here is a version:
>
> https://opensource.apple.com/source/PowerManagement/PowerManagement-637.20.2/caffeinate/caffeinate.c.auto.html
>
> <https://opensource.apple.com/source/PowerManagement/PowerManagement-637.20.2/caffeinate/caffeinate.c.auto.html>
>
> You certainly still want a user to approve things.
>
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden