integralpro / nosleep

The MacOS X kernel extension, preventing sleep when you close the lid.
GNU General Public License v2.0
874 stars 45 forks source link

[Feature Request] NoSleep disable timer #27

Open sifex opened 7 years ago

sifex commented 7 years ago

Hey, just thinking that a NoSleep auto disable timer might be in order, given that serious damage could be done if you place a MacBook with Discrete Graphics in a bag whilst NoSleep is enabled.

Thinking estimates for 30min, 1h, 2h, 5h, 8h, 10h, 20h, 1 day and 2 days or disabled.

szhu commented 7 years ago

I +1 'd this but commenting here to give a use case:

9 out of the last 10 times I used NoSleep, it was when I wanted to walk to another room in the same building with the lid closed but didn't want to wait for the machine to wake up and reconnect everything. It would be nice to have the system wait a while before sleeping after I closed the lid.

thiagowfx commented 7 years ago

Here's another feature request use case: I often enable NoSleep when I'm watching a movie. However, I often forget to disable it once I end my watching session, therefore leaving my Mac awake.

It would be nice to activate NoSleep but "automatically disable it after X minutes or Y hours" (some defaults should be provided, plus the user could enter whatever she finds suit".

mjm666 commented 5 years ago

Adding my $0.02: i've been really wanting this feature, too. Similar to szhu, most of the time i use NoSleep just to walk to another room at work with the lid closed and not drop my network connections. But then i forget to turn it off, and sometimes put the computer in my bag and go home with it still on. Having it auto-disable itself after a configurable amount of time would be awesome.

gnguenon commented 5 years ago

Hi @integralpro ! I may try to implement this if you don't have it on your radar. Could you please give me some hints to where in the code this should be implemented? Thanks!

docwindsor commented 5 years ago

I also have the same use-case as @szhu and @mjm666: I need computer to remain awake while walking to/from meetings in building. Could really use a timer but 5, 10, and 15 minutes would cover my needs.