SafeEyes
SafeEyes copied to clipboard
[Discussion] Figure out an alternative to xprintidle on Wayland
Currently, xprintidle only works on applications running through XWayland. This makes it pretty useless if you're using primarily Wayland native applications. swayidle could be something to look at.
Honestly I am not familiar with Wayland though I have noticed issues on Wayland machines. There is an attempt to solve this issue here https://github.com/slgobinath/SafeEyes/pull/338
Any suggestions are welcomed
I'm not too familiar with it either, but I thought I'd just try and start up a discussion.
I just tested swayidle on Gnome+Wayland and the output states: "Display doesn't support idle protocol" which was expected as swayidle looks for this protocol inside some KDE stuff (see here). Maybe this is about the Gnome implementation (I didn't look into it in detail)?
Becoming more urgent as Ubuntu has just switched to Wayland as default from 21.04 onwards releases.
For anyone not using sway, you can just set XDG_CURRENT_DESKTOP=sway
for safeeyes, but really there's no need to limit the swayidle solution to just sway. (A number of wayland compositors support it)
See https://github.com/slgobinath/SafeEyes/pull/553 - now that ext-idle-notify-v1 is merged and used by swayidle by default, this should be the proper solution.
Any update on this? meldafert's pr seems to fix it.
on KDE 6 in wayland, Safeeyes doesn't work at all. It thinks I'm always idle and thus never triggers any breaks.
I think what's needed is support for kde-idle
@wolftune Can you test with #553?
@meldafert EDIT: it doesn't work.
Update: it allowed breaks at all. Initially, I was missing swayidle
and that forced Smart Pause to be turned off
I tested with installing swayidle, and now it does the breaks even if I am idle. Swayidle is running, but it still isn't pausing when I do nothing on the system.
It's NOT working, it needs to support kde-idle
That said, this helped me with a workaround for now: If I turn off Smart Pause, then the regular release version works (but no smart-pause of course). With the #553 change, it works without Smart Pause whether or not Smart Pause setting is on. So, that's at least different.
To review:
- no breaks at all with main version and Smart Pause on (xidle wrongly indicates idle always)
- works with Smart Pause off
- the PR removes the problem with xidle indicating wrong idleness
- swayidle does not actually work in KDE as far as I can tell, kde-idle support is needed