Abdullah Seba Posted September 23, 2017 Share Posted September 23, 2017 Hi I'm a newbie to Armbian and just got the Orange Pi Zero. I want it to behave as a keyboard on the OTG port. Right now it works as a serial console. I cant find any docs on this anywhere and I'm not clued up on Linux to mess around too much Can any one help? Thanks in advance. Link to comment Share on other sites More sharing options...
Abdullah Seba Posted September 24, 2017 Author Share Posted September 24, 2017 No one here?????? Link to comment Share on other sites More sharing options...
MitchD Posted September 24, 2017 Share Posted September 24, 2017 Which kernel are you using? If you are using mainline, I understand than the OTG options aren't there yet. If on legacy, you can try: modprobe -r g_serial followed by: modprobe g_hid From there, see if any new devices are created. Full documentation is here: https://www.kernel.org/doc/Documentation/usb/gadget_hid.txt 1 Link to comment Share on other sites More sharing options...
Abdullah Seba Posted September 24, 2017 Author Share Posted September 24, 2017 Just now, MitchD said: Which kernel are you using? If you are using mainline, I understand than the OTG options aren't there yet. If on legacy, you can try: modprobe -r g_serial followed by: modprobe g_hid From there, see if any new devices are created. Full documentation is here: https://www.kernel.org/doc/Documentation/usb/gadget_hid.txt Thanks for replying. I'm using the latest from here https://www.armbian.com/orange-pi-zero/ marked as legacy stable. Not sure what kernel it's using. I tried `modprobe -r g_serial` and got: `modprobe: FATAL: Module g_serial is in use.` I tried with the otg port plugged in and unplugged. `modprobe g_hid` returned `modprobe: ERROR: could not insert 'g_hid': No such device` Link to comment Share on other sites More sharing options...
MitchD Posted September 24, 2017 Share Posted September 24, 2017 Sorry, put sudo before those commands and run them again. It must be run as root. I'll try with a legacy stable image tonight and see if I can get it operational. Link to comment Share on other sites More sharing options...
Abdullah Seba Posted September 24, 2017 Author Share Posted September 24, 2017 10 minutes ago, MitchD said: Sorry, put sudo before those commands and run them again. It must be run as root. I'll try with a legacy stable image tonight and see if I can get it operational. Same thing happened. Thanks Link to comment Share on other sites More sharing options...
MitchD Posted September 25, 2017 Share Posted September 25, 2017 Looks like g_hid is broken on this build of armbian. Not sure why this hasn't been patched yet. Link to comment Share on other sites More sharing options...
Igor Posted September 25, 2017 Share Posted September 25, 2017 Try toggling: https://github.com/armbian/build/blob/master/config/fex/orangepizero.fex#L504 3 hours ago, MitchD said: Not sure why this hasn't been patched yet. Afaik it should work. Perhaps unloading is not working as it should. This kernel is from some other times ... removal from /etc/modules and reboot might be needed. Nobody is working on H3 legacy kernels anymore Modern kernel will be here soon. @Abdullah Seba Technical support is our free will. Our expense and we tend to rest on Sundays. 2 Link to comment Share on other sites More sharing options...
zador.blood.stained Posted September 25, 2017 Share Posted September 25, 2017 7 hours ago, MitchD said: Looks like g_hid is broken on this build of armbian. Not sure why this hasn't been patched yet. https://github.com/armbian/build/issues/593 1 Link to comment Share on other sites More sharing options...
Abdullah Seba Posted September 25, 2017 Author Share Posted September 25, 2017 Hmm thanks for everyone's help I'll have to wait I guess. Link to comment Share on other sites More sharing options...
Abdullah Seba Posted September 25, 2017 Author Share Posted September 25, 2017 modprobe -r g_serial seems to work on the beta version but the serial concoction get lost and ssh doesn't work... Link to comment Share on other sites More sharing options...
Selda_bagcan Posted September 26, 2017 Share Posted September 26, 2017 Hello, i have been looking into this subject lately but couldn't find something useful. I want to be able to act as a mouse and keyboard with opi zero. I have some experience with programming and a bit of linux ecosystem so i i think i can look into/follow some stuff if you guide me. Also i know its off-topic but does gpio pins have any latency on them? I want to share data in real time between opi zero and rpi zero. Thank you for your attention. Sincerly Link to comment Share on other sites More sharing options...
Selda_bagcan Posted October 10, 2017 Share Posted October 10, 2017 Any news on this subject? Legacy kernel doesnt work either. I thought that 4.13 would bring hid-gatget mode too. Link to comment Share on other sites More sharing options...
Recommended Posts