![]() ![]() I posted a solution to a similar question here: The logic in Keep.Awake will solve your problem on ubuntu or any Linux Distro running Gnome (old and new including Unity), works on both Wayland and X. # in Windows, prevent the OS from sleeping while we run Print("Preventing Windows from going to sleep")Ĭ( ![]() '''Prevent OS sleep/hibernate in windows code from: (In some cases, such as when the battery is running out, Windows will ignore your request.) class WindowsInhibitor: When used, it will ask windows not to sleep while the script runs. The following simple piece of code can prevent this problem. To overcome this problem I wrote a script. I ran into similar situation where a process took long enough to execute itself that windows would hibernate. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |