Live data from Hacker News

Making a Linux home server sleep on idle and wake on demand (2023)

dgross.ca

61–70 of 115 posts

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#61
post #19

Earlier quoted context omitted.

What to do about this? https://forums.developer.nvidia.com/t/phantom-rtx-5090-high-...

I suggest not putting a ridiculous GPU in your backup server.

Not everyone's "home server" is a backup server - some are for AI experiments.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#62
post #6

Earlier quoted context omitted.

I use a Mac Mini. When nothing it up, it draws like 7W!

How do you accurately measure how much current a PC is drawing at any given time? Do you have some kind of measurement device inline with the power cord?

I have it plugged into a IKEA smart plug.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#63
post #16

Earlier quoted context omitted.

Are you a programmer by chance? Some are, and they enjoy it! I know a lot of sysadmins / platform engineer types. A lot of them really enjoy the mix of hardware and software integration challenges.

I don't know any sysadmins who would do this. Task scheduler for Windows or rtcwake for Linux. We try to reduce complexity with existing battle tested tools, not create whatever this is. This is definitely not the easy way.

Ah, you're not a tinkerer!

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#64
post #63

Earlier quoted context omitted.

I don't know any sysadmins who would do this. Task scheduler for Windows or rtcwake for Linux. We try to reduce complexity with existing battle tested tools, not create whatever this is. This is definitely not the easy way.

Ah, you're not a tinkerer!

I definitely am. But this is a very solved problem. It just adds brittleness to the system. Maintenance for this is going to suck. It's going to break in less than a year because you forgot to set a static IP address, or a Python library changes, or the SD card in the PI gets corrupted, or the jack on it fries, or its cheap PSU died and fries the board, etc. Then you're going to have to try to remember how the damn thing works, then figure out what other tiny change somewhere broke something. You should never add more failure points to infra, ever.

I guess everyone has to go through it.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#65
post #63

Earlier quoted context omitted.

Ah, you're not a tinkerer!

I definitely am. But this is a very solved problem. It just adds brittleness to the system. Maintenance for this is going to suck. It's going to break in less than a year because you forgot to set a static IP address, or a Python library changes, or the SD card in the PI gets corrupted, or the jack on it fries, or its cheap PSU died and fries the board, etc. Then you're going to have to try to remember how the damn t…

> I guess everyone has to go through it

Bingo, but some people never stop tinkering - their joy is in avoiding the well trod path.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#66
post #6

Earlier quoted context omitted.

I use a Mac Mini. When nothing it up, it draws like 7W!

How do you accurately measure how much current a PC is drawing at any given time? Do you have some kind of measurement device inline with the power cord?

https://en.wikipedia.org/wiki/Kill_A_Watt

Works good IME, but you have to plug it into the wall first. Sometimes if you plug the appliance in, and then plug the KAW in, it will miscalibrate

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#67

Well done. But note: you can grab an ATX control board, or configure the RPi as a USB Gadget to wake the machine via power button or keyboard.

Note: If you're going to use an SBC _only_ for wake up signals, you might want to look into alternatives for the RPi such as the Radxa RockPi S [1]. My home server, for example, runs continuously at 7W, which beats many RPi models. Of course, a Pi to wake things doesn't need that much power and could be an older model, but even then, you'd still be burning "empty Watts".

Of course, the RockPi doesn't give you any KVM like functionality, though.

[1]: https://wiki.radxa.com/RockpiS

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#68

Well done. But note: you can grab an ATX control board, or configure the RPi as a USB Gadget to wake the machine via power button or keyboard.

Note: If you're going to use an SBC _only_ for wake up signals, you might want to look into alternatives for the RPi such as the Radxa RockPi S [1]. My home server, for example, runs continuously at 7W, which beats many RPi models. Of course, a Pi to wake things doesn't need that much power and could be an older model, but even then, you'd still be burning "empty Watts". Of course, the RockPi doesn't give you any KVM…

Apparently RPi Zero idles at 0.4 W: https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-p...

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#69
Some motherboards disable power to their ethernet port upon sleep and so WoL will not work.

This is particularly common if the NIC is a power hungry 10GbE port.

However, in the particular case I found, the motherboard also disables oower to any usb GigE adapter attached.

The solution I found was to attach a USB hub with (empty) SD slots and integrated GigE port. As SD cards require power to remain mounted, the motherboard did not shutdown power to this adapter and WoL worked.

Re: Making a Linux home server sleep on idle and wake on demand (2023)

#70
post #3

That's what I was thinking too. My home server consumes like 15 W and is silent. 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.

In the UK, every 10W of 24/7 load is ~£25/year (33 USD).

It’s very easy for even the small things to add up.

Post reply on HN