You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was my bad. I was expecting screen locking to behave the same as suspending, but they are separate things. It would be cool if powerMonitor could handle screen-lock on Linux though.
After further investigation it became clear that powerMonitor is indeed not emitting 'suspend' or 'resume' events, but only when the environment is set to 'production'. When the environment is set to 'development' powerMonitor is emitting those events as expected.
@ckerr Thanks for the reply. Unfortunately, I get the same result with Electron 30.0.3 - 'suspend' and 'resume' emitted in development, not production.
Preflight Checklist
Electron Version
25.9.8
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu 22.04.4
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
On suspending or resuming system powerMonitor emits 'suspend' or 'resume' event accordingly.
Actual Behavior
No event emitted.
Testcase Gist URL
No response
Additional Information
Similar issue as #7699
The text was updated successfully, but these errors were encountered: