Live data from Hacker News

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

dgross.ca

101–110 of 244 posts

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

#101
If you're involving an RPi in this, in order to save power, might as well just have the RPi be the main driving force behind everything. Flip a switch to power on the server, command the backup once a custom app on server informs the RPi that server is ready, shutdown the server again by setting the above switch to OFF. This way your server will not even consume those idle watts when waiting for wake packets.

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

#102

Saying Windows has had it since Windows 98 and then, acknowledging that the issue is wake-on-demand is a bit confusing to say the least. Obviously Linux can sleep easily since decades ago. The issue is wake on demand (and I don't know if Windows has that even) Edit: I don't why everyone's having issues. I run Fedora on a cheap Gigabyte G5KD and never had any problems. Never did with either of my thinkpads or my Xiaom…

> Obviously Linux can sleep easily since decades ago. Yeah right. Suspend and resume is still buggy as hell. Power management in general in Linux is still awful after all these years.

This sounds like an isolated and highly specific experience being generalized to an entire operating system.

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

#103
post #81

> Disable IPv6: this approach relies on ARP, which IPv6 doesn't use This makes me kind of sad. Even if it’s just for a private/local usage. IPv6 has the features of ARP built in via “neighborhood discovery protocol” (NDP) with the addition of various security to prevent spoofing.

The OP relies on ARP spoofing, so I don't think NDP would work.

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

#104
post #18

I wonder how many sleep/wake cycles would it take a day to outweigh the TCO decrease of the power bill with the TCO increase of the increased stress/amortization of the hardware, especially HDDs.

Probably they use SSD's, not HDD. So no hardware stress.

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

#105
I just let my computer run all the time. Disable all sleep functionality except monitor sleep. Then it always works when I need it to.

My life is way too short to fool around with stuff like this to save $5 in electricity and have to deal with the inevitiable "won't wake up" or "wakes up in a brain-damaged state" situations.

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

#106

Saying Windows has had it since Windows 98 and then, acknowledging that the issue is wake-on-demand is a bit confusing to say the least. Obviously Linux can sleep easily since decades ago. The issue is wake on demand (and I don't know if Windows has that even) Edit: I don't why everyone's having issues. I run Fedora on a cheap Gigabyte G5KD and never had any problems. Never did with either of my thinkpads or my Xiaom…

Classic "works on my machine". Operating systems are complex beasties. Bugs happen. I have an Asus laptop with Ubuntu 22.04 and it worked fine. Then one day, any time it comes back from sleep, the screen stays black. Can't find and workarounds and probably need to reimage. I have to do this about once a year cause something inevitably borks.

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

#107
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.

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

#108
post #22

> Disable IPv6: this approach relies on ARP, which IPv6 doesn't use I wish more people would care about IPv6.

Seems unlikely. The world has made its peace with NAT, and IPv4 is simpler and therefore easier to understand. IPv6 isn't happening.

The increasing prices of IPv4 address blocks will probably drive adoption of IPv6. The increased complexity will be outweighed by the elimination of scarcity that IPv6 brings. If we are still using IPv4 in 2100 that would be tragic. IPv4 block pricing: https://ipv4marketgroup.com/ipv4-pricing/

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

#109

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…

https://www.home-assistant.io/integrations/wake_on_lan/ and https://www.home-assistant.io/integrations/shell_command/ with `ssh server poweroff` if you want something a bit less risky

measure the power draw from your smart plug when the machine is on & off, then use that to set up https://www.home-assistant.io/integrations/switch.template/ which combines all of this

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

#110

I just let my computer run all the time. Disable all sleep functionality except monitor sleep. Then it always works when I need it to. My life is way too short to fool around with stuff like this to save $5 in electricity and have to deal with the inevitiable "won't wake up" or "wakes up in a brain-damaged state" situations.

I've used Suspend-to-RAM for years on Windows, and it's always worked reliably, rarely needed fooling around with...
Post reply on HN