Vote count:
0
How can one disable forced sleep (sleep caused by the user - often by closing lid/pressing Sleep under the apple menu) through Terminal, preferably with a Python script, on OS X? I would like to be able to run the following or similiar...
import os
cmd = """ *?*Sleep Disable Command*?* """
def fullVolume():
os.system(cmd)
while True:
fullVolume()
...to accomplish said task.
I have done a fair share of research, and I couldn't find much, bar this: http://ift.tt/1LT3coZ
And this: http://ift.tt/VuZb2b http://ift.tt/1LT3fBp
I believe there may be some way to incorporate code from the NoSleep extension into this script, but I am quite unsure on how to do so. Help is much appreciated! =)
asked 1 min ago
Temporarly Prevent Forced Sleep on Mac OS X through Python/Terminal
Aucun commentaire:
Enregistrer un commentaire