Skip to content
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

Idle detection doesn't work in CentOS 8 Stream (Wayland / gnome) #22

Closed
srguiwiz opened this issue Mar 7, 2021 · 7 comments
Closed

Comments

@srguiwiz
Copy link
Contributor

srguiwiz commented Mar 7, 2021

TimeIT app runs, but idle detection is not functional. Tried many different ways.

Installed with cmake . && make && sudo make install . For prerequisites see comment at issue #21 .

First tried 2.0.X, which was 2.0.1, now running branch master. In between cleaning with git clean -d -f -x.

Also, tried various configurations of the desktop. That can be switched by the gear button when logging in. Default was Standard Wayland. But also tried Standard X11, and Classic X11. CentOS 8 Stream is "the new RHEL 8" now.

If there were something simple I can do to debug this, I might try. Have been looking e.g. at IdleDetector.cpp but don't have enough experience yet to really know how this implementation is supposed to work or how to debug.

@Hoglet
Copy link
Owner

Hoglet commented Mar 8, 2021

TimeIT is using the xscreensaver library to get information if system is idle. This is probably in turn dependant on X11. This would explain why it does not work in Wayland as it is not X11. Maybe it will work if the compatibility is extended.

Why it does not work when actually running X11 is a different question. Does the screen blank? Is there something inhibiting idle? (like youtube or vlc or something else)

@srguiwiz
Copy link
Contributor Author

srguiwiz commented Mar 8, 2021

The screen blanks. No YouTube, VLC or anything. Meanwhile I am getting familiar with IdleDetector.cpp by working on issue #23 in Ubuntu 20.04 instead of CentOS 8.

@Hoglet
Copy link
Owner

Hoglet commented Apr 14, 2021

Idle detection does work in CentOS 8 stream when running xfce4 under X11. This indicates that it is an issue with Wayland and/or the window manager in gnome.

@Hoglet Hoglet changed the title Idle detection doesn't work in CentOS 8 Stream Idle detection doesn't work in CentOS 8 Stream (Wayland / gnome) Apr 14, 2021
@Hoglet
Copy link
Owner

Hoglet commented Apr 15, 2021

Idle detection is working in Gnome-shell when running in X11.
Gnome-shell is only reporting one workspace though, probably a gnome bug (it based on Mutter which have had such bug before)

When running under Wayland then TimeIT is closing down as Wayland does not have the XScreenSaverQueryExtension.

TimeIT exits with:
"Unable to detect if user is idle. XScreenSaverQueryExtension not available"

@Hoglet
Copy link
Owner

Hoglet commented Apr 15, 2021

Tested KDE and got full functionality (they still have the system tray, yay!)

So full functionality in CentOS 8 Stream with:

  • KDE
  • XFCE4

Partial functionality:

  • gnome-shell

@Hoglet
Copy link
Owner

Hoglet commented Apr 15, 2021

Code (in python) for idle detection:
https://github.com/escaped/idle_time

@Hoglet
Copy link
Owner

Hoglet commented Apr 16, 2021

Closing this issue in favour of #47

@Hoglet Hoglet closed this as completed Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants