Live data from Hacker News

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

dgross.ca

61–70 of 244 posts

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

#61
So, fun story. I've got an "AI" server which has three P40s and a M40 in it. I'm doing my own version of "off while idle".

I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on.

As a result I just set up home assistant with a power toggle and when I want the server off or on I can start it up by restoring the power.

Way more brute force than this guy's solution, but hey, it works.

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

#62
post #3

Another option, if your needs are relatively modest, is to choose a low power mini PC. The one I chose idles at around 5W under Linux before any tweaking. It is based on the Intel N5105. I have a few 2.5” external HDDs attached for backup which are configured to sleep after a short time.

I feel like there's a lot of room in the market for a chip that sips power but has a billion PCIE lanes and RAM.

Does such a system exist?

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

#63
This reminds me of back when Apple sold WiFi access points (they were high-quality, but a pain to administer since they required running a Windows-only or a MacOS-only executable). I tried running arpwatch for a while on a network which had one of these, and gave up, since the MAC address for any Apple machine on the network was constantly bouncing between the real machine and the access point. Apparently, whenever an Apple desktop went to sleep, that WiFi access point proxied ARP and mDNS requests for it, much like what's described on this post (but it did that by default, with no configuration required to enable it).

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

#64
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…

Meh, I struggled to get my pi to work as a time machine server. It would work for a few weeks and then just stop working and I would have to start the backup from scratch previous backups becoming unusable.

In the end I just plugged an external hard disk into the mac.

I have had similar issues in the past even with such simple things as SSH to a Mac. It would be easy to blame the pi or Linux, but as far as I can tell, Apple just does not play nicely with anything not Apple. It's just that little bit different. I have no such problems interfacing Linux and the pi with anything else.

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

#65
post #3

Another option, if your needs are relatively modest, is to choose a low power mini PC. The one I chose idles at around 5W under Linux before any tweaking. It is based on the Intel N5105. I have a few 2.5” external HDDs attached for backup which are configured to sleep after a short time.

Low powered pcs are the way to go for self hosting.

Lots of great options that sip power at idle (most of the time)

Desktop grade cpus can be found that max at 35W.

The power per watt of sa

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

#66
post #55
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…

However that requires the disk used for backup storage to also be always on.

I use my pi as a backup server. The disks spin down when not in use.

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

#67
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…

You could run avahi and 'a simple ruby script' on the router instead (ok not most retail routers as stock, but e.g. OpenWRT) and do away with the Pi.

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

#68

So, fun story. I've got an "AI" server which has three P40s and a M40 in it. I'm doing my own version of "off while idle". I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on. As a result I just set up home assistant with a power toggle and when I want the server off or on I can start it up by restoring the power. Way more brute force tha…

> I discovered that if the server gets hard shutdown by killing the power it will automatically start back up when the power turns on.

That's usually a configuration option in the BIOS setup screen, what to do on power loss: "Last state" or "Off", and your server probably has it configured as "Last state".

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

#69
post #20
post #3

Another option, if your needs are relatively modest, is to choose a low power mini PC. The one I chose idles at around 5W under Linux before any tweaking. It is based on the Intel N5105. I have a few 2.5” external HDDs attached for backup which are configured to sleep after a short time.

I'm curious if you have measured power at the well (e.g. smart plug with energy metering or Kill-a-watt.) I just set up a test server with a J1900 (10W TDP.) With 8GB RAM and running from an SSD it uses 25W. Add 4 7200RPM HDDs and it's up to 65W idling. I have another test server based on a Raspberry Pi 4B. The Pi boots from SD card and uses about 5W. Add 2 drives in a USB drive bay and power for the setup is now up…

UPS’ also have this feature and it’s interesting to see the idle vs load wattage.

I like the idea of making compute, storage into appliances if possible locally.

It’s best to use ssds in the machines.

If you want spinning drives put them in a dedicated nas for storage.

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

#70
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…

Nice to know I'm not alone. If I could reclaim time spent on rabbit hole projects that concluded with bail out, I feel I'd have a whole other lifetime. Yet somehow, each new rabbit hole project lures me in.
Post reply on HN