sipeed / NanoKVM

NanoKVM: Affordable, Multifunctional, Nano RISC-V IP-KVM
GNU General Public License v3.0
3.18k stars 56 forks source link

Virtual USB does not work on certain environments. #44

Open JP-Dora1080 opened 2 months ago

JP-Dora1080 commented 2 months ago

What I am trying to do now is to combine my StarTech KVM switch with NanoKVM Lite to allow me to switch screens virtually. If you watch the video I posted on my X, it will be easier to understand. In that video, I am using a physical keyboard connected to the KVM switch, and I have the NanoKVM Lite plugged into a USB port on the StarTech KVM switch, but it is only providing power and the keyboard and mouse on the remote are not working. I have tried changing the cables, but that has not fixed the problem. I connected the USB directly to the server and the keyboard worked only on that server. I would like to be able to control all servers from the KVM switch. Can you fix this problem? Thank you in advance.

https://x.com/DORA_0907/status/1833134326923640963

Benchwork commented 2 months ago

what firmware are you using? I was using the stock firmware and was having issues with keyboard/mouse. I updated to the most current firmware (requires rewriting the SD card, and now it is working

JP-Dora1080 commented 2 months ago

All are up-to-date with the latest version of NanoKVM, but this does not solve the problem. Is there any other solution?

6c7a09dacb1931ff1754718366a61fff
polyzium commented 2 months ago

Look in the dmesg of the other server where the keyboard doesn't work, and paste the log here. My guess is that either the NanoKVM or the switch is not responding to the USB initialization procedure.

JP-Dora1080 commented 2 months ago

DMESG Log. The log shows that the physical keyboard is recognized on the server by relaying through the USB port of the KVM switch, but nothing is recognized on NanoKVM's Virtual USB. If the physical keyboard is recognized, I assume that there is some kind of bug on the NanoKVM side that is preventing it from being recognized.

dc84b1d14aa7ff1664e2804532160edf
polyzium commented 2 months ago

OK, so the HID devices are detected correctly. On the NanoKVM, you may have to go to the mouse menu and select "Reset HID" several times.

The "Virtual USB" (the name is misleading IMO) emulates a mass storage device that points to the data partition on the NanoKVM for uploading ISOs. This may conflict with the KVM switch, which only expects a keyboard and mouse, so try disabling both Virtual USB and Virtual Network.

JP-Dora1080 commented 2 months ago

I disabled virtual USB and virtual networking, pressed Reset HID several times, and reinserted USB on the KVM side and server side, but the problem persisted.

IMG_7471

polyzium commented 2 months ago

Hm, then I'll leave this question to the Sipeed employees.

onix331 commented 21 hours ago

It also does not work with memtest86+ v7.00 (latest) on the latest KVM version (2.1.1). While the screen says it detected hid devices, it does not react when i press any key