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
Published at
2024-06-25 00:49:13Event JSON
{
"id": "69d745cb1894812123664892318c9a4be92f6ef1e8c5b34e376c572bdeda3c38",
"pubkey": "46ef85ad57dc8023f48a31ef449d3f8dea90a71913813cf7f1e4391e6a80c76b",
"created_at": 1719276553,
"kind": 1,
"tags": [
[
"t",
"noderunners"
],
[
"t",
"umbrel"
],
[
"t",
"start9"
]
],
"content": "I was installing a couple of bitcoin-/lightning nodes on old laptops lately to play around and test stuff. \nOne of the first things todo is always to disable the slepp/suspend/hibernate modes, which is basically just one command like\n\n$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target\n\nBut 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.\nSo, 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\n\n$ sudo nano /etc/systemd/logind.conf\n[Login]\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\nHandleLidSwitchDocked=ignore\n\nMy 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.\n\nJust thought I'd tell ya.\n\n#noderunners #umbrel #start9",
"sig": "6776a632d63aa401182d5ef498ce245c0df21723d5f1bccdfbf7423b7653f3ea797077b898942eb0971364eb2f88cb8e1dcd9c87fadb10dc87508150bee39ad3"
}