Cobra Forum

Linux => Hardware => Topic started by: kalpana on Oct 16, 2023, 05:51 AM

Title: Can't use keyboard with USB extension cable?
Post by: kalpana on Oct 16, 2023, 05:51 AM
I have an apple keyboard that I am using with my linux machine (Kubuntu 23.04). Works great. (Mouse is also plugged into the keyboard.)

It's currently plugged into the side of a monitor. I wanted to plug it into a USB port on the front of my desktop case. Plugged in to that port directly, it works fine, but the cable is too short. I got a USB male/female extension off eBay (approximately 2 feet long), but it doesn't work. Sometimes, after a significant delay, it does work.

That USB extension cable had no shielding, which I guessed might be the issue, so I bought a different one (~8 feet long). It is shielded. On both cables I confirmed connectivity of all four pins and that the plugs are clean, etc. Resistance for all five connections measures less than 4 ohms.

It also works if I plug the extension cable into the monitor.

Summary:

Monitor -> extension cable -> keyboard: works
Monitor -> keyboard: works
Front of case -> keyboard: works
Front of case -> extension cable -> keyboard: doesn't work

When it fails to connect, In journalctl I see the following lines over and over again (along with many, many snap_cups related lines failing with exit code 1, but that seems to happen all the time regardless of functionality):

Code:

Jul 24 13:00:26 mycomputer kernel: usb 3-14: new high-speed USB device number 95 using xhci_hcd
Jul 24 13:00:26 mycomputer kernel: usb 3-14: New USB device found, idVendor=05ac, idProduct=1006, bcdDevice=96.15
Jul 24 13:00:26 mycomputer kernel: usb 3-14: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 24 13:00:26 mycomputer kernel: usb 3-14: Product: Keyboard Hub
Jul 24 13:00:26 mycomputer kernel: usb 3-14: Manufacturer: Apple, Inc.
Jul 24 13:00:26 mycomputer kernel: usb 3-14: SerialNumber: 000000000000
Jul 24 13:00:26 mycomputer kernel: hub 3-14:1.0: USB hub found
Jul 24 13:00:26 mycomputer kernel: hub 3-14:1.0: 3 ports detected
Jul 24 13:00:26 mycomputer kernel: usb 3-14: USB disconnect, device number 95

Any idea what is going on?