[Bug]: 'suspend' and 'resume' events not emitted by powerMonitor
dorsta opened this issue · 4 comments
dorsta commented
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 a bug report that matches the one I want to file, without success.
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
dorsta commented
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.
Closing this issue.
dorsta commented
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.
Reopening this issue. Please help.