Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent mac from sleep but allow screen saver? #25

Closed
FezVrasta opened this issue Jul 2, 2015 · 21 comments
Closed

Prevent mac from sleep but allow screen saver? #25

FezVrasta opened this issue Jul 2, 2015 · 21 comments

Comments

@FezVrasta
Copy link

I'd like to prevent my Mac from going in sleep mode but I do want to allow my mac to enable the screen saver to prevent problems to my screen.

Caffeine doesn't allow it, what about KYA?

Thanks

PS; Sorry, with screen saver, I mean allowing my screen from turning off.

@e40
Copy link

e40 commented Nov 26, 2015

+1 as well. I want the effect of caffeinate -s. If the command line to caffeinate could be customized, then we'd all be happy!

@e40
Copy link

e40 commented Nov 28, 2015

It's not official, but I did this and it's working fine for me:

e40@dcf7e5e

Of course, I'd love to see the feature in the official version as an option or preference. This is just to tide me over.

@jeffbyrnes
Copy link

👍

@alexandreleroux
Copy link
Contributor

Doesn't this already works? With KYA 1.3.1 enabled, I can launch MacOS X's screensaver from the hot corner and let it go indefinitely. That doesn't work for you? If it does work, then we can close this ticket. Cheers -- Alex

@FezVrasta
Copy link
Author

I'm talking about the automatic screensaver

@alexandreleroux
Copy link
Contributor

Thanks for the precision

@copumpkin
Copy link

👍

Basically, expose the flexibility that caffeinate exposes, or at least let the screen sleep without the computer turning off.

@newmarcel
Copy link
Owner

OK you convinced me 😀, I will expose an advanced preference to allow the screen saver to activate (caffeinate -s). 👍

I schedule this pref with the upcoming v1.4 release.

This will also solve #12.

Thanks!

@e40
Copy link

e40 commented Dec 25, 2015

VERY NICE! Thank you!

newmarcel added a commit that referenced this issue Dec 27, 2015
@newmarcel
Copy link
Owner

This feature landed in master. To test it, checkout and build master, go to "Preferences…" > "Advanced" and check "Allow the display to sleep" (and restart the app if needed). This just wraps caffeinate -s

@FezVrasta
Copy link
Author

Thanks :) It will save the life of a lot of screens!

@copumpkin
Copy link

Awesome, thanks!

On Sun, Dec 27, 2015 at 06:43 Fez Vrasta notifications@github.com wrote:

Thanks :)


Reply to this email directly or view it on GitHub
#25 (comment)
.

@danechitoaie
Copy link

Any idea when new version would be released with this new feature?

@newmarcel
Copy link
Owner

Good question. Since I feel good about the current state of master I will start the beta cycle this weekend with 1.4.0beta1. You can then test the new features and report any bugs here.

@newmarcel
Copy link
Owner

Here you go, 1.4.0beta1 is live: https://github.com/newmarcel/KeepingYouAwake/releases/tag/1.4beta1

You can find the toggle in Preferences… -> Advanced -> Allow the display to sleep.

@e40
Copy link

e40 commented Feb 6, 2016

Works great. THANK YOU.

@alexandreleroux
Copy link
Contributor

This issue should be closed, now that it's part of release 1.4.0, agreed?

@copumpkin
Copy link

Is caffeinate -s really the option we want here? I think what I'm looking for is -i without -d, which should prevent the computer from sleeping without preventing the displaying from sleeping.

The documentation for -s says:

 -s      Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.

Which basically means that when I select the KeepingYouAwake "Allow the display to sleep" mode, my machine will go to sleep when I'm not plugged in. I think -i would achieve the desired goal while still keeping my machine awake when not plugged in.

Alternately, could you just expose the underlying command-line options?

@NeckBeardPrince
Copy link

@copumpkin Okay, I was wondering why the hell my laptop just went to sleep while I had this option selected. Yeah @newmarcel this breaks the app from doing what it should be doing.

@alokdhir
Copy link

What happened to this? I am on 1.5 and there is no option to 'Allow display to sleep'.

@electric-art
Copy link
Contributor

As mentioned above by @copumpkin and in issue #138, this should actually be possible using -i with caffinate - any chance of please implementing this @newmarcel ? Allowing the display to automatically sleep would go a long way to help reduce energy usage in our environment. @ @ #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants