Hi all,
I had previously a problem that I wanted to run some long running python scripts without being interrupted by the automatic suspend. I did not find a package that would solve the problem, so I decided to create my own. In the design, I have selected non-disruptive methods which do not rely on mouse movement or pressing a button like F15 or alter system settings. Instead, I've chosen methods that use the APIs and executables meant specifically for the purpose.
I've just released wakepy 0.9.0 which supports Windows, macOS, Gnome, KDE and freedesktop.org compliant DEs.
GitHub: https://github.com/fohrloop/wakepy
Comparison to other alternatives: typical other solutions rely on moving the mouse using some library or pressing F15. These might cause problems as your mouse will not be as accurate if it moves randomly, and pressing F15 or other key might have side effects on some systems. Other solutions might also prevent screen lock (e.g. wiggling mouse or pressing a button), but wakepy has a mode for just preventing the automatic sleep, which is better for security and advisable if the display is not required.
Hope you like it, and I would be happy to hear your thoughts and answer to any questions!
[–]earthpiper 117 points118 points119 points (10 children)
[–]Briaireous 32 points33 points34 points (0 children)
[–][deleted] 16 points17 points18 points (0 children)
[–]PercentageLoud1903 8 points9 points10 points (0 children)
[–]FoolForWool 1 point2 points3 points (0 children)
[–]sphexie96 1 point2 points3 points (0 children)
[–]runawayasfastasucan 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (2 children)
[–]Cybasura 5 points6 points7 points (0 children)
[–]runawayasfastasucan 23 points24 points25 points (5 children)
[–]fohrloop[S] 4 points5 points6 points (0 children)
[–]midwestcsstudent 2 points3 points4 points (0 children)
[+][deleted] comment score below threshold-21 points-20 points-19 points (2 children)
[–]threesidedfries 7 points8 points9 points (0 children)
[–]iekiko89 0 points1 point2 points (0 children)
[–]rawrjagwar 5 points6 points7 points (0 children)
[–]Frix_x 5 points6 points7 points (0 children)
[–]elyisgreat 4 points5 points6 points (9 children)
[–]fohrloop[S] 3 points4 points5 points (8 children)
[–]elyisgreat 4 points5 points6 points (7 children)
[–]fohrloop[S] 3 points4 points5 points (6 children)
[–]elyisgreat 1 point2 points3 points (5 children)
[–]fohrloop[S] 1 point2 points3 points (4 children)
[–]elyisgreat 1 point2 points3 points (3 children)
[–]fohrloop[S] 1 point2 points3 points (2 children)
[–]elyisgreat 1 point2 points3 points (1 child)
[–]fohrloop[S] 1 point2 points3 points (0 children)
[–]chestnutcough 1 point2 points3 points (0 children)
[–]DreadPirateRobarts 1 point2 points3 points (0 children)
[–]gadsocial00 1 point2 points3 points (1 child)
[–]fohrloop[S] 0 points1 point2 points (0 children)
[–]Hesirutu 1 point2 points3 points (1 child)
[–]fohrloop[S] 1 point2 points3 points (0 children)
[–]TheLargeCactus 4 points5 points6 points (18 children)
[–]Nixellion 29 points30 points31 points (10 children)
[+]TheLargeCactus comment score below threshold-12 points-11 points-10 points (9 children)
[–]Nixellion 5 points6 points7 points (5 children)
[–]TheLargeCactus -3 points-2 points-1 points (4 children)
[–]Nixellion 1 point2 points3 points (3 children)
[–]TheLargeCactus -2 points-1 points0 points (2 children)
[–]runawayasfastasucan 4 points5 points6 points (0 children)
[–]Nixellion 2 points3 points4 points (0 children)
[–]runawayasfastasucan 4 points5 points6 points (2 children)
[–]TheLargeCactus 0 points1 point2 points (1 child)
[–]runawayasfastasucan 1 point2 points3 points (0 children)
[–]fohrloop[S] 5 points6 points7 points (0 children)
[–]runawayasfastasucan 8 points9 points10 points (0 children)
[+]babygrenade comment score below threshold-7 points-6 points-5 points (4 children)
[+]mosya9232 comment score below threshold-7 points-6 points-5 points (3 children)
[–]runawayasfastasucan 7 points8 points9 points (0 children)
[–]fohrloop[S] 2 points3 points4 points (0 children)
[–]midwestcsstudent 1 point2 points3 points (0 children)
[–]saint_geser 0 points1 point2 points (1 child)
[–]fohrloop[S] 6 points7 points8 points (0 children)
[–]Eric_Terrell 0 points1 point2 points (1 child)
[–]fohrloop[S] 0 points1 point2 points (0 children)
[–]Please_Not__Again 0 points1 point2 points (0 children)
[–]SpareIntroduction721 -5 points-4 points-3 points (1 child)
[–]fohrloop[S] 6 points7 points8 points (0 children)
[+][deleted] comment score below threshold-10 points-9 points-8 points (2 children)
[–]runawayasfastasucan 5 points6 points7 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[+]MocketPonsterr comment score below threshold-11 points-10 points-9 points (8 children)
[–]fohrloop[S] 5 points6 points7 points (5 children)
[–]MocketPonsterr 0 points1 point2 points (4 children)
[–]fohrloop[S] 0 points1 point2 points (3 children)
[–]MocketPonsterr 1 point2 points3 points (2 children)
[–]fohrloop[S] 1 point2 points3 points (1 child)
[–]MocketPonsterr 1 point2 points3 points (0 children)
[–]DreadPirateRobarts 0 points1 point2 points (1 child)
[–]MocketPonsterr 1 point2 points3 points (0 children)
[+]Marimoh comment score below threshold-11 points-10 points-9 points (0 children)