Skip to content

Commit 9e64abc

Browse files
authored
Add macOS / Linux help
1 parent 987af81 commit 9e64abc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ I initially ran into this issue with the Discord Windows application.
5656
I made the assumption that it used Electron's [powerMonitor API](https://www.electronjs.org/docs/api/power-monitor) or the browser equivalent [window.requestIdleCallback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) and started investigating.
5757
After much digging around, I found that Electron creates an invisible off-screen window to listen to sleep and screen lock events and falls back on chromium to detect an inactivity timeout. On Windows platforms, Chromium's [idle handler](https://chromium.googlesource.com/chromium/src/+/refs/tags/89.0.4343.1/ui/base/idle/idle_win.cc) relies on Win32's [GetLastInputInfo](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getlastinputinfo). After making this discovery and realizing that GetLastInputInfo was never returning the same tick count, I wrote this program to help me identify the source of the phantom inputs.
5858

59+
## Mac Users
60+
Disconnect all non-vital peripherals and enable your screensaver
61+
62+
## Linux Users
63+
Disconnect all non-vital peripherals
64+
Chromium currently only supports Xorg / Ozone
65+
5966
## Related bug reports that went unnoticed
6067
https://support.discord.com/hc/en-us/community/posts/360051256154-Push-Notification-Inactive-Timeout-no-longer-working
6168

0 commit comments

Comments
 (0)