Re: CH Products joystick(s) broken in 2.6.29=<

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sid Boyce wrote:
> Alan Stern wrote:
>> On Sun, 3 May 2009, Sid Boyce wrote:
>>
>>> If the behaviour is anything like the Yoke and Pedals, since around 2.6,19.
>>>  # js_demo
>>> Joystick test program.
>>> ~~~~~~~~~~~~~~~~~~~~~~
>>> Joystick 0: "CH PRODUCTS CH FLIGHT SIM YOKE USB "
>>> Joystick 1: "CH PRODUCTS CH PRO PEDALS USB "
>>> Joystick 2 not detected
>>> Joystick 3 not detected
>>> Joystick 4 not detected
>>> Joystick 5 not detected
>>> Joystick 6 not detected
>>> Joystick 7 not detected
>>> +--------------------JS.0----------------------+--------------------JS.1----------------------+
>>> | Btns Ax:0 Ax:1 Ax:2 Ax:3 Ax:4 Ax:5 Ax:6      | Btns Ax:0 Ax:1 Ax:2
>>>                       |
>>> +----------------------------------------------+----------------------------------------------+
>>> ^C0000 +0.1 -0.2 -1.0 -1.0 -0.8 +0.0 +0.0   .  | 0000 -1.0 -1.0 -0.0   .
>>>    .    .    .    .  |
>>> # jstest /dev/input/js0
>>> Driver version is 2.1.0.
>>> Joystick (CH PRODUCTS CH FLIGHT SIM YOKE USB ) has 7 axes (X, Y, Z, Rx,
>>> Ry, Hat0X, Hat0Y)
>>> and 12 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2,
>>> PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6).
>>> Testing ... (interrupt to exit)
>>> Axes:  0:  3715  1: -5068  2:-32767  3:-32767  4:-24661  5:     0  6:
>>>   0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off
>>> 8:off  9:off 10:off 11:off
>>> They are frozen in that state after a reboot until I replug them, then
>>> everything works normally.
>>> The dmesg output is the same in each case.
>> Have you tested whether the NOGET quirk fixes the problem with these
>> devices?
>>
>> Alan Stern
>>
>>
>>
> Not so far, I shall apply to 2.6.30-rc4-git1 later and test.
> Regards
> Sid.
>
Fixed
=======
--- /usr/src/linux-2.6.30-rc4-git1/drivers/hid/hid-ids.h
2009-05-03 15:06:20.458499276 +0100
+++ /usr/src/linux-2.6.30-rc4-git1a/drivers/hid/hid-ids.h
2009-05-05 22:09:14.238300053 +0100
@@ -113,6 +113,10 @@
 #define USB_VENDOR_ID_BERKSHIRE                0x0c98
 #define USB_DEVICE_ID_BERKSHIRE_PCWD   0x1140

+#define USB_VENDOR_ID_CH               0x068e
+#define USB_DEVICE_ID_CH_YOKE          0x00ff
+#define USB_DEVICE_ID_CH_PEDALS                0x00f2
+
 #define USB_VENDOR_ID_CHERRY           0x046a
 #define USB_DEVICE_ID_CHERRY_CYMOTION  0x0023

--- /usr/src/linux-2.6.30-rc4-git1/drivers/hid/usbhid/hid-quirks.c
2009-04-30 05:48:16.000000000 +0100
+++ /usr/src/linux-2.6.30-rc4-git1a/drivers/hid/usbhid/hid-quirks.c
2009-05-05 22:13:16.843355409 +0100
@@ -50,6 +50,8 @@
        { 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_CH, USB_DEVICE_ID_CH_YOKE, HID_QUIRK_NOGET },
+       { USB_VENDOR_ID_CH, USB_DEVICE_ID_CH_PEDALS, HID_QUIRK_NOGET },
        { USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC, HID_QUIRK_NOGET },
        { USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2700, HID_QUIRK_NOGET },
        { USB_VENDOR_ID_SUN, USB_DEVICE_ID_RARITAN_KVM_DONGLE,
HID_QUIRK_NOGET },

Thanks, that bug existed since around 2.6.19.
Regards
Sid.
-- 
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux