Remote button pusher with Raspberry Pi Zero W?

December 9, 2024, 22:31

randolphtheyeen

(Crossposting from the Raspberry Pi forums since it looks like it's going to take long to get a response there) Hi, so I was suggested to try these forums because you'll probably know best My problem is I want to be able to turn my laptop on (it's a Huawei MateBook D 14 KPL-W0X) remotely over any distance, using an internet connection, from my phone (Android, if that's relevant). I've already tried setting up Wake on Wan but my laptop evidently doesn't support it. I know of the existance of gadgets like SwitchBots that are designed to press a button with a mobile app, but I'm very concerned about the security of those and I'm also worried they might not have enough force to push the button all through. So as I said before I was suggested to try here after being told that probably, this is the best solution: - Rasperry Pi Zero W - - Tailscale - - web page hosted by a web server on it [accessible through Tailscale] - - Servo motor [triggerable with the web interface] The reason I'm thinking of a Pi Zero W is because I've seen it recommended quite some times: https://www.reddit.com/r/Tailscale/comm ... lscale_on/ and https://www.reddit.com/r/Tailscale/comm ... t/hzgwl32/. Tailscale, as says the second link, works well on this Pi and Tailscale is needed for the security, and I choose Tailscale specifically because of how quick to set up they say it is. Then the web interface is needed because otherwise, how do I activate the Servo from anywhere? And finally the Servo is needed for actually pressing the button. Now though, I'm totally uninitiated and unfamiliar with all of this stuff as of now and I mainly just need a solution quick, so would it be fine for you to give a concrete "plan of attack" (also including the equipment) so I can get it to work the soonest?

oops.se

What have lead you to the conclusion that it "evidently doesn't support it" And look for "Wake on LAN" or "Wake on WLAN" in the BIOS to confirm that it is or isn't supported.

randolphtheyeen

Oh yes I searched in the BIOS and those options aren't there

randolphtheyeen

That's why I said that

randolphtheyeen

Only "Other Wakeup Source" is there but I think all it does is allow turning the pc on from sleep by hitting any key, not just the power button

randolphtheyeen

(Read this on a reddit comment)

oops.se

If a mouse can wake it up (Other Wakeup Sources) then you could use the "gadget mode" and emulate a mouse and wake the PC.

randolphtheyeen

Gadget mode?

oops.se

Gadget mode is a feature that some Raspberry Pi models supports and in short you can emulate a keyboard or mouse ++ with a Raspberry Pi. https://cdn-learn.adafruit.com/downloads/pdf/turning-your-raspberry-pi-zero-into-a-usb-gadget.pdf