You are not logged in.
I am running a home NAS, very simple, just a desktop which I use for this purpose.
Now, actually, we don't need to have this box running all the time. I use hyprland with hyprlock, so there's a listener which puts the whole machine to suspend via systemctl after some time of inactivity.
All good so far.
What I haven't figured out is how to wake it on from suspend. And I ideally, it would work by just sending it a http request.
For example, the NAS is running the immich photo management service.
It would be awesome if the machine would be able to wake up after it just receives a http request on the port immich is listening to, so that simply wanting to look at pics, or uploading new ones, would wake the box up.
I have read https://wiki.archlinux.org/title/Power_ … _hibernate and https://wiki.archlinux.org/title/Wake-on-LAN, but so far, what I understood is that it can be woken up via a magic package. Couldn't find a mention of network request.
Can this be done?
I could live myself with setting one device to be sending the wol packet, but frankly for family to get to use the system, they need ease of use...
Another alternative I could think of is to set up some very light http service on a Pi or something, and whenever someone wants to wake up the service, they'd need to go there and click on a button...not ideal but at least something.
Offline
Revisit https://wiki.archlinux.org/title/Wake-o … rk_adapter and see the different conditions.
Whether they work will depend on the specific HW and PHY will most likely cause too many supirous spurious wakeups, your best bet is unicast activity but that might also just mean "unicast WOL only"
Edit: I roll on https://en.wikipedia.org/wiki/Transpose … ernet_meme
Last edited by seth (2024-09-16 07:01:45)
Offline
I have magic and phy enabled right now, but I understand your suggestion, phy might respond to a lot of stuff. Didn't understand the unicast option, indeed I think that could be the best bet. Will try.
Offline
You can use a reverse proxy for this, for example Caddy: https://github.com/dulli/caddy-wol Of course it needs to run it on a separate device like your Pi, but if you have a sufficiently advanced router you might be able to run it on there as well (some support running Docker images)
Offline
How about WOL from your mobile phones.
That's what I use and it works great.
Offline
depends on your hardware and network
for consumer-grade hardware you can assume if at all only a proper magic packet will work which has to be broadcasted by another device in the same network
if you're lucky your router can provide such an option - on mine it's called "wake up when device is accessed" - I'm not sure but my guess is it's implemendet via the firewall listen on forwarded ports and triggers a magic packet
if your router does not have such a feature you can try to to redirect port udp/7 or udp/9 to broadcast - this way a magic packet via udp sent to your public ip would be redirected as broadcast - but last device I used that support that trick was a dumb d-link router and I had to modify the ip ranges somewhat - modern routers block this for security reasons
if that isn't an option it seems you require another device online 24/7
a bit different story could be using server-grade hardware with an in-band ipmi: it can detect http trafic and power up the system - but booting such a system takes time and requires more power - so you could be over what your nas uses when always-on
Online