lsusb -v shows
can’t get device qualifier: Resource temporarily unavailable
can’t get debug qualifier: Resource temporarily unavailable
in the output, and my APC UPS is not detected with usb-hid driver (appears in lsusb but no communication).
@alzhao If there’s any troubleshooting steps, you would like me to do, I can do it.
My APC UPS talks over usb normally with USB HID driver, it’s almost acting like the USB HID driver doesn’t have the hwid of the APC UPS so it ignores it (aka the kernel sees the device on the bus and can talk with it but no driver “activates” it)
In dmesg, usbhid is loading fine, but the line which mentions “American power conversion hid” is missing.
I noticed in the lsusb, it’s actually failing to read the usb descriptor, it’s definitely some kind of usb communication bug. Thanks for follow up, hope it gets fixed soon!
Another info also: since flint has only 1 usb port. I am using a small USB 3.0 hub. In one port of this hub is a USB flash drive which I am mounting in /opt (this one is working), in the other port of this hub is the UPS.
Does it work without the USB hub?
Does it need to install some extra ipk to support the UPS?
Do you have dmesg and debug info using release2 firmware?
In release 3 we added some USB modem support, but it doesn’t impact HID devices.
Please add this command output:
No difference removing hub. Messages in dmesg with unplug replug from different hub ports and finally direct plug in to the router:
[136888.450521] usbcore: registered new interface driver usbhid
[136888.450548] usbhid: USB HID core driver
[147386.839047] usb 1-1.3: USB disconnect, device number 3
[147388.613227] usb 1-1.2: new full-speed USB device number 4 using xhci-hcd
[147388.714879] usb 1-1.2: ep 0x81 - rounding interval to 128 microframes, ep desc says 160 microframes
[147388.714925] usb 1-1.2: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
[147392.983055] usb 1-1.2: USB disconnect, device number 4
[147396.673245] usb 1-1.1: new full-speed USB device number 5 using xhci-hcd
[147396.774972] usb 1-1.1: ep 0x81 - rounding interval to 128 microframes, ep desc says 160 microframes
[147396.775019] usb 1-1.1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
[147402.711053] usb 1-1.1: USB disconnect, device number 5
[147406.263668] usb 2-1: USB disconnect, device number 2
[147406.263697] usb 2-1.4: USB disconnect, device number 3
[147406.353238] usb 1-1: USB disconnect, device number 2
[147409.853209] usb 1-1: new full-speed USB device number 6 using xhci-hcd
[147409.994862] usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 160 microframes
[147409.994908] usb 1-1: ep 0x1 - rounding interval to 64 microframes, ep desc says 80 microframes
@hansome i was finally able to make it work, I needed to modprobe hid-generic in addition to usbhid. I guess there’s no bug, or maybe the bug is in autoloading of modules.
Yes indeed, I found /etc/modules.d doesn’t have any entry for hid-generic and no symlink in /etc/modules-boot.d I think that’s the actual bug.
For completion’s sake: Here’s a zip file containing dmesg and usb debug and lsusb -v with it working for future reference. I added modprobe hid-generic in /etc/rc.local
I test again the hid_generic is loaded automatically after installing kmod-hid-generic. Maybe the installation process the first time is not complete for network reasons. Glad you made it work.