Lurker News

Comments (279) 64 threads

Earlier comments
bronco210161 reply#
Because of COVID my work on the road has come to a screeching halt. I was always using my iPad with an external keyboard for nearly everything and became really accustomed to having iMessage always a key command away.

Now I work at home at a desktop with Ubuntu. It's a huge disruption to use iMessage now as I have to switch devices/keyboards.
I had the thought of doing almost exactly this with the Ligthning-> HDMI adapter and some form of Bluetooth keyboard emulation. I can't wait to build one of these and start experimenting.

rjeli1 reply#
oh, i wrote software that does this over airplay wifi mirroring and a bluetooth dongle as a mouse. i gave up because I couldn’t convince my phone to take a tablet hid profile for seamless mouse capture. it’s messy but I’ll throw it on github in a bit
bronco210161 reply#
How did you get the AirPlay mirroring working? Is there a library available for that? If I could just do that and use my keyboard's ability to switch bluetooth devices that might be sufficient.
mtlynch13 replies#
Author here. Happy to answer any questions or take any feedback about this post.
pdevine1 reply#
Dude, thanks so much for this. I have a loud machine I’m using for ML stuff and I’ve been reluctant to move it to the basement as I didn’t want to have to run downstairs with a monitor for the odd issue. I also looked at KVMs and was annoyed at the prices. I have a R Pi sitting here I was looking to do a project with. This is perfect!
mtlynch#
Oh, that's great! So glad it was helpful!
simlevesque2 replies#
How would you remotely connect to something like this ? using something like ngrok ?
mtlynch2 replies#
Yeah, I haven't looked into that much because everything is on my local network. ngrok looks like it would work. One of my users is looking into remote.it, which seems like a similar service.
gyrgtyn#
zerotier
jimatremoteit1 reply#
I work for remote.it. If you or your users need any help setting up remote access to the TinyPilot let us know. This looks like a great application. We can make ssh/VNC/http on the Pi available remotely over internet as a free service no problem.

Continue this thread — 1 reply

fock#
or VPN on your router? or just get a VPS and run wireguard.
ghaberek3 replies#
Would a Pi Zero W work for this, or do you need a full-size Pi 4? I would think that with the HDMI dongle doing the hardware MJPEG encoding, a Pi Zero might suffice. It'd be really neat to A) bring the cost down another $30 and B) be able to package everything into a tiny 3D printed case.
mtlynch2 replies#
Thanks for reading!

>Would a Pi Zero W work for this, or do you need a full-size Pi 4?
I tested Key Mime Pi (the keyboard-only version) on the Pi Zero W and it worked great. I haven't tested TinyPilot on the Pi Zero W, but I think it will work. The video encoding is happening in the HDMI dongle, so it doesn't hammer resources much. I don't have a USB to microUSB adaptor on hand, but I'll order one now and see if it works.
>be able to package everything into a tiny 3D printed case.
Yeah, that would be neat! One of the biggest issues I have with TinyPilot's setup right now is that it looks kind of like a bunch of random hobbyist parts stuck together. A 3D printed case would be good and wouldn't have the heat issues that Pi 4 has.[0]
[0] https://www.jeffgeerling.com/blog/2019/best-way-keep-your-co...

cricalix#
You might also be able to use the "standard" radio kit metal boxes - tap some standoffs, carefully drill some holes for wires etc. Dunno which works out better for the world - ordering a pre-fab metal box that you have to do some work on (or perhaps use https://www.frontpanelexpress.com/ to get a customised enclosure), or printing something from plastic. Might depend on production volume, metal used etc.
trm428 replies#
Do you happen to have any idea, whether older RPIs like 1 or 2 could work for this fast enough? Have some of those laying around.

Continue this thread — 8 replies

Deathmax#
I think you might run into a lack of connectivity on the Pi Zero W. Since the only data USB port has to run in device mode, I would assume you can't connect the HDMI capture device.
Nexxxeh1 reply#
The immediate issue would be the Pi Zero W only has one usable (micro)USB port, the other port is Power In only. If you run it for OTG, you can't use it for the dongle.

There would be ways around this though, perhaps using a cheap microcontroller for the USB HID stuff.

ghaberek1 reply#
Yeah I forgot that only one of the USB ports actually does data. I guess you could use a Teensy that interfaces through the GPIO pins and pretends to be the keyboard and mouse.

Continue this thread — 1 reply

wojciii5 replies#
Cool project, but what about power management? What happens if the PC being controlled crashes and does not let you reboot it using keyboard shortcut?

I'm might be damaged by testing and working with embedded development.

swsieber#
If you can plug stuff into it, just use the KVM from a laptop and sit by it.
fanatic2pope#
Plug it into a smart outlet running tasmota.
mtlynch6 replies#
Thanks for reading!

>Cool project, but what about power management? What happens if the PC being controlled crashes and does not let you reboot it using keyboard shortcut?
Yeah, that's one of the limitations. TinyPilot can't control power for the target computer.
I don't know of any way to manage power without connecting the Pi to the target machine's motherboard, but that increases complexity significantly. I'm using this for a homelab, so it's easy for me to walk over and cycle power if that ever comes up, but for this to support more remote scenarios, I'd need to address this.

baq#
hook up a gpio pin to a reset switch jumper somehow?
wojciii#
APC produces (or rebranded) power control modules you can control over Ethernet. They are probably expensive.

There are most likely cheaper products which would work. You should probably implement some kind of power control interface that could be used. Calling a shell script would be enough and some example implementations provided by your users. :) It doesn't need to be complicated.

