Live data from Hacker News

Making a Linux home server sleep on idle and wake on demand – the simple way

dgross.ca

161–170 of 244 posts

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#161

this is the kind of thing you spend so much time setting up and then it just stops working weeks or months later. i would never attempt to do something like this without automation. talk about a maintenance nightmare as the underlying system changes.

I agree. WoL is not very reliable in the first place, and adding ARP spoofing into the mix just makes it even more unreliable.

Would have made more sense to use the Pi as a gateway and to turn the PC on using the power button.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#162
post #33

This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. I commend the author for their perseverance and the writeup - rabbit hole writeups are their own form of entertainment. That alone was worth it. I could never run anything that looks like such a conceptual pain the butt. A pain to maintain and troubleshoo…

> This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem.

Absolutely have felt the same often, in the past. Good news! There's ChatGPT now!

It's so much quicker than google for figuring out approaches; it's great for explaining concepts and "how to do x with tech". And it's great at writing the scripts for you too. I set up a prometheus/grafana dashboard with scripts for various temperatures from various APIs with its help.

Not trying to shill, but just sharing that this type of project is something that's a lot more feasible to implement in limited timeframes than it used to be. (and get the satisfaction of bringing the idea to fruition)

But I reckon I'll always want content like this that covers the journey of uncovering various edge-cases, too...

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#163
post #33

This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. I commend the author for their perseverance and the writeup - rabbit hole writeups are their own form of entertainment. That alone was worth it. I could never run anything that looks like such a conceptual pain the butt. A pain to maintain and troubleshoo…

That's what I was thinking too. My home server consumes like 15 W and is silent (and saturates gigabit). If you get a rack mounted server made for data centers and stick it in a closet so you can't hear it then yes, i guess this approach makes sense.

> and stick it in a closet

went down that route years and years ago and... it heats up the closet.

Actually, (though not a server) I remember one place I lived, I just put my monitor, keyboard and mouse in the bedroom at a nice desk. Then I ran the cables through the wall to the computer in the next room where it could be loud and cool. (quiet, fast, cool: pick two)

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#164
post #33

This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. I commend the author for their perseverance and the writeup - rabbit hole writeups are their own form of entertainment. That alone was worth it. I could never run anything that looks like such a conceptual pain the butt. A pain to maintain and troubleshoo…

> This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. Absolutely have felt the same often, in the past. Good news! There's ChatGPT now! It's so much quicker than google for figuring out approaches; it's great for explaining concepts and "how to do x with tech". And it's great at writing the scripts for you…

So far my experience has been the opposite with ChapGPT FWIW. Overall it has cost me more time sending me down rabbit holes that it totally made up, but said with absolute confidence.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#167
post #56
post #33

This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. I commend the author for their perseverance and the writeup - rabbit hole writeups are their own form of entertainment. That alone was worth it. I could never run anything that looks like such a conceptual pain the butt. A pain to maintain and troubleshoo…

Ideally I would like the "wake-up / fake on" infrastructure to be a feature of my wifi router.

I wonder if you could build this as a plugin for opnsense.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#168
> I even looked at the datasheet for my network hardware, which lists ARP Offload as a feature on the front page.

>The only problem? No Linux support.

Wouldn't it have been simpler to buy a network card with linux ARP offload support? Or are there none?

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#169

This feels like the sort of functionality that ought to just work now. Its a clearly useful thing for PCs all over the planet and it would be nice if they just went to sleep almost completely when idle and woke up on network or USB/PS2 input. The power savings would be enormous. Yet today I still have issues with power saving features, performance is lowered by having power saving on instead of flat out and various t…

The main problem is defining what it means to be idle. Suppose you have some browser tabs open, so there is some javascript running to switch out the ads on the page every few seconds. Is that "idle"? There's CPU and network activity. Suppose there is an open ssh connection to a server. It sends keepalives because the client is remote and behind a NAT, but there is no "real" activity. Should the server go to sleep? I…

I think Chrome added something like this recently. It "hibernates" the tabs, but you can opt out. The only downside is that I think it loses the tabs' state.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#170
post #128

Earlier quoted context omitted.

Then how about an N95/N100 (recent Celeron successor) mini PC, like the ones from Beelink? They don’t draw that much power, but are 2-3x faster than a Raspi, have HW supported video de/encoding and can even run Windows if you needed that.

"that much power" is pretty subjective, is it 2x or 10x a pi? Might be a turnoff for some.

The N100 has a TDP of 6W. I haven't measured power draw of the whole system yet though, I imagine that the mainboard will pull another couple watts at least.

It shines especially in scenarios where the Pi is just a tad too slow. E.g. you can't live transcode 4k videos on a Pi, while the N100 has latest UHD graphics and therefore ships with a decent HW-accelerated H265 en/decoder.

Post reply on HN