Making a Linux home server sleep on idle and wake on demand – the simple way
dgross.ca
dgross.ca
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 troubleshoot to boot.
Especially since the setup requires a Raspberry Pi to run permanently. A Raspberry Pi that itself would work just as fine as the Time Machine server the author seems to need on demand?
You could also use the RPi as a stepping stone which syncs it's files to the 'real' backup server which is on a daily/weekly timer instead of on-demand setup.
I'm using this concept for the problem that I want to collect metrics all day long, but not have a power hungry server running 24/7. So my RPi collects all metrics and streams then directly to my server for me to view realtime. But whenever the server is unavailable (on schedule or for maintenance) the RPi just buffers the metrics until the server is available again.
Also worth considering is just not using a single server for a single purpose but just cramming it full with utility to justify the power costs.
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.
By server i mean multiple network ports and storage ports, space in the case for several spinny discs in addition to the ssds etc.
I doubt any NUC is good for a server by my definition.
The problem is that a lot of the commercial products are woefully underspecc'ed for the price and you outgrow them quickly. Spinning disks also eat a lot of power, relatively speaking, so they kind of eat into the "low power" usecase.
Rather roll my own Linux thank you.
> Some of them even have decent networking options.
I think few of them have multiple ethernet ports. Plus there's the matter of how much cpu the built in ethernet eats.
Most modern NAS have that option. It just doesn’t make that much sense since that would get rid of the (in some cases really good) DSM.
I agree I'd much rather roll my own system (and that's what I did) and I would personally never buy one of those, but it's simply not right to say there are no options available if you want a low power server off the shelf. Some of them are even decent if you wanna pay for it.
https://forums.servethehome.com/index.php?threads/topton-nas...
There is a newer board with a J6413/6412 that could also be a candidate if don’t need quite as much processing power.
Reports are that servers with this run under 10W at idle.
Nothing in this article supports this statement. It just says "high power consumption" without measuring, and declares victory without measuring the power saved. The fact is that power scaling has almost erased the difference between "suspended" and just "idle", to such an extent that there might not even be a meaningful difference, or any measurable difference.
My NUC 12 Pro is drawing, at the wall, 2.7W, as best as I can measure. The SoC reports drawing below 200mW. This server is on. The way to get low power states on these is to just make sure your Linux is up to the task and your BIOS works correctly, which is one of the reasons to choose a NUC. The first-party firmware works!
Another important thing for low-power server operation is to either use wifi, or make sure your ethernet is configured correctly for low-power operation. Unless you fix it, gigabit ethernet by default will propagate the link state all the way down to a high power state on the CPU. The NIC will say that it has tight latency requirements because the link is active, and it will configure the PCIe bus to avoid PCI link power management, and it will tell the CPU that it can't go below PC6. To avoid this you have to configure your NIC to ignore link latency requirements. Just unplugging the ethernet is the easier path, and it's faster than gigabit these days.
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.
I eventually gave up on the NAS and now backup to external drives at home.
This site has excellent articles on Time Machine - scroll down to Time Machine Problems: https://eclecticlight.co/mac-troubleshooting-summary/
How about QNAP? I happen to have one gathering dust, if you can reliably Time Machine to it i'd plug it in.
The previous HFS+ version relied on directory hardlinks that were notoriously buggy and easy to corrupt. The difference computation also required basically recursively walking the entire tree and comparing the directory change times, with each lookup requiring a network round-trip.
I would have an ESP32 impersonate the MAC address of the server passively (ie. only in the Wi-Fi association), then “push the wake button” if it found traffic that is allowed to wake the server. A wake-up firewall, if you will.
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.
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)
Ended up physically removing a CPU because the noise and heat was... not... worth... it.
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...
A key caveat in much of what I'm doing, is I'm implementing things I previously did for other projects in the past 15 years... so I'm using old technology, know the terminology, and can troubleshoot 90% correct stuff that chatGPT gives me.
I haven't done as much "I have no idea where to start" stuff.
This can be a bit of a problem since you can’t ask for what you don’t know, so starting broad by having it explain the general concepts to you, and then slowly getting more specific with direct pointed questions had the best outcomes.
There isn't much info on the internet about it. Of the info that exists most is inconsistent, outdated, and/or wrong. The specific instructions need to depend on what's supported by the exact model number of your network card. You're dealing with hardware, so there's a chance of breaking things permanently. Close has zero value, the solution needs to be exactly right. Close but incorrect solutions are hard to debug.
Not sure any of it is going to brick hardware, but I haven't played with setting flags with ethtool. I've messed with Wake-on-Lan stuff in the past, as well as "prevent device from randomly waking from sleep" issues, too (on Windows, though).
I do have the advantage of a lot of past experience with Atmegas then RPis, so know a lot of the common sense hardware considerations... and a lot of troubleshooting. For me getting 90% correct with ChatGPT, and building up incrementally, has been an improvement on doing it all myself with google.
I might take an attempt at asking chatGPT how to do what the author did. Could be informative, even if just introspective realizations like, "oh, this is a question I asked in a good way due to my existing knowledge."
I really love people who can show courage & interest. I feel like computing has decayed into vapid consumerism. Products no longer even try to be semi-technical. There's a whole culture built around telling & selling ourselves the idea that computers are hard & difficult.
All it takes is one person with a good blog post to demystify & make accessible. You are smart enough. You can be that person. You can Augment Human Intellect by talking through it.
A Raspberry Pi has one big problem: no SATA ports.
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, who lives in another country, 's LAN. The uptime is more than a year.
One is routing (well, doing SNAT really) and firewalling between two non routable LANs. I set up the thing once and it's so reliable there's neither a screen nor a monitor hooked to it: just the power adapter and two ethernet cables (including one in a USB-to-ethernet adapter).
Another one is running unbound. Same: no monitor, no keyboard, no nothing. The power adapter and one ethernet cable. Simple. Not much can go wrong. No moving parts. It's happily null routing hundreds of thousands of crappy domain names 24/7.
I've got another one in a vintage arcade cab with a Pi2JAMMA adapter. In years it never failed to boot once. As we the others, just in case, I still have a "dd" of the entire SD card. Should something happen I'd just dd the image to a new SD card.
The shortage of RPi is apparently due to companies snapping them all for industrial uses.
I haven't heard of many people complaining "my RPi died overnight" (unlike, say, the Apple M1 laptop's screens).
They're incredibly reliable pieces of equipment for their gentle price. In case something goes wrong on one of mine, I just have a dump of the entire SD card.
I don't disagree that they may be a pain in the butt to set up, just like any server. But once setup, they don't move under your feet so the maintenance is really minimal.
I hate that there's a shortage of Pi but I'm not sure that criticizing them as "non reliable" is a criticism made in good faith.
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.
Yet today I still have issues with power saving features, performance is lowered by having power saving on instead of flat out and various things don't work like Keepass looses connection to my browser for my passwords and one of the USB devices that came on the motherboard crashes the entire computer on some power transitions. Its taking an awful long time for power saving features to mature.
I would love to have this for my NAS/server, it has a lot of performance for when its needed but its also idle a lot. This is not the way.
This is only because the vast majority of the population agrees that it’s a reasonable tradeoff to not bother with all the digital privacy and security stuff beyond what the defaults are and just go on with their lives. The reason behind this is that almost no one is significantly negatively affected by not being vigilant and self-hosting everything. The downside is that things like PRISM can exist and nation-states and any sufficiently powerful or skillful interested party can and do far more easily target, surveil and harm any individual they want. Again, those individuals are not your average Joe so the public doesn’t care. As long as you don’t leave the herd and stay in line, you’re safe. Personally, I didn’t give any f… about privacy until I felt there’s a good possibility US agencies can target me, due to things I would start to talk about online. Those things were not illegal neither in US nor in my country, just different ideologies from the status quo of modernity, but I knew for a fact people have been (illegally) arrested by US agencies before due to voicing similar things.[0]
[0]: https://web.archive.org/web/20221203231121/https://muslimske...
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?
It's entirely possible to be too aggressive. Samsung is proving this. They've disable "unused" apps by default. But "unused" just means you haven't opened it in a while, not that you e.g. don't have a reminder set in it to give you an alert for something which is happening in six months.
Conversely, I wish web browsers were more aggressive about denying background tabs any use of the CPU whatsoever by default, and then allowing the user to make exceptions in the rare case where that's needed.
But in general the way to do this on the hardware side is per-component, and that's largely already happening. Modern CPUs and other devices at idle shut down most of the silicon and use hardly any power. I've seen Core i7 desktops use 6 watts at idle. In that case you hardly even need suspend, what you really need is for the hardware makers to find what's using the last 6 watts and get it down below 1.
Conversely, I've seen server hardware that uses over 10 watts when it's "off".
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.
However, I dim the screen to black when I go to sleep, since it's the only component that can't really "idle" - it's consuming power as long as it's displaying pixels, and thus it would also be the first component to die from overuse even while "idling."
caffeinate -d
I had to stop using it for some reason--it wasn't getting updates, or newer WiFi cards weren't working well with it, something--and everything I've used since has been disappointing. Even at the price point of the AirPort, they all have various issues. I wish this technology was a done thing.
https://medium.com/junior-dev/how-to-re-purpose-your-old-and...
The pixel 6 and 7 have full KVM capabilities tho: https://www.patreon.com/posts/74333551
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 to 25W.
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.
Did you use a regular desktop power supply? PC power supplies can consume 10-15W or more at idle. To build a low power system you need to find a good low power, high efficiency power supply.
For 10 years my home server used a Corsair VS350; it was fantastic, and very efficient at low power draw. Recently the fan failed. The PSU seems discontinued. The _fan_ seems discontinued. I'm going to try replacing the fan but I don't know much about electronics. As a temporary measure, I got a regular "gaming PC" PSU and it has 10% more power draw, it's not efficient at all.
I've been looking for a replacement PSU, and I can only really find very high power ones - minimum about 550W - for reasonable prices. While you can run a low wattage PC on such PSUs, none of them make very much in the way of efficiency promises; only the highest certification, 80 Plus Titanium, makes efficiency promises for 10% load, e.g. it'll be 90% efficient for a 55W load on a 550W supply. Lower certifications only promise to be e.g. 80% efficient for a 110W load on a 550W supply, and make no promises at all about a 55W or 30W load.
So, how does one buy a good low power, high efficiency PSU, without it costing a fortune?
Just in case: opening PSUs is dangerous without precautions. The capacitors may retain enough charge to kill.
Besides the immediate risk to yourself, a PSU can also pose a fire hazard during operation, e.g. if improperly cooled.
My server at home I actually use a 2.5" drive for the torrent scratch disk since I don't really need speed there I just need something that is always spun up with a moderate amount of space that doesn't use much power.
Does such a system exist?
There isn’t much market demand for an extremely low power chip with excessive PCIe IO and a ton of RAM because most applications with high RAM and IO requirements are going to be very power intensive.
It’s already possible to build an Intel system with plenty of RAM and IO where the CPU doesn’t take much power.
For building a high capacity NAS you don’t need the throughput of PCIe for all of your drives. Cheap SATA SSDs can easily saturate your network link when used in parallel.
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
Cpu-Power point per watt is what you're after.
And then, electricty cost per watt-point.
8th gen intel and above cpus are quite perfect for this, they often have hyperthreading and vPRO built into an enterprise/military grade box for hundreds and have near perfect linux support out of the box, whether it's Lenovo, HP, Dell, etc.
* According to the UPS.
Not that it matters. There's enough text to figure out what's going on in the first place and it would not help me much in any case.
I have a file server running of an ancient server motherboard from another age. (Supermicro X8SIL w/X3460 and 16GB ECC RAM) It uses just about 95W idle and bumps to about 150W when the drives (5 HDDs) are being scrubbed. I tried suspending the server and power dropped to about 75W - not a huge saving.
Another concern is drive longevity. Starting and stopping repeatedly during the day is a lot harder on them than running continuously and could lead to premature drive failure. I could explore this if my server were SSD based but it is not.
I clicked the light mode on the website and then back to dark mode and it was fixed. So their website is reading your theme and adjusting the background correctly but fails to adjust the test and diagrams.
I've just pushed a workaround that appears to have fixed it.
This doesn’t sound like it’s actually suspending. Or it may have left the drives spinning. Server gear usually isn’t optimized for actually sleeping. Workstation boards are much more likely to work.
The machine without most of the drives and 32GB RAM cost me about 250$ used.
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.
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
Port 1234
IdentityFile ~/.ssh/raspberry-pi-key
LocalForward 3389 my-pc.local:3389
SessionType default
RemoteCommand wakeonlan -i 192.168.178.255 11:22:33:44:55:66; cat
Each time the RDP port is forwarded, the wakeonlan command is run on the Raspberry Pi. The 'cat' at the end keeps the command from exiting so that the RDP port keeps being forwarded. (I also configured the NOPASSWD option for wakeonlan in /etc/sudoers so that no root privileges are needed to run it.) 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.I wish more people would care about IPv6.
With IPv4 you need an addres, a gateway, netmasks, DNS.
On v6, as long as you have a working router sending RADV packets, clients will self-configure via SLAAC. Granted, same with IPv4 and DHCP.
If you don't have a router, most things should work thanks to link-local+mDNS.
You can easily pop a second router on the network to bridge two LANs, no need to reconfigure the DHCP. Gateways self-advertise, etc.
The point I'm trying to make is that most people trying toconfigure their IPv4 network have a functional IPv6 network the moment they put the cables in (on Linuxes es at least, not sure about other platforms).
NAT breaks TCP, but at least with consumer NAT you're in control of the timeouts on your router. With CGNAT you're at the mercy of an ISP that likely optimizes for HTTP and has low timeouts that you can't control.
Kind of related to the OP, I spent a decent amount of time trying to have my SSH sessions survive a sleep on Windows. With keepalive disabled, proper Wi-Fi adapter sleep behavior and long enough DHCP leases, I was able to put my PC to sleep and come back the next day and still have my sessions active on resume. Unfortunately it wasn't too practical to disable keepalive as sessions that really do crash never get cleaned up.
I went down the rabbit hole recently, switching my network to IPv6 primary with IPv4 as the fallback. The ultimate test was disabling IPv4 for a weekend to see what, if anything, broke.
I had set up DNS64, NAT64 and 464XLAT. The only weirdness is how Windows clients handle IPv6 literals in UNC paths, which is super ugly, and how some applications (like Discord calls) will actually embed IPv4 literals. Discord apparently does that for the relay servers for calls.
Those things — and the rare website not supporting it - aside, I could actually be IPv6 only. I have IPv4 enabled as a fallback now, but it’s no longer primary on my network.
I'm not sure if windows works the same way though...
(Edit: Looks like windows can do this, but it only configures it for WWAN interfaces, go figure: https://techcommunity.microsoft.com/t5/windows-os-platform/c...)
I appreciate my son being patient on that one, but he appreciated how seriously I dug into everything. Again, we have IPv4 enabled again as fallback, but the family agreed for an IPv6-only weekend as a test, and that was the only thing (outside of one website) that failed.
Everything else worked perfectly, including tons of legacy devices and software, some of which had no concept of IPv6.
For 464XLAT on clients, phones are actually the leaders here. It’s worked perfectly on at least iOS (and I assume Android) for a LONG time because of its built-in automatic tunneling. Mac OS had some recent improvements in Ventura to make things easier. Windows absolutely has some quirks, the biggest being IPv6 literals in UNC paths ending up using a domain Microsoft doesn’t actually own - a potential huge future attack vector.
I think that is the reason why many aren't enthusiastic about it.
Over 99.999% of traffic through my home network is IPv6 now. The tiny remainder that has to use IPv4 does, without issue. 5 months on, and nary a complaint. Just works.
The world is ready for IPv6 as your primary, with IPv4 as the fallback.
... and more.
and lots of options with varies level of support. Too many switch and flags to fiddle with.
Someone in IEEE need to publish a Current Best Pratice list and deprecate all other options.
I often power it on and off 1-2 times a day, and the drives are set to spin down when not in use. The SMART data for these drives shows approximately 37,000 power on hours and 17,000 start/stop cycles. That's about 4 years 3 months of actual power on time, and about 3 power cycles per year over the past 16 years.
The spec sheet says these drives use 8W idle. So:
192 months - 51 months = 141 months of non-use
141 months * 0.730 kilohours / month = 102.93 kilohours
102.93 kilohours * 32 watts = 3293.76 kwh
Assuming 15 cents per kwh, that comes to $494 saved by shutting the drives down over the past 16 years. And I paid $232 total for the drives back in 2007.
Obviously YMMV, just thought it would be fun to calculate :)
If you're using electric resistance heat, then I suppose a running computer is kind of like processing power plus "free" heat :)
My school physics tells me that nearly everything you do with electricity at home will heat your home. Doesn't matter whether it's the baking oven, the computer or the fridge. So if you heat using electricity and live in cold climate saving energy for computers or household appliances just moves the same consumption to heating.
The big exception is heating water. That energy is typically lost to the sewer.
As long as you pay the same electricity price for your computer as for your heating, it does not make a differencd whether that's 7 or 50 cent or the 15 you estimated.
What is your spin-down time? I use the following on my server's fstab:
UUID="abcd" /data btrfs defaults,noauto,compress=zstd,x-systemd.automount,x-systemd.mount-timeout=1min,x-systemd.idle-timeout=30minI have the spin down timeout set to 20 minutes. But this is a desktop PC with intermittent usage (and different usage patterns over the years). They used to be in a RAID1+0 but now they're JBOD and I use them as scratch drives for random stuff.
Would a static mapping of the ARP work? I'd want the server to WOL and work with timemachine without external dependancies.
Related discussion 14 days ago: https://news.ycombinator.com/item?id=35447094
Toggling dark mode to light mode to dark mode on the site's built in control "fixes" it.
I use MetalLB locally, and it does exactly this for its layer-2 mode: https://metallb.universe.tf/concepts/layer2/
Makes for a great little load-balancer setup on bare metal k8s. I have to lose a LOT of machines all at once for anything to go down and stay down, and my router configs use a known ipv4 address for everything, without having to care at all about which machine is actually handling it.
With this ARP stand-in, it provides the server's MAC to the client so subsequent traffic to the server doesn't need to pass through the Pi.
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.
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".
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
Thanks for that information.
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 Xiaomi Mi Notebook...
Yeah right. Suspend and resume is still buggy as hell. Power management in general in Linux is still awful after all these years.
Most PC are delivered with Windows, and even though Linux works on them, it's unlikely the PC were designed with suspend stability as criteria.
For years I use suspend on my laptop with latest Debian, and it's very difficult to have an uptime higher than 15 days.
Every now and then, the logging in freezes to death on wake-up and requires hard power off.
Nobody is paying for Linux on average PC hardware, that's why 20 year old bugs are not fixed.
No.
I have an old Dell laptop that still doesn't power off when asked from Ubuntu Desktop. Always reboots instead.
Over the last 5 years, I had about 4 laptops that I ran Linux on. Not a single one was able to survive this:
- Do some work on it - Close the lid - Drive somewhere else - Resume work
At best, the laptop would freeze and require a hard reset (extra annoying on Dell XPS for some reason). At worst, it will be completely draining of power. All of my linux-loving colleges had the same issues. Windows worked just fine on those laptops, btw.
If you're curious, we've advanced beyond simple Suspend-to-RAM in 2012 when haswell was released. Out of the 3 major OS that used on desktop, only linux doesn't support those features: https://www.anandtech.com/show/6355/intels-haswell-architect...
I rarely have issues with S3 on my linux/windows desktop, though.
Got the idea from this youtuber[1], he has some nice ideas on setting up a home server.
I've got a USFF PC with 2 external HDDs as NAS, and raspberry pi to keep always on stuff. I used to keep the PC up most of the day, and get it to sleep on schedule during night with `rtcwake`, and it was pretty reliable.
I've removed the scheduled sleep from the PC, as I prefer backups to be done at night, and my "minilab" of USFF PC with SSD & 2 external HDDs, rpi 4 with SSD and a 1Gb switch uses 18W idle, according to cheap power mater.
USFF PC is ThinkCentre tiny m93p with 2-core 4th-gen i5, and I guess newer models should fare better with idle power use.
But it's a hit or miss with consumer external HDDs - before that, I used a single external HDD for backups at a time (100-200GB writes a week) and I lost data from 2 cheap external HDDs over span of 3 years.
Match host desktop.local exec /bla/bla/send-wol
I'm also doing full shutdowns instead of sleeping. The difference is only about ten seconds for a CI job. If the power draw during sleep turns out to be negligible, I might switch to that at some point but first, there are bigger bottlenecks to kill (like Hydra still running expensive evaluations on the potato).The next time we moved, I couldn't be bothered to set all this up again. Now we just use an old laptop and browser for streaming and a bluetooth keyboard with pointing device for "remote" control. It idles at low enough power to run 24/7 and not care, but we can also just open/close the lid as if it is a sleep switch for the media function.
Assume the home network is using 10.0.x addresses.
I wonder if it would be useful to put the server on 10.1.x, add a virtual ethernet interface to the RPi that is also on 10.1.x, and configure the RPi to route between 10.0.x and 10.1.x. Configure the RPi to drop any extraneous packets directed to 10.1.x from 10.0.x.
On the Mac "route add -net 10.1.0.0/16 Rpi" and add a name and the server's IP to /etc/hosts.
With that approach you might also make it so the RPi runs a script whenever something tried to make a TCP connection to the server, and that script could deal with telling the server to wake. That way you can choose a wake method for the server without having to worry about whether or not other things on the network might accidentally trigger it.
The diagrams in the article are just gorgeous, can you share the drawing tools being used here?
[1] Shortest Path Bridging Architecture guide:
https://www.al-enterprise.com/-/media/assets/internet/docume...
> First, a bit about my hardware, as this solution is somewhat hardware-dependent: HP ProDesk 600 G3 SFF
I seriously doubt any of this can be gotten to work on a Pi in a way that actually reduces power usage in any notable way. Hell the Pi 4 uses almost full idle current when completely powered off unless you turn off just about everything that would make it possible to wake up again without a full power cycle. And even then the draw remains significant.
but i do agree with the others in this thread, it's quite a hassle to keep this setup working as intended.
I'd advise against wherever possible, consider investing into an efficient PC:
My current home server thing runs at only 22W while idle and costed me (including storage and networking) about 150eur.
But if it's done for the fun of it, I have nothing against it.
I mean, I even recently purchased an old refurbished i5 enterprise mini PC that consumes about 5W in idle mode, not even standby.
It makes sense as it is leveraging laptop components inside.
I didn't know there was more than one type of WOL packet?
You can configure it to wake up if it sees any packet (what he did). The problem is networks are rarely completely silent and your machine will just wake up randomly.
Which is why they invented "MagicPacket(tm)" which is just any old packet that happens to contain a specific repeated byte pattern. The network card will wake up on any packet that happens to contain that pattern (which shouldn't happen randomly).
I don't know why he didn't use MagicPacket, even though he mentioned the problem it solves.
Home labbing can be fun and a good way to learn, but if you are just trying to back up your files you cannot beat the economies of scale and reliability of cloud providers.
Is there a way we will have mass-produced personal cloud devices that use hypervisors with a low-power consumption control plane and use standard APIs and Terraform
i would never attempt to do something like this without automation. talk about a maintenance nightmare as the underlying system changes.
Would have made more sense to use the Pi as a gateway and to turn the PC on using the power button.
>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?
You've lost me here
[0] solar.lowtechmagazine.com
[1] solar.leo32345.com
[2] louwrentius.com
With help of Bryan George Steil made me believe that illuminati is real, when you come across wrong person’s you will think that life is not real but when you are with the real one you will experience the goodness of your life, Mr Bryan George Steil has made me discover my purpose of life. Welcome to the great brotherhood of Illuminati and everyone in other Countries can join the Illuminati brotherhood to get rich and famous, Are you a Business man/woman, retirement pensioner, musical artist, Actor, actress, student, footballer Pastor, pianist, engineer, scientist, lawyer, Politician, Model, Music Teacher, Photographer, Musician, Doctor, fashion artist, pilot, Swimmer, social media influencerS, philanthropist, filmmaker, podcast host, producer, tv host, comedian, Chief Executive Officer (CEO) etc. Do you want to be rich whatever occupation you do, you want to be rich, powerful and famous in life. Illuminati can grant all your heart desires, Illuminati will make you achieve all your dreams to become rich and protected all the days of your life. BENEFIT GIVEN TO A NEW MEMBER, a brand new dream car valued at $200,000.00 USD a dream house to be built in any country of your own choice one month holiday (fully paid) to your dream tourist destination Countries. V I P treatment in all airports in the world is a total lifestyle change, a membership benefit funds $1,500,0000 USD to start a profitable business, YOUR FINANCIAL DIFFICULTIES WILL BROUGHT TO AN END. WE SUPPORT YOU BOTH FINANCIALLY AND PHYSICALLY SPIRITUALLY TO ENSURE YOU LIVE A COMFORTABLE LIFE. Email: illuminatisecretauthorities@gmail.com Note: There aren't any Human sacrifices and no bloody involvement.
The Club of the Rich and Famous; the world oldest and largest fraternity. We are one Family under one father who is the Supreme Being. In Illuminati we believe that we were born in paradise and no member should struggle in this world. Hence all our new members are given Money Rewards once they join in order to upgrade their lifestyle.; interested viewers should Get instant initiated to the Illuminati Brotherhood and receive a membership profit a sum of $1,500,000.00
After Illuminati membership profit funds a sum of $1,500,000.00 USD was given to me to start a profitable business, I now earn a daily profit of $50,000 USD for just inviting new customers to The Club of the Rich and Famous and being part of this life changing opportunity.
Invite customers Get reward 100% guaranteed and legitimacy