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

Godot 4 editor preventing modern standby sleep on Windows #81706

Closed
HunterAhlquist opened this issue Sep 15, 2023 · 1 comment
Closed

Godot 4 editor preventing modern standby sleep on Windows #81706

HunterAhlquist opened this issue Sep 15, 2023 · 1 comment

Comments

@HunterAhlquist
Copy link

HunterAhlquist commented Sep 15, 2023

Godot version

v4.1.1.stable.mono.official [bd6af8e]

System information

Windows 11 22H2, Modern Standby enabled laptop (in my case Microsoft Surface Laptop Studio w/NVIDIA GPU)

Issue description

It seems that Godot is always keeping an audio stream active even while idle in the editor, preventing sleep. Found out because my laptop died in my backpack.
Here's the offending request that goes away when I close the editor:

[DRIVER] Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0274&SUBSYS_10EC121C&REV_1000\5&1543d6b8&0&0001)
An audio stream is currently in use.

I'm on a device that hard blocks the disabling of modern standby, so switching to S3 sleep is sadly not an option for me.

Steps to reproduce

  1. Use powercfg /requests while GD4 is closed to see normal functioning. No media should be running in the background
  2. Open a GD4 project
  3. Use powercfg /requests again and a similar request should appear depending on your audio setup:
[DRIVER] Realtek High Definition Audio(SST) (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0274&SUBSYS_10EC121C&REV_1000\5&1543d6b8&0&0001)
An audio stream is currently in use.

This request will prevent sleep on a Windows laptop with modern standby even when idle and minimized. Applications shouldn't keep an open power request when no media is playing.

Minimal reproduction project

Any new blank project (tested with GD4) should produce this issue.

@AThousandShips
Copy link
Member

AThousandShips commented Sep 15, 2023

Thank you for reporting, this is a duplicate of:

Consolidating there (it isn't restricted to mac)

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

No branches or pull requests

2 participants