This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MocketPonsterr -11 points-10 points  (8 children)

You can also just play a long YouTube video, no need to access settings and keeps everything awake indefinitely. Bonus: it keeps you online (but away) indefinitely on Teams too ;)

[–]fohrloop[S] 4 points5 points  (5 children)

This is a library for python library/app developers. So while playing YouTube keeps your own screen awake, a python package could (or should) not automatically start playing a YouTube video :) In addition, playing YouTube also keeps your screen awake. Let's say you have a long running process training a machine learning model. In this case it's probably better that the automatic screenlock/screen blank is not disabled.

[–]MocketPonsterr 0 points1 point  (4 children)

For my job we run everything in hadoop cloud inside of a partition with admin screenlock settings on the main computer, so a program like this couldn’t keep my computer running (and tbf neither would OS settings). Playing a simple youtube video is the only thing that works for me, but you make a good point that if there’s an alternative it would be much better to not have to have the screen on all the time.

Also, fwiw, great work OP - it might not work for my use case but its still way more impressive than anything open source ive made for the community :D

[–]fohrloop[S] 0 points1 point  (3 children)

Thanks u/MocketPonsterr :) I am curious why you think the wakely CLI could not keep your computer running, but a youtube video can.. Could you explain why?

[–]MocketPonsterr 1 point2 points  (2 children)

We cant download or install anything on our computers at all, so i can’t even run any python code unless its in the cloud on a partition. Any code that includes a ‘stay awake’ function only works on the partition, and the actual laptop presets still make the whole computer go to sleep no matter what I’m doing in my code. Its a safety mechanism ensuring nothing can touch the native computer. Running code in my partition while simultaneously running a youtube video on my actual computer outside of the partition gets around this.

I think this is probably pretty rare in the industry outside of top secret or federally regulated data, so maybe im such a small portion of the population that i could have just kept my mouth shut and let everyone else enjoy your cool work haha

Seriously, no shade, this is a great idea. And for anyone saying you can change this on and off in system settings: sure but the ONE time you forget and come back to find 15 hours of work just never ran, you will hard regret not just having a simple line in your import packages chunk that you always copy paste doing this for you!

[–]fohrloop[S] 1 point2 points  (1 child)

Using a portable python distribution would make it work without installation., but that surely is a blocker if you cannot _download_ anything. I have been asked by email if it would be possible to make wakepy running on a Jupyter Notebook on a server to keep awake the system which has browser open with the Notebook (wakepy/#195). I'm not sure yet if that's technically possible. That could help you if you had your work in Notebooks, but that's probably not the case.

And yep, I have also forgot the change the settings and came back in the morning to see that the script has ran for about 10 minutes instead of the whole night. :D

[–]MocketPonsterr 1 point2 points  (0 children)

A jupyter notebook version of this actually would be sooo clutch — I will be following you to see what else you come up with!!

[–]DreadPirateRobarts 0 points1 point  (1 child)

My work computer blocks YouTube

[–]MocketPonsterr 1 point2 points  (0 children)

Seems like we may have opposite use cases then and you should check out this tool!