Hello, I have a Minecraft server using balena cloud but when I close my laptop lid it goes offline how do I fix this? I am using an intel NUC image.
Hello @Jetlag welcome to the balena forums!
is the minecraft server running on your laptop?
Yes, this is what I’m using: GitHub - AlexProgrammerDE/balena-minecraft-server: Build a Minecraft Server using a Raspberry Pi 4! Supports common Servers, SCP, RCON and Wifi Connect.
@Jetlag as far as i understand you are running the balena minecraft server on your laptop and then when you close your laptop the minecraft server goes offline. Are you powering off the laptop?
In that case, this would be a normal behaviour, as the server is powered off. In case you are not powering off, you will need to check how did you program the closing of the screen on your operating system (e.g. maybe it’s hybernating).
Could you please tell us more details about what you do to see this error? Thanks
No I don’t touch the power button when I close the lid I have tried this: Suspend - Debian Wiki 3
But it did not work
Hey @jetlag, your laptop probably has some BIOS settings to disable network interfaces and/or go to sleep when the lid is closed. This would be separate from anything balenaOS could control and it would depend entirely on your laptop make and model.
Hello everyone,
While BIOS settings may offer such settings, Ubuntu offers the following option via logind:
HandleLidSwitch=ignore
How could we get this working on Balena? systemD, loginD, all frienDs, no? =]
puc