oakwhiz#
Perhaps a fake USB device that issues power or sleep button requests could work. I had limited success with this on Linux using an HID keyboard emulator. However this won't work on a machine that's too far gone to respond to USB, and that's also an issue with the physical power button as well. Perhaps an AC latching relay would work to cut power.
davidzweig#
Wake-on-Lan can handle powering on. It should be possible to directly connect a RPi GPIO pin directly to the 0.1" headers on the motherboard.. the power and reset buttons are just closing a circuit to pull high/pull low an input pin. Use a 1k resistor between the Rpi and motherboard headers for protection.
Nexxxeh#
A horrible way would be to set the target to power on after power loss. Plug the target into a WiFi-controlled smart plug, like the Belkin Wemo. In the event of catastrophic hard lock, power cycle it at the wall.

A better way would be a relay and microcontroller, which you could also potentially use for the USB HID stuff too.
In theory, you could have a HDMI switch, a single Pi and HDMI grabber, and just a microcontroller board for each target machine that could have power button control, keyboard emulation etc built in.

voltagex_#
Can highly recommend the TP-Link HS100 for this - it's "just" a wifi power switch. Change your motherboard settings to "power on after power loss" and you've got your remote reboot.

Continue this thread — 2 more replies

Continue this thread — 9 more replies

mudkip3 replies#
This is pretty cool (for managing servers cheaply), but I remain disappointed that remotely controlling computers over a network with low latency is still a difficult task. I've been trying to find a way to use a bunch of machines remotely over my LAN (for gaming / media playback on multiple devices), and have been somewhat disappointed at the quality / latency of the various options I've played around with. It's especially disappointing when you have 10gbps networking, and sending uncompressed 1080p60 video over over the network with a couple ms of latency should be trivial, from a bandwidth perspective. Obviously this is a different problem than what you're trying to solve (remote management, so you have to do HDMI + USB stuff in hardware, adding some latency), but it's still annoying that there aren't great lower latency software options.
xiao_haozi2 replies#
Steam link does it, and fast enough to play games with no noticeable latency.

Not sure what the magic is, though.

mudkip1 reply#
I haven't tried Steam Link yet, but I might give it a shot. I was originally looking for purely remote desktop stuff for a combination of managing computers and gaming, so I was mostly testing stuff not specifically marketed to gamers. Ideally I'd also like something that does software<->hardware (at higher latency obviously), so I can stream older computers or game consoles to a variety of devices as well.

I did end up trying Parsec, since I saw some people recommending it, and that was terrible. Latency was fine (~10ms software <-> software) and video quality was alright, but audio quality was terrible despite being set to the highest option - which is especially bad, because there's no option to send uncompressed audio, and whatever "optimization work" they were doing to reduce bandwidth made their entire product unusable, despite the fact that there's no need to try saving 1mbps over a wired LAN.

fock#
the cool thing about this solution seems also, that it conveniently alleviates the "need a screen"-problem of the windows-screencapture-approach.
baq#
the latency is absolutely noticeable, the human brain adapts quite well though. i've switched mid-playthrough of ori and the blind forest (highly recommended btw) from a link to native 144hz and was blown away how easy the game has become :)

the point still stands: most games are very playable via a steam link.

mindslight1 reply#
SPICE (virt-viewer) performs well enough for my every day web browsing with VMs. The performance is annoying but adequate over wifi/WAN.
mudkip1 reply#
I'm curious how well this works over a LAN - over a WAN, my expectations are way lower because of actual limitations from going over the internet, so I'm fine with some latency / quality loss.
mindslight#
Sorry, I was trying to imply that it does work great over a wired LAN. I run my everyday browsers on a separate physical machine, communicating over gigabit ethernet. Videos with sound generally play fine, although I often youtube-dl longer ones for usability's sake. The main source of flakiness I've had is from opening too many tabs in low-memory VMs.
mudkip#
I looked into Moonlight, but don't have any nVidia cards laying around here to test with.

I tried Parsec on one machine and was super disappointed. Video quality and latency were fine, but audio sounded like crap, despite streaming at 512kbps. Since there's no option to stream uncompressed audio, and no debug options to figure out why it sounded so terrible, I had to write off their entire product as unusable.

twicetwice#
There was another approach to the same problem posted on HN just yesterday[0], which took a very different route! Very interesting to compare/contrast the two appraches. That one doesn't do video, just gets you a terminal. (Not sure if it would let you mess with the BIOS or install a new OS like this one does? Not familiar enough with serial ports to assess.)

But anyway, TinyPilot is super cool! I'd love to get it set up one day. And the "life story" as to how it came to be was really neat, and made me feel like I understood the whole solution. Great article!
[0] https://news.ycombinator.com/item?id=23915777

Load more comments