Live data from Hacker News

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

dgross.ca

201–210 of 244 posts

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

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

> Especially since the setup requires a Raspberry Pi to run permanently. Which they'll gladly do no? If (poor quality) SD card corruption is a concern, you can have the RPi mount the SD card read-only or just keep a full backup of the SD card. I've had a RPi 1 power 4 VoIP Cisco phones for years. Zero issue. I've got another one constantly establishing a remote SSH-tunnel so that I can easily troubleshoot my brother,…

I'm not sure OP was necessarily implying that the Pi specifically wasn't suitable for the job -- perhaps just that requiring /any/ other additional computer to achieve this is not without additional administrative overhead and power costs.

It does seems likely that a Pi is going to consume a fair bit less energy than the x86 SFF PC, so it's probably a net gain there, but that admin overhead thing isn't necessarily one to ignore -- it's not entirely set and forget.

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

#202
While it is easy to criticize the approach the author took to solve this particular problem (as others have done here), I must say that I appreciate well organized posts that detail a technology problem and solution. While I may not implement a similar solution, I always manage to learn something from reading them that I'll likely use when solving another problem in the future.

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

#203

Very nice, I didn't know that you could wake computers with unicast packets. For my use case, I run a Raspberry Pi that is on the same local network as my PC. When I connect to the Pi to forward my PC's RDP port to my laptop's loopback interface, the Pi sends a normal magic packet to wake my PC. All that was needed was an entry like this in my laptop's .ssh/config: Host remote-desktop HostName raspberry-pi User pi Po…

There's also the "exec" keyword that lets you run a command in a "Match" block like so: Match host my-pc.local exec "wakeonlan -i 192.168.178.255 11:22:33:44:55:66" This doesn't cover the case when the connecting machine is in another network but it does avoid a hop. Perhaps you could also run another SSH command in the exec condition that connects to the Pi and has it send the WoL packet.

Thanks, this could be useful if I decide to set up a VPN in the future.

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

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

> Especially since the setup requires a Raspberry Pi to run permanently. Which they'll gladly do no? If (poor quality) SD card corruption is a concern, you can have the RPi mount the SD card read-only or just keep a full backup of the SD card. I've had a RPi 1 power 4 VoIP Cisco phones for years. Zero issue. I've got another one constantly establishing a remote SSH-tunnel so that I can easily troubleshoot my brother,…

Man I loved my RPi remote SSH-tunnel for being able to access my home network from anywhere... until my kid needed a Pi for a robot he got for Christmas and I decided to donate mine to the cause :)

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

#205

Earlier quoted context omitted.

This was always attractive to me, how are you running a linux host on the phone or are you just using native android hosted services?

I use a custom firmware with Termux. It's enough for me. https://medium.com/junior-dev/how-to-re-purpose-your-old-and...

That looks good enough for me, thanks!

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

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

If an idling raspberry pi is too power hungry, a microcontroller like an ESP32 could be made to respond to ARPs. $8 for the MCU and a couple of afternoons of noodling. It's not going to run avahi for you though.

Use a beaglebone black. modern rpis use too much power.

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

#208

Earlier quoted context omitted.

I use a custom firmware with Termux. It's enough for me. https://medium.com/junior-dev/how-to-re-purpose-your-old-and...

That looks good enough for me, thanks!

Don't forget to turn on option "Don't turn screen off when charging". Use a less powerful charger to power the smartphone. 5 Watt charger is enough. 2.5 Watt may work too.

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

#209
post #91

Earlier quoted context omitted.

I'm not using any dark theme addons or similar, just the standard prefers-color-scheme, and I have the same problem. So they just didn't account for their website's dark mode when writing the article.

Author here, apologies for the dark mode issue and thanks for flagging it -- looks to be an open bug in theme-ui ( https://github.com/system-ui/theme-ui/issues/1602 ). I've just pushed a workaround that appears to have fixed it.

I wrote it a bit further down, but another solution is to use SVG's with stroke='currentColor' instead. This value uses the inherited text-color and would therefore always work.

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

#210
post #121
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 have an Arduino to wake the Pi.

Or a "smart plug"
Post reply on HN