Skip to content
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

[Bug]: 'suspend' and 'resume' events not emitted by powerMonitor #42050

Open
3 tasks done
dorsta opened this issue May 6, 2024 · 4 comments
Open
3 tasks done

[Bug]: 'suspend' and 'resume' events not emitted by powerMonitor #42050

dorsta opened this issue May 6, 2024 · 4 comments
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲

Comments

@dorsta
Copy link

dorsta commented May 6, 2024

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

@dorsta dorsta added the bug 🪲 label May 6, 2024
@dorsta
Copy link
Author

dorsta commented May 6, 2024

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 dorsta closed this as completed May 6, 2024
@dorsta
Copy link
Author

dorsta commented May 7, 2024

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.

@dorsta dorsta reopened this May 7, 2024
@ckerr
Copy link
Member

ckerr commented May 8, 2024

@dorsta does this issue persist in Electron 30?

@ckerr ckerr added the blocked/need-info ❌ Cannot proceed without more information label May 8, 2024
@dorsta
Copy link
Author

dorsta commented May 10, 2024

@ckerr Thanks for the reply. Unfortunately, I get the same result with Electron 30.0.3 - 'suspend' and 'resume' emitted in development, not production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/need-info ❌ Cannot proceed without more information bug 🪲
Projects
None yet
Development

No branches or pull requests

2 participants