iprodanovbg / homeassistant-desktop

🎛 Desktop application (Windows / macOS / Linux) for Home Assistant built with Electron
Apache License 2.0
394 stars 39 forks source link

Video Wake Lock prevents PC to go to sleep #28

Open Mincka opened 1 year ago

Mincka commented 1 year ago

I discovered that my Windows 11 does no go to sleep because of this application. I tried different options ("Hover to Show", "Stay on Top") but I am not sure it has an effect. Sometimes the "Video Wake Lock" is present, sometimes the WebRTC one, sometimes, both, independently of having the application open or recently open. The execution of the command below was made without having open hovering the icon or clicking on it since my computer started.

PS C:\Users\xxx> powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume3\Users\xxx\AppData\Local\Programs\homeassistant-desktop\Home Assistant Desktop.exe
Video Wake Lock

SYSTEM:
None.

AWAYMODE:
None.

EXECUTION:
[PROCESS] \Device\HarddiskVolume3\Users\xxx\AppData\Local\Programs\homeassistant-desktop\Home Assistant Desktop.exe
WebRTC has active PeerConnections

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

Is it possible to avoid this?