Snapmaker / Luban

An easy-to-use 3-in-1 software tailor-made for Snapmaker machines.
https://snapmaker.com/snapmaker-luban
GNU Affero General Public License v3.0
444 stars 117 forks source link

Bug: Luban prevents the display from turning off #2471

Open connor4312 opened 7 months ago

connor4312 commented 7 months ago

🐞 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:**


  • Operating System: Windows 11
  • Printer: N/A

darienm commented 5 months ago

FYI: This issue also affects Luban version 4.12.0 running on MacOS. cap_3557

APz commented 3 months ago

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.