BUG: Luban 4.15.0 preventing sleep on MacOs

When snapmaker luban is open, it prevents sleep on MacOs - screenshot of activity monitor.
This happens as soon as snapmaker is opened.
I am running MacOS Sequoia 15.3.1
I cannot find any solutions but did find a mention of this back in 4.5.0 Luban V4.5: Known Issues & Corresponding Solutions - #16 by darien but no solution..
Here is a screenshot from activity monitor:

A working solution is presented here:


but doesn’t this make sense, at least if you have a print job running?

Print job technically doesn’t matter if the PC/Mac goes to sleep. Luban transfers the file to the machine to start it, then basically just requests updates every second. It doesn’t actively stream gcode to the snapmaker, it’s actually running the code locally.

1 Like

Depends if connected via wifi or usb cable.

1 Like

It prevents sleep regardless. Even with just the home screen open.
I personally never run any print from my machine, I always transfer to device. So this is just a bug IMHO

Thanks, I’ll taie à look as if I can just have a local build to fix this I’d be fine for a while. Not looked at Lubans build process etc, but will do, appreciate the pointer!

You don’t need a separate build. Just locate and edit the text-based config file mentioned: Locate your Snapmaker Luban.app in the Applications folder, right/ctrl-click and Show Package Contents, navigate to Resources/app/src and edit main.js. I found the “powerId” definition around line 717. Save these notes if you need to modify future versions.

2 Likes

Ah - much easier! Commenting out that line did the trick, thanks again for the help