wakepy
wakepy copied to clipboard
Cross-platform keep-awake with python
As mentioned on https://github.com/fohrloop/wakepy/issues/60, there is a bug in the old implementation ([wakepy/_deprecated/_windows.py](https://github.com/fohrloop/wakepy/blob/v0.7.2/wakepy/_deprecated/_windows.py)). Since the SetThreadExecutionState changes "execution state" of _current thread_ to either 1. Prevent display power management 2....
Wakepy has one dependency on linux: jeepney, which provides dbus support. There are yet no D-Bus free methods on linux, but there is a ticket (https://github.com/fohrloop/wakepy/issues/64) for searching for such...
It would be nice to have non-DBus based on methods available on GNOME. This would make D-Bus (and the python package jeepney) an optional dependency on GNOME. Task: - Search...
On linux, there are multiple methods which could be used: - jeepney (dbus without libdbus) - dbus-python (dbus with libdbus) - systemd These all are tried in order. It would...
Task: - Add new Platform type: WSL - Add WSL detection logic to `get_current_platform` TBD: Should detect WSL1 vs WSL2 ?
Splitting this work from https://github.com/fohrloop/wakepy/issues/69 into its own ticket. ### Motivation - Some methods might need a "heartbeat"; some call (executable, dbus, ...) done periodically. ### Task - Create a...
Go through the docs and update them. PART 1 - [x] Update Technical Details page: https://wakepy.readthedocs.io/en/main/user-guide/technical-details.html (especially the diagram about the different phases) PRs 101-103 - [x] Update Mode activation...
Hello, I have a python program packed with pyinstaller which uses wakepy. After packing for windows 10 .exe program is halted when wakepy `with keep.running()` is called. Have you tested...
Not all people read all the documentation. Adding `on_fail="warn"` in the examples, like this: ```python from wakepy import keep with keep.running(on_fail="warn"): # Do something that takes a long time. The...
Would it be useful to have an `on_success` / `on_activation` hook which would allow for calling a function when activation succeeds? There's already [`on_fail` action](https://wakepy.readthedocs.io/v0.9.1/user-guide.html#controlling-the-on-fail-action) which is similar but for...