Open connor4312 opened 7 months ago
FYI: This issue also affects Luban version 4.12.0 running on MacOS.
I recently investigated why my display doesn't sleep and found that the exact same thing happens on Linux builds as well. I assumed it to be a "feature" trying to prevent the whole machine from sleeping during prints. A configurable option would be nice, so this could be turned off for users who rather configure their computer's power management to suit their needs.
π bug report
Affected Version(s)
The issue is caused by version 4.11.0 ### Is this a regression? (optional) Unknown ### To Reproduce Steps to reproduce the behavior: 1. Be on Windows 2. Open Luban. It doesn't matter whether it's in the foreground or minimized 3. In an administrative powershell, run `powercfg /requests` 4. See that Luban is keeping the display on π ``` PS C:\WINDOWS\system32> powercfg /requests DISPLAY: [PROCESS] \Device\HarddiskVolume3\Program Files\Snapmaker Luban\Snapmaker Luban.exe Electron ``` Expected behavior Luban should not keep the screen on, especially when it's not in the foreground ## π Your Environment **Platform:**