You are not logged in.
Sorry if this is a dumb question, but is it possible to connect an Arch Linux x86_64 machine to another device as a USB Gadget?
I would like to connect a key-remapped device on Arch to a managed machine at home via KVM
If possible, could you please give me some information on how to do this?
Maybe I'm not looking in the right way, but I couldn't find it myself.
Last edited by tkna (2022-10-18 04:24:49)
Offline
I don't think it's possible for a host machine to present it's usb interfaces as client hardware (or "gadgets") at least not without modification to the running kernel to swap out the host drivers with peripheral / client drivers.
That said, I'm not sure how the second sentence in your post connects to the first. What is the key-remapped device? Is that connected to the arch system and you just want it to be available to another system? That's a very different question from having the arch system itself presented as a peripheral gadget as you'd just be looking to pass-through the actual peripheral to another host system (which I don't know how to do off the top of my head, but I suspect the prospects for this are much better).
Please describe the actual hardware elements involved and how they are connected (or how you'd like to connect them).
Last edited by Trilby (2022-10-18 03:46:45)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
> Please describe the actual hardware elements involved and how they are connected (or how you'd like to connect them).
In the `keyd` tool for key remapping, there is a function to connect a keyboard to a single board computer such as a raspberry pi and use the keyboard device remapped and controlled by `keyd` to another machine via USB OTG. I would be happy to use this on a x86_64 computer.
https://github.com/rvaiya/keyd/blob/mas … -gadget.md
I can't find any information at all, so I probably can't do it, but I wanted to get an opinion from someone like you who knows more about it before I think of other ways to do it.
EDIT: "I would be happy to use this on a x86_64 computer" means that you want to replace the above "single board computer such as raspberry pi" with "Arch Linux x86_64 machine".
In other words, The question may be summarized as "Is there a way to achieve USB OTG on Arch Linux x86_64?"
Last edited by tkna (2022-10-18 04:22:52)
Offline