What is Nostr?
lassdas
npub1gmh…94ea
2024-06-25 00:49:13

lassdas on Nostr: I was installing a couple of bitcoin-/lightning nodes on old laptops lately to play ...

I was installing a couple of bitcoin-/lightning nodes on old laptops lately to play around and test stuff.
One of the first things todo is always to disable the slepp/suspend/hibernate modes, which is basically just one command like

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

But what I missed twice now was to also ignore the LidSwitch, which is something you don't really notice until you look at your cpu-load.
So, if you're like me and run nodes like umbrel or start9 (otherwise you probably know what you'r doing) on laptops, check ur logind.conf and uncomment/edit the HandleLidSwitch entries

$ sudo nano /etc/systemd/logind.conf
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

My cpu-load went down from ~80+% to ~30% just doing that, which not only consumes less energy, but also gives me room to install more shit I don't actually need.

Just thought I'd tell ya.

#noderunners #umbrel #start9
Author Public Key
npub1gmhctt2hmjqz8ay2x8h5f8fl3h4fpfcezwqneal3usu3u65qca4s8094ea