Hello folks

I have been happily using an ATEN KVM switch (model CS-1742) for  
about a year with no discernable problems, dual-booting Fedora Core 5  
and Windows 2000 on one port, and my Mac on the other.

I upgraded to a recent Fedora kernel (2.6.17-1.2187_FC5) via 'yum - 
upgrade' recently. This exposed an issue I'd been blithely unaware of  
on the previous kernel I'd used (2.6.16-1.2122_FC5). With the  
previous kernel, mouse and keyboard appear to work fine, but detailed  
logs shows lots that looks wrong to my eyes.

With the 2.6.17 kernel, the issues seem to have passed some threshold  
and the keyboard is unusable via the KVM, though the mouse seems to  
work still.

I have usbmon logs from both 2.6.16 and 2.6.17, and dmesg output with  
verbose logging that shows plenty of:

usb 1-3.1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-3.1: Product: CS-1742 V1.0.091
usb 1-3.1: Manufacturer: ATEN Advance Tech Inc.
usb 1-3.1: uevent
usb 1-3.1: configuration #1 chosen from 1 choice
usb 1-3.1: adding 1-3.1:1.0 (config #1, interface 0)

ohci_hcd 0000:00:02.0: urb df585540 path 3.1 ep0out 5f120000 cc 5 -->  
status -110
usb 1-3.1: failed to restore interface 0 altsetting 0 (error=-110)

ohci_hcd 0000:00:02.0: urb df585ec0 path 3.1 ep1in 5e160000 cc 5 -->  
status -110
usbhid 1-3.1:1.0: retrying intr urb

Plea for help:
--------------

Below are my ramblings on what I've already read and tried - can  
anyone point me to a step I've missed or a new route to investigate,  
or am I facing the door marked 'You lose - ATEN devices are  
unsupportable'?

Please let me know if this belongs on linux-usb-devel, but most lists  
prefer you not to bother the developers in the first instance!

Reducing the problem space:
---------------------------

Direct connecting the keyboard, all is well, disconnectin mouse and  
keyboard from the KVM still shows errors, so I'm convinced it's the KVM.

Boot single user with minimum extra hardware attached, no change.

I have gathered lsusb --verbose output if that will help, but that's  
too big to post here (it's from the 2.6.16 kernel as things are more  
stable there).

The short version is as follows (nothing plugged in after the KVM):
Bus 002 Device 003: ID 1267:0103 Logic3 / SpectraVideo plc
        (Keyboard plugged into mini-hub so I can use the system from console  
in single user)
Bus 002 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
        (Mini-hub - I could remove both of the above and ssh onto the box at  
RL3 I suppose)
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 033: ID 0557:2233 ATEN International Co., Ltd
        (ATEN emulated keyboard port)
Bus 001 Device 011: ID 0557:7000 ATEN International Co., Ltd
        (ATEN emulated mouse port)
Bus 001 Device 001: ID 0000:0000

Look for other similar issues:
------------------------------

Searched using Google, linux-usb-users and linux-usb-devel. Found  
previous fixes for quirks in KVMs

http://marc.theaimsgroup.com/?l=linux-usb-users&m=109366313709692&w=2
        (Possible timeout issue, but I didn't find the instructions on what  
to tweak)

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115196025424954&w=2
        (VERY strong echoes, but the thread ended in the user removing the KVM)

Upgrade the problem away:
-----------------------
I looked for any new firmware on the ATEN site, but can't see  
anything for the CS-1742 directly. I know it's related to other  
devices but there's nothing for the CS-1744 either and I didn't want  
to try the CS-1762 version 'just in case'.

There were no more recent kernels directly from Fedora, and I  
couldn't see any relevant check-ins on the linus-usb-devel list, so  
decided not to try a vanilla kernel.org build. Should I have?

Roll my own patches:
--------------------

I hoped that the fixes in hid-core.c for other ATEN devices might  
work, so I patched a custom 2.6.17-1.2187 kernel as follows:

[EMAIL PROTECTED] usb]# cat ~mythtv/linux-2.6-usb-aten-cs-1742.patch
--- linux-2.6.17.i686/drivers/usb/input/hid-core.c.orig 2006-06-18  
02:49:35.000000000 +0100
+++ linux-2.6.17.i686/drivers/usb/input/hid-core.c      2006-10-11  
23:00:47.000000000 +0100
@@ -1445,6 +1445,7 @@
#define USB_DEVICE_ID_ATEN_2PORTKVM    0x2204
#define USB_DEVICE_ID_ATEN_4PORTKVM    0x2205
#define USB_DEVICE_ID_ATEN_4PORTKVMC   0x2208
+#define USB_DEVICE_ID_ATEN_CS1742      0x2255
#define USB_VENDOR_ID_TOPMAX           0x0663
#define USB_DEVICE_ID_TOPMAX_COBRAPAD  0x0103
@@ -1680,6 +1681,7 @@
         { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_2PORTKVM,  
HID_QUIRK_NOGET },
         { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVM,  
HID_QUIRK_NOGET },
         { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVMC,  
HID_QUIRK_NOGET },
+       { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS1742,  
HID_QUIRK_NOGET },
         { USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_KEYBOARD,  
HID_QUIRK_NOGET},
         { USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_USBHUB_KB,  
HID_QUIRK_NOGET},
         { USB_VENDOR_ID_CREATIVELABS,  
USB_DEVICE_ID_CREATIVELABS_SILVERCREST, HID_QUIRK_NOGET },

However I suspect this isn't as simple as I'd hoped. I got no joy  
from that attempt.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to