-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still going to sleep - running Fedora 36 #18
Comments
Hi @noelgarber and thanks for filing the issue! I think we could check a two things here: 1) systemctl
and see if that prevents your computer from going to sleep or not 2) privilegesThe |
Thanks for the reply! Here are the answers:
After typing the command, it prompts for a password before executing, which I entered. Same behaviour as when I run set_keepawake() from wakepy.
Unfortunately, when I run |
Hi and sorry for long delay! For part 2, I think it is because sudo has different set of environment variables than your user, and wakepy is installed to a folder which is added (only) to the PATH of your current user. See, for example: How to make
would preserve your PATH with sudo. |
For part 1, I found a least this answer which has a comment which says that commands like
would not work on Fedora. I tried to search for a solution for Google but could not find much of anything useful. One solution at ask.fedoraproject.org/ adviced to install
Looking at wiki.archlinux.org it seems that the command is merely "Disable screen saver blanking", and
would be "Disable DPMS and prevent screen from blanking", where DPMS = Display Power Management Signaling. Not sure if that only applies to the display, though. At the same page it also mentions Let me hear if you (or anyone else) found a solution for Fedora :) |
@noelgarber I just published wakepy 0.6.0 and it has two options of using DBus + inhibit method. I suppose this will fix also your problems on Fedora! |
I haven't checked if this is fixed yet but added 0.8.0 milestone, as Fedora (Workstation 36) uses GNOME 42, and support for GNOME using org.gnome.SessionManager (D-Bus) is in the list of changes for 0.8.0. |
Just installed Fedora 36 for testing purposes. Running with the latest In [1]: import wakepy
In [2]: wakepy.__version__
Out[2]: '0.8.0dev'
In [3]: from wakepy import keep
In [4]: import time
...: with keep.running() as m:
...: print(m.active)
...: print(m.activation_result.active_method)
...: time.sleep(2000) Confirming that the org.gnome.SessionManager based keep.running & keep.presenting methods and the org.freedesktop.ScreenSaver based keep.presenting method work well on Fedora 36 with GNOME 42.0, using the latest 0.8.0dev. |
I'm running Fedora 36 on a Lenovo Legion 7, and I ran the simple code:
from wakepy import set_keepawake, unset_keepawake
set_keepawake()
Yet my computer still goes to sleep after a few minutes. What's happening?
The text was updated successfully, but these errors were encountered: