Skip to content

powerMonitor.getSystemIdleTime() reports user idle on linux when using only keyboard (on Wayland) #27912

Open
@ssalenik

Description

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

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 Vim

To Reproduce

Found this while using Super-Productivity app on latest release version 6.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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions