SafeEyes icon indicating copy to clipboard operation
SafeEyes copied to clipboard

[Discussion] Figure out an alternative to xprintidle on Wayland

Open poperigby opened this issue 4 years ago • 15 comments

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.

poperigby avatar Nov 09 '20 17:11 poperigby

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

slgobinath avatar Nov 15 '20 22:11 slgobinath

I'm not too familiar with it either, but I thought I'd just try and start up a discussion.

poperigby avatar Nov 16 '20 00:11 poperigby

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)?

ilario avatar Jan 26 '21 18:01 ilario

Becoming more urgent as Ubuntu has just switched to Wayland as default from 21.04 onwards releases.

smith558 avatar May 06 '21 13:05 smith558

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)

m00nwtchr avatar Aug 30 '23 12:08 m00nwtchr

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.

meldafert avatar Dec 12 '23 12:12 meldafert

Any update on this? meldafert's pr seems to fix it.

Sohail-XD avatar Jan 26 '24 10:01 Sohail-XD

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 avatar Mar 14 '24 21:03 wolftune

@wolftune Can you test with #553?

meldafert avatar Mar 15 '24 14:03 meldafert

@meldafert EDIT: it doesn't work.

wolftune avatar Mar 15 '24 17:03 wolftune

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

wolftune avatar Mar 15 '24 17:03 wolftune