Umbrel installed on a Lilnux laptop. How do I disable sleep when the lid is closed?

Hello, everyone.

I’ve installed my Umbrel fresh on a Linux laptop
It’s working beautifully, but how do I disable sleep when the lid is closed?

I’d like to run this laptop (which is dedicated to Umbrel) 24x7 and don’t want to keep the lid open.
At the moment, the second I close the lid, Umbrel goes to sleep :frowning:

Thanks!

2 Likes

Just adding more info here in case it’s needed:
It’s an HP laptop and when running Ubuntu (where I had Umbrel installed in the past) I was able to disable the “sleep” function when the lid was closed.

Thanks

I’ve had success with following this guide. Make Ubuntu Not Go in Suspend When Laptop Lid is Closed

Me too, I’m using a Dell laptop and Umbrel is installed directly on the disk.

Did you apply those changes to he Umbrel installed directly on disk (aka: not using Ubuntu or any other OS to run Umbrel on top of)?
Thanks

1 Like

This was when I had umbrel 0.5 installed on Ubuntu directly. I have an old laptop i dial into which i used it on.

Checking on my Raspberry Pi 5, I can access the /etc/systemd/logind.conf, and once saved you should be able to disable it too.

I tried to follow the steps, accessing using Nano, but it didn’t work either.

I Did it on an old dell Inspiron 5567 : (after upgrade to v1.1.2)

ssh with terminal app inside umbrel then

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

I don’t think it will survive after an upgrade, Will see…

2 Likes

This one did it!
Thank you!

I used the solution from this YT video that worked:

sudo nano /etc/systemd/logind.conf
Uncomment this line:
#HandleLidSwitch=suspend
And change it to:
HandleLidSwitch=ignore
Save, then do:
sudo service systemd-logind restart

Updated to beta2 (bitcoin node not syncing)

Patch doesn’t survive, had to repatch…;

1 Like