-
Notifications
You must be signed in to change notification settings - Fork 164
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
Smartpause: add support for ext-idle-notify-v1 using pywayland #576
base: master
Are you sure you want to change the base?
Conversation
880854e
to
8077872
Compare
8077872
to
5dcfe19
Compare
I've tested this on the bigger desktops, no issues. This is ready to merge. |
(Note that I had this previously marked as waiting on #561 - I since managed to work around that.) |
Is there any dependency I need to install to test this? Also, will this still work on xorg (with xprintidle) after merging this? |
@archisman-panigrahi Yes, xprintidle will still work - this is only used on wayland (not gnome and not sway, since they have their own implementation). |
To request a package to Debian, one needs to file a bug report in the wnpp list https://www.debian.org/devel/wnpp/. Hopefully someone will package it, but it may take a while. Sending them a packaged version helps to speed up the process. I will try that. However, I am not very familiar with the process of official debian submission. However, I can add it to the PPA. Most packages in pypi can be easily debianized. |
Here is the debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076337 Now I need to figure out how to package it |
I stabilized the builds of python3-pywayland (I have not tested them, though). They are hosted in the safeeyes daily builds ppa https://code.launchpad.net/~safeeyes-team/+archive/ubuntu/safeeyes-daily The .deb packages can be directly downloaded from here https://code.launchpad.net/~safeeyes-team/+archive/ubuntu/safeeyes-daily |
@archisman-panigrahi Yes, this is independent of #561 (and vice versa). |
Hi, I have a question about using this protocol on my own project. I tested on a few devices, and Have you guys run into such issues? And if so, do you have any workarounds you'd recommend? The only solution I can think of now is to wait for the protocol to be implemented on those devices. |
@Levi-Lesches You're right that ext-idle-notify is not implemented on GNOME+Wayland. SafeEyes/safeeyes/plugins/smartpause/plugin.py Lines 91 to 110 in 003812c
For other compositors such as Weston, Mir or Gamescope that implement Wayland but not ext-idle-notify, we're also out of luck. |
Ok, good to know it's not just me. I'm going to leave my implementation as-is and call it "future proof", since as time goes on, more Wayland setups will hopefully support it |
Fixes #391.
This is an alternative to #553. Instead of relying on swayidle, which appears to have issues both on KDE as well as within Flatpaks, this PR uses pywayland to use the ext-idle-notify-v1 wayland protocol directly.
Tested on KDE Plasma 6.0 Wayland.
This still needs to be tested on compositors that do not implement the ext-idle-notify-v1 protocol. According to this, this would be Weston, Mir or GameScope. (Gnome still has its own solution.) The plugin will not work correctly on these compositors, but we should probably give a better error.