Since the 89.0.1 update on Windows 10 21H1 (Build 19043.1055), Firefox will not let my PC sleep, unless I quit and re-open Firefox. There is no audio playing on any tabs,… (read more)
Since the 89.0.1 update on Windows 10 21H1 (Build 19043.1055), Firefox will not let my PC sleep, unless I quit and re-open Firefox. There is no audio playing on any tabs, but after a while of using Firefox on YouTube or whatnot, it will not release the audio device to let Windows put my monitors to sleep even though all playback has ended.
This can clearly be seen by running "powercfg /requests" as an administrator.
With videos playing, as expected Firefox reserves the audio device, as well as an Execution request.
Output:
[
PS C:\WINDOWS\system32> powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume6\Program Files\Mozilla Firefox\firefox.exe
display request
SYSTEM:
[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0900&SUBSYS_10438581&REV_1000\4&2d156fef&0&0001)
An audio stream is currently in use.
AWAYMODE:
None.
EXECUTION:
[PROCESS] \Device\HarddiskVolume6\Program Files\Mozilla Firefox\firefox.exe
non-display request
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
]
But after you stop playing the video the output becomes:
[
PS C:\WINDOWS\system32> powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume6\Program Files\Mozilla Firefox\firefox.exe
display request
SYSTEM:
[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0900&SUBSYS_10438581&REV_1000\4&2d156fef&0&0001)
An audio stream is currently in use.
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
]
You can see the audio device doesn't get released, and the only resolution is to quit and restart Firefox.
This doesn't always happen, but does happen after a while.