lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <hmzaa.> I don't know where to ask this so I'll ask it here:
<DC-IRC> [Discord] <hmzaa.> Is it possible to make the Orange Pi 5 Plus act like as like a sort of input multiplexer?
<DC-IRC> [Discord] <hmzaa.> What I am trying to do is make the same input from a keyboard and mouse go to multiple different devices **simultaneously**. So, if I press W on the keyboard, the input goes through the SBC, and then is sent to connected devices all at the same time. Same with the mouse, if I move my cursor to the left, the input is processed, replicated and send among the devices connected to th <clipped message>
<DC-IRC> [Discord] <hmzaa.> e SBC simultaneously.
<DC-IRC> [Discord] <hmzaa.> I saw Armbian supports OTG, so I took to ChatGPT and make a script. However, it did not seem to work. Maybe ChatGPT isn't capable or this concept is not possible. The support for it is definitely there.
<DC-IRC> [Discord] <hmzaa.> I was thinking of getting this to work through a network as well, but is it imperative for it to be simultaneous, not one by one. I am not looking for a KVM switch.
<DC-IRC> [Discord] <menu> this is entirely possible, and not particularly difficult - but you probably don't need an entire SBC for it
<DC-IRC> [Discord] <hmzaa.> I would love to hear more from you. What do you have in mind that does not require an SBC?
<DC-IRC> [Discord] <menu> if it's just input then it's fairly trivial to mirror with just a microcontroller
<DC-IRC> [Discord] <menu> you can also *usually* do this in software if you want
<DC-IRC> [Discord] <hmzaa.> like an Arduino
<DC-IRC> [Discord] <hmzaa.> if it is simpler and feasible, then please do tell me more
<DC-IRC> [Discord] <menu> yes, that's an option, anything that can handle the communication protocol your input devices use - likely USB
<DC-IRC> [Discord] <menu> it depends what devices you're trying to control, my default terminal has an input mirroring function, and there's various software that'll do both keyboard and mouse
<DC-IRC> [Discord] <hmzaa.> i do have an Arduino but i do not have any experience with using it
<DC-IRC> [Discord] <hmzaa.> laptops (windows or linux, can be only linux too if needed) and android devices. can you name the software? ill try to do my thorough research on it.
<DC-IRC> [Discord] <hmzaa.> or the terminal function if you think thats better. however my linux capabilities are close to none
<DC-IRC> [Discord] <menu> i guess the question i should be asking is *why* you're trying to do this - but you're looking for a software KVM
<DC-IRC> [Discord] <hmzaa.> there is a game a play in which i have multiple accounts where i perform the same task multiple times. so i was just looking for a way to speed the process.
<DC-IRC> [Discord] <beohoff3174> You are likely missing the software side of this.
<DC-IRC> [Discord] <beohoff3174> Using o-1 mini and this prompt get's me closer to what you are looking for:
<DC-IRC> [Discord] <beohoff3174> can you make a hardware-based keyboard multiplexer (so a device that takes a single inputs and feeds them to multiple sources) using C++ / Qt and using the USB-OTG protocol in linux?
<DC-IRC> [Discord] <beohoff3174> I'm more familar with C++ / Qt, hence why I posed it this way. Glancing at the response, it's enough to get started on
<DC-IRC> [Discord] <beohoff3174> This is, highly complex however. As menu mentioned, you might be better suited with a software kvm
<DC-IRC> [Discord] <beohoff3174> You are likely missing the software side of this.
<DC-IRC> [Discord] <beohoff3174> Using o-1 mini and this prompt get's me closer to what you are looking for. An example prompt:
<DC-IRC> [Discord] <beohoff3174> "can you make a hardware-based keyboard multiplexer (so a device that takes a single inputs and feeds them to multiple sources) using C++ / Qt and using the USB-OTG protocol in linux?"
<DC-IRC> [Discord] <menu> ironically i could implement this faster in hardware than software - it's really not my strong suit
<DC-IRC> [Discord] <beohoff3174> I know most software enough to leverage llm's to program.
<DC-IRC> [Discord] <beohoff3174> I don't know CSS that well (at all). and trying to get llm's to help me write CSS with something that I'm very weak in is incredibly tedious.
<DC-IRC> [Discord] <beohoff3174> feels like one would just need a usb signal plexer
<DC-IRC> [Discord] <hmzaa.> i think ill look further into menu's first suggestion: a microcontroller. i have an arduino so hopefully i can get it to work. going to have to use chatgpt too unfortunately
<DC-IRC> [Discord] <hmzaa.> not sure where to ask for help after though lol
<DC-IRC> [Discord] <beohoff3174> There are some electrical engineering discord's, programmer hangout I've gotten help from on some C stuff, or you could look to the arduino community
<DC-IRC> [Discord] <hmzaa.> thank you, ill make sure to look into them. however, im still adamant on the fact that armbian can definitely make this work, although it might be significantly more complex.
<DC-IRC> [Discord] <beohoff3174> armbian is just linux. Linux can do what you want, as long as you can find software or build software to do it.
<DC-IRC> [Discord] <beohoff3174> I don't know of anything in the kernel natively that will do what you are looking for.
<DC-IRC> [Discord] <menu> yes but no, because you don't want to handle USB itself at all, you want the HID that runs *on top* of USB
<DC-IRC> [Discord] <microlinux> The new opi 3b v2.1 consumes more energy than its predecessor's for some reason. Also, while off it does still pull 0.6 watts, that's a huge amount if you ask me.
<DC-IRC> [Discord] <microlinux> Opi3b v1 draws a maximum of about 5 watts .. this newer one, 7 watts.
<DC-IRC> [Discord] <microlinux> Interesting, no idea why.
<DC-IRC> [Discord] <microlinux> The new bt/wifi combo can't be the answer.
<DC-IRC> [Discord] <menu> 0.6w quiescent is huge, is that properly powered off and not a suspend state?
<DC-IRC> [Discord] <microlinux> Off
<DC-IRC> [Discord] <microlinux> Yeah, I also think it's huge
<DC-IRC> [Discord] <microlinux> Can anyone here reproduce such?
<DC-IRC> [Discord] <microlinux> No idea if a tweak on the dtb can actually improve things
<DC-IRC> [Discord] <menu> i don't have the hardware to test unfortunately, i'd start probing ICs and see which is using power if i could
<DC-IRC> [Discord] <mecoblock> same power supply? could maybe be different efficiency of a different power source