-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
powerMonitor.getSystemIdleTime() reports user idle on linux when using only keyboard (on Wayland) #27912
Comments
After some more investigation, I believe this might be related to Wayland. Seems that most idle detection methods on Linux used XScreenSaver or something similar relying on X which probably doesn't work on Wayland. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Still relevant |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
still issue electron 22 |
I am experiencing the same issue with Ubuntu Core 22 and Wayland while using Electron 22. The plugs I am using are as follows: plugs:
- audio-playback
- hardware-observe
- power-control
- system-observe
- network
- network-bind
- opengl
- process-control
- wayland Unfortunately, I am always receiving 'active' as the idle state. Has anyone found a workaround for this problem on Ubuntu Core 22 and Electron 22? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
. |
How about adding a label so this does not get marked as stale? This issue will stay relevant until it is fixed, which I would highly appreciate. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
still issue |
still issue with 25, please remove stale |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump |
I can easily reproduce this problem with electron v28 (and probably also with earlier versions) using electron-quick-start. By periodically logging |
incidentally, I have heard there are multiple idle-time protocols in Wayland. KDE (kwin) has a different one from some other frameworks or something. I hope they will all be supported. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Bump |
Preflight Checklist
Issue Details
Electron Version:
10.0.2
https://github.com/johannesjo/super-productivity/blob/master/package.json#L145
Operating System:
Ubuntu 20.10 x64 Wayland
Last Known Working Electron version:
N/A
Expected Behavior
When user is using only a keyboard (eg: editing files in Vim in running in a terminal emulator)
powerMonitor.getSystemIdleTime()
API does not detect this as idle time.Actual Behavior
powerMonitor.getSystemIdleTime()
detects the user is idle when user is using keyboard only in VimTo Reproduce
Found this while using
Super-Productivity
app on latest release version6.4.0
from Snap store. Bug filed here:johannesjo/super-productivity#922
This app is using the
powerMonitor
API to detect when a user is idle to notify them after X number of minutes:https://github.com/johannesjo/super-productivity/blob/03ff2fb0086225b9b56832e308b2751e2afc0f52/electron/main.ts#L146
Using the app I get this idle detection whenever I'm using the keyboard only in Vim for X number of minutes.
Screenshots
Additional Information
The text was updated successfully, but these errors were encountered: