How to enable wake on lan such that computer turns on when I try to access IP?

Edit: I've got a mini computer that could wake up the big one.

27 points · 9 comments · view on lemmy.world

9 Comments

koala@programming.dev · 11 pts · 343d (1 reply)

https://dgross.ca/blog/linux-home-server-auto-sleep did the rounds lately.

But you'll need another system to always be on to handle this.

In many cases, you can "fake" this in other means. For example, I had Remmina configured to run a script to send a WOL packet and wait before connecting via remote desktop to a computer.

SpaceNoodle@lemmy.world · 1 pts · 343d

For a while I just had a widget on my phone where I could just tap an icon to send a magic packet to the desired MAC.

LiveLM@lemmy.zip · 3 pts · 342d (4 replies)

Well, you can in theory enable WOL without Magic Packet, but that means any network activity will wake it up, even a random ping, so you might find your PC waking up randomly.

meekah@lemmy.world · 1 pts · 339d (3 replies)

Would that be multicast or broadcast activity? Or unicast?

LiveLM@lemmy.zip · 1 pts · 338d (2 replies)

The Wake-on values define what activity triggers wake up: d (disabled), p (PHY activity), u (unicast activity), m (multicast activity), b (broadcast activity), a (ARP activity), and g (magic packet activity).

Looks like you can choose which one you want

meekah@lemmy.world · 2 pts · 338d (1 reply)

Yeah, I just don't know what those terms mean lol

I was asking which one I need to choose to wake my server io whenever I try sending packets to it

LiveLM@lemmy.zip · 1 pts · 338d

Oh. Sorry I'm not well versed in networking to know either lol.
I'd suggest querying which modes your card supports with the command listed, and enable them all except "g" which is magic packet, then give it a test.

wesker@lemmy.sdf.org · 3 pts · 343d
[ removed ]
utopiah@lemmy.ml · 2 pts · 343d

If your computer boots when plugged in (not only by pushing the power button) it would be feasible via a connected plug, but you'd still need a small computer, e.g HomeAssistant on a RaspberryPi, to convert the HTTP request to ZigBee, or a WiFi plug but I'm not sure which one would handle an HTTP request, if any.

full_throttle@lemmy.world · 1 pts · 342d

You can accomplish this using your router. The router can send the magic package to the computer. You can do this remotely from over the internet and even through a VPN connection to your router (preferred). If your router doesnt support the functionality out-of-the-box, OpenWRT does!