x74353 / Amphetamine-Enhancer

Add new abilities to the macOS keep-awake utility, Amphetamine.
MIT License
944 stars 45 forks source link

Allow display sleep without locking? #20

Open drewjc75 opened 2 years ago

drewjc75 commented 2 years ago

I've been using NoSleep on my system for years, but recently it just doesn't want to work (every time I try to load it, it complains about the kernel extension not being enabled, until I manually load the kernel extension, and even then it doesn't seem to take effect even while the application and service are running). I use Amphetamine on my work system, so I thought I'd try to set up a similar system to what I use NoSleep for on my personal machine.

Long story short, NoSleep allowed me to time out my display but keep the system running. Amphetamine absolutely allows me to do that too, but it looks like there's no way to do what NoSleep does, which is to allow the display to go to sleep without locking the system. This is important to me because when I'm at home by myself, I don't want my system to be locked, but I don't want the display to be on all day if I leave my system alone for an extended period of time. However, I don't want to just disable locking my system in case I leave home with it.

So what I have set up right now is a trigger that detects when I'm connected to my home wifi network and keeps the system alive, but still allows display sleep, This has the effect of locking my system after the 60 minutes when plugged in or 15 minutes on battery. I want to keep that behavior when NOT running an Amphetamine session, but to remove it while the session is active.

Is this already possible and I just missed it? And if not, is it possible to add this functionality? I found NoSleep to be extremely valuable for this purpose and I'm hoping that Amphetamine can be a more modern method of solving the same problem.