tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.04k stars 255 forks source link

Is it possible to Wake the Computer without WOL? I tried to type on the keyboard, but didn't work #829

Closed wilsonnkwan closed 2 years ago

wilsonnkwan commented 2 years ago

Hi,

My target computer does not support wake on lan for some reason, so I was trying to pass keystrokes into the target system while it is sleeping, it doesn't seem to work. I suspect OTG input is not working when the target computer is asleep. But interestingly, I can wake up the target computer with a physical keyboard or mouse.

Is there anyway that we can wake the computer up while it is asleep other than WOL?

Thank you.

Warmest Regards, Wilson

mtlynch commented 2 years ago

Unfortunately, I don't have a workaround for getting target machines to wake up if they fail to respond to TinyPilot's keystrokes while asleep.

Have you checked your BIOS settings? Usually, if it's not responding to WOL, you can enable it there, but I've seen some motherboards that claim to support WOL and they actually don't (or only certain BIOS revisions do).

jlian commented 2 years ago

There's a kernel patch + small init-usb-gadget driver updates that now fixes this. Works on my TinyPilot CE setup.

wilsonnkwan commented 2 years ago

John, thanks for this but need some pointers, how to patch this? Not really good at manual patching. Any help is deeply appreciated. Thanks

On Fri, Aug 5, 2022 at 12:43 AM John Lian @.***> wrote:

There's a kernel patch https://github.com/raspberrypi/linux/issues/3977#issuecomment-1200368214

— Reply to this email directly, view it on GitHub https://github.com/tiny-pilot/tinypilot/issues/829#issuecomment-1205510550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNOPRB4KBESGZFAARTZJZTVXPXKVANCNFSM5IY3OGRA . You are receiving this because you authored the thread.Message ID: @.***>

jlian commented 2 years ago

I had to learn to patch and compile the Linux kernel for the first time too! It’s different depending on your setup, but I took some notes here https://github.com/jlian/linux-kernel-cross-compile

Links I referenced:

mtlynch commented 2 years ago

@jlian - Thanks so much for taking the time to write up those notes and share those references!

wilsonnkwan commented 2 years ago

@mtlynch , Possible to incorporate in future release? hahahaha Sorry, total noob here, not sure how to compile this after reading the instructions.

mtlynch commented 2 years ago

We'll likely incorporate it if Linux accepts the patch upstream, though it's going to be a while, as it's nontrivial to distribute new kernel patches.

luckman212 commented 5 months ago

In May 2024 is there any progress here? My target system just went to sleep and I can't wake it up via mouse/keyboard... argh

db39 commented 5 months ago

is there any progress here?

It doesn't look like there has been any upstream changes / patches, unfortunately. So this issue still exists.

As a work around, we created a simple mouse jiggler to keep target machines from entering sleep mode. Alternatively, you can edit your target machine's settings to prevent it from entering sleep mode.