Bug 14421 (CHProd-js-regression) - CH Products joystick detected but not functional
Summary: CH Products joystick detected but not functional
Status: RESOLVED CODE_FIX
Alias: CHProd-js-regression
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 15:17 UTC by Keith Rutkowski
Modified: 2009-11-09 16:42 UTC (History)
1 user (show)

See Also:
Kernel Version: >= 2.6.29
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
HAL detection of joystick (4.44 KB, text/plain)
2009-10-16 15:17 UTC, Keith Rutkowski
Details
Patch resolving Bug 14421 (1.37 KB, patch)
2009-11-09 16:12 UTC, Keith Rutkowski
Details | Diff

Description Keith Rutkowski 2009-10-16 15:17:13 UTC
Created attachment 23433 [details]
HAL detection of joystick

CH Products 3-axis 5-button Joystick Product #:  HG-434IS000-U-217

Tested on one system running Windows, Ubuntu 9.04, Fedora 10 and 11, and also tested on 2 other systems running CentOS and Fedora 11 respectively.

Properly detected but does not work on:
  Fedora 11
    2.6.30.8-64.fc11.x86_64
    2.6.30.8-64.fc11.i586
    2.6.29.4-167.fc11.x86_64
    2.6.29.4-167.fc11.i586

Tested and fully functional on:
  Ubuntu 9.04
    2.6.28... - 32-bit
  Fedora 10
    2.6.27... - 32-bit
  CentOS 5.?
    2.6.18-92.1.13.el5 - 64-bit
  Windows XP SP2 - 32-bit

Plugged joystick in and kernel detects device (from /var/log/messages):
  kernel: usb 3-6: new low speed USB device using ohci_hcd and address 3
  kernel: usb 3-6: New USB device found, idVendor=068e, idProduct=00d3
  kernel: usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  kernel: usb 3-6: Product: CH OEM 3 AXIS 5 BUTTON JOYSTICK
  kernel: usb 3-6: Manufacturer: CH PRODUCTS
  kernel: usb 3-6: configuration #1 chosen from 1 choice
  kernel: input: CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK as /devices/pci0000:00/0000:00:02.0/usb3/3-6/3-6:1.0/input/input8
  kernel: generic-usb 0003:068E:00D3.0004: input,hidraw3: USB HID v1.00 Joystick [CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK] on usb-0000:00:02.0-6/input0

HAL also detects the device (from lshal): attached as hal.txt

Functionality was checked for under jstest, jscal, KDE 4 joystick section in System Settings, and by cat-ing the device.  In all tests the axis values did not change, and the button states did not change when joystick manipulated (from jstest):
  Joystick (CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK) has 3 axes and 5 buttons. Driver version is 2.1.0.
  Testing ... (interrupt to exit)
  Axes:  0:     0  1:     0  2:     0 Buttons:  0:off  1:off  2:off  3:off  4:off

(bytes from cat /dev/input/by-id/usb-CH_PRODUCTS_CH_OEM_3_AXIS_5_BUTTON_JOYSTICK-joystick)
4F 0A 5C 00  00 00 81 00  4F 0A 5C 00  00 00 81 01  4F 0A 5C 00  00 00 81 02  4F 0A 5C 00  00 00 81 03  4F 0A 5C 00  00 00 81 04  4F 0A 5C 00  00 00 82 00  4F 0A 5C 00  00 00 82 01  4F 0A 5C 00  00 00 82 02
Comment 1 Andrew Morton 2009-10-16 21:20:13 UTC
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

Reportedly a post-2.6.28 regression.

On Fri, 16 Oct 2009 15:17:14 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=14421
> 
>            Summary: CH Products joystick detected but not functional
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: >= 2.6.29
>           Platform: All
>         OS/Version: Linux
>               Tree: Fedora
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: USB
>         AssignedTo: greg@kroah.com
>         ReportedBy: rutkowski@signatureresearchinc.com
>         Regression: Yes
> 
> 
> Created an attachment (id=23433)
>  --> (http://bugzilla.kernel.org/attachment.cgi?id=23433)
> HAL detection of joystick
> 
> CH Products 3-axis 5-button Joystick Product #:  HG-434IS000-U-217
> 
> Tested on one system running Windows, Ubuntu 9.04, Fedora 10 and 11, and also
> tested on 2 other systems running CentOS and Fedora 11 respectively.
> 
> Properly detected but does not work on:
>   Fedora 11
>     2.6.30.8-64.fc11.x86_64
>     2.6.30.8-64.fc11.i586
>     2.6.29.4-167.fc11.x86_64
>     2.6.29.4-167.fc11.i586
> 
> Tested and fully functional on:
>   Ubuntu 9.04
>     2.6.28... - 32-bit
>   Fedora 10
>     2.6.27... - 32-bit
>   CentOS 5.?
>     2.6.18-92.1.13.el5 - 64-bit
>   Windows XP SP2 - 32-bit
> 
> Plugged joystick in and kernel detects device (from /var/log/messages):
>   kernel: usb 3-6: new low speed USB device using ohci_hcd and address 3
>   kernel: usb 3-6: New USB device found, idVendor=068e, idProduct=00d3
>   kernel: usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
>   kernel: usb 3-6: Product: CH OEM 3 AXIS 5 BUTTON JOYSTICK
>   kernel: usb 3-6: Manufacturer: CH PRODUCTS
>   kernel: usb 3-6: configuration #1 chosen from 1 choice
>   kernel: input: CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK as
> /devices/pci0000:00/0000:00:02.0/usb3/3-6/3-6:1.0/input/input8
>   kernel: generic-usb 0003:068E:00D3.0004: input,hidraw3: USB HID v1.00
> Joystick [CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK] on
> usb-0000:00:02.0-6/input0
> 
> HAL also detects the device (from lshal): attached as hal.txt
> 
> Functionality was checked for under jstest, jscal, KDE 4 joystick section in
> System Settings, and by cat-ing the device.  In all tests the axis values did
> not change, and the button states did not change when joystick manipulated
> (from jstest):
>   Joystick (CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK) has 3 axes and 5
> buttons. Driver version is 2.1.0.
>   Testing ... (interrupt to exit)
>   Axes:  0:     0  1:     0  2:     0 Buttons:  0:off  1:off  2:off  3:off 
> 4:off
> 
> (bytes from cat
> /dev/input/by-id/usb-CH_PRODUCTS_CH_OEM_3_AXIS_5_BUTTON_JOYSTICK-joystick)
> 4F 0A 5C 00  00 00 81 00  4F 0A 5C 00  00 00 81 01  4F 0A 5C 00  00 00 81 02 
> 4F 0A 5C 00  00 00 81 03  4F 0A 5C 00  00 00 81 04  4F 0A 5C 00  00 00 82 00 
> 4F 0A 5C 00  00 00 82 01  4F 0A 5C 00  00 00 82 02
> 
> -- 
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
Comment 2 Anonymous Emailer 2009-10-16 21:29:48 UTC
Reply-To: oliver@neukum.org

Am Freitag, 16. Oktober 2009 23:20:09 schrieb Andrew Morton:
> > Plugged joystick in and kernel detects device (from /var/log/messages):
> >   kernel: usb 3-6: new low speed USB device using ohci_hcd and address 3
> >   kernel: usb 3-6: New USB device found, idVendor=068e, idProduct=00d3
> >   kernel: usb 3-6: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=0 kernel: usb 3-6: Product: CH OEM 3 AXIS 5 BUTTON JOYSTICK
> >   kernel: usb 3-6: Manufacturer: CH PRODUCTS
> >   kernel: usb 3-6: configuration #1 chosen from 1 choice
> >   kernel: input: CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK as
> > /devices/pci0000:00/0000:00:02.0/usb3/3-6/3-6:1.0/input/input8
> >   kernel: generic-usb 0003:068E:00D3.0004: input,hidraw3: USB HID v1.00
> > Joystick [CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK] on
> > usb-0000:00:02.0-6/input0
> >
> > HAL also detects the device (from lshal): attached as hal.txt
> >
> > Functionality was checked for under jstest, jscal, KDE 4 joystick section
> > in System Settings, and by cat-ing the device.  In all tests the axis
> > values did not change, and the button states did not change when joystick
> > manipulated


Do you see traffic with usbmon as you move the stick or press buttons?

	Regards
		Oliver
Comment 3 Keith Rutkowski 2009-10-19 13:08:16 UTC
On 10/16/2009 05:31 PM, Oliver Neukum wrote:
> Am Freitag, 16. Oktober 2009 23:20:09 schrieb Andrew Morton:
>    
>>> Plugged joystick in and kernel detects device (from /var/log/messages):
>>>    kernel: usb 3-6: new low speed USB device using ohci_hcd and address 3
>>>    kernel: usb 3-6: New USB device found, idVendor=068e, idProduct=00d3
>>>    kernel: usb 3-6: New USB device strings: Mfr=1, Product=2,
>>> SerialNumber=0 kernel: usb 3-6: Product: CH OEM 3 AXIS 5 BUTTON JOYSTICK
>>>    kernel: usb 3-6: Manufacturer: CH PRODUCTS
>>>    kernel: usb 3-6: configuration #1 chosen from 1 choice
>>>    kernel: input: CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK as
>>> /devices/pci0000:00/0000:00:02.0/usb3/3-6/3-6:1.0/input/input8
>>>    kernel: generic-usb 0003:068E:00D3.0004: input,hidraw3: USB HID v1.00
>>> Joystick [CH PRODUCTS CH OEM 3 AXIS 5 BUTTON JOYSTICK] on
>>> usb-0000:00:02.0-6/input0
>>>
>>> HAL also detects the device (from lshal): attached as hal.txt
>>>
>>> Functionality was checked for under jstest, jscal, KDE 4 joystick section
>>> in System Settings, and by cat-ing the device.  In all tests the axis
>>> values did not change, and the button states did not change when joystick
>>> manipulated
>>>        
>
> Do you see traffic with usbmon as you move the stick or press buttons?
>
>       Regards
>               Oliver
>
> .
>
>    

No traffic was shown from usbmon other than the connect/disconnect stuff.

- Keith
Comment 4 Anonymous Emailer 2009-10-19 13:24:36 UTC
Reply-To: oliver@neukum.org

Am Montag, 19. Oktober 2009 15:08:11 schrieb Keith Rutkowski:
> No traffic was shown from usbmon other than the connect/disconnect stuff.

Did you see the patches which added a quirk for your device,
if I am not mistaken?

	Regards
		Oliver
Comment 5 Keith Rutkowski 2009-10-19 13:56:03 UTC
On 10/19/2009 09:26 AM, Oliver Neukum wrote:
> Did you see the patches which added a quirk for your device,
> if I am not mistaken?
>
>       Regards
>               Oliver
>
> .
>
>    
I have not found any patches for this specific device.  It is an 
industrial class joystick, so probably not as common as the CH Products 
consumer class joysticks.

However, this patch seems to address a similar issue with other more 
common CH Products joysticks:

commit efee69d7e0f1ddfec97549eee0a8b63750eb67f7
Author: Alan Stern<stern@rowland.harvard.edu>
Date:   Wed May 6 15:48:49 2009 -0400

     HID: add NOGET quirk for devices from CH Products

     commit b820aabf6cb987fd03d85b0b5f599685051e0426 upstream.

     This patch (as1240) adds the NOGET quirk for three devices from CH
     Products: the Pro pedals, the Combatstick joystick, and the Flight-Sim
     yoke.  Without these quirks, the devices haven't worked for many
     kernel releases.  Sometimes replugging them after boot-up would get
     them to work and sometimes they wouldn't work at all.

     Signed-off-by: Alan Stern<stern@rowland.harvard.edu>
     Reported-by: Sean Hildebrand<silverwraithii@gmail.com>
     Reported-by: Sid Boyce<sboyce@blueyonder.co.uk>
     Tested-by: Sean Hildebrand<silverwraithii@gmail.com>
     Tested-by: Sid Boyce<sboyce@blueyonder.co.uk>
     Signed-off-by: Jiri Kosina<jkosina@suse.cz>
     Signed-off-by: Greg Kroah-Hartman<gregkh@suse.de>


Thanks,
Keith
Comment 6 Anonymous Emailer 2009-10-19 14:32:16 UTC
Reply-To: oliver@neukum.org

Am Montag, 19. Oktober 2009 15:55:49 schrieb Keith Rutkowski:
> I have not found any patches for this specific device.  It is an
> industrial class joystick, so probably not as common as the CH Products
> consumer class joysticks.
>
> However, this patch seems to address a similar issue with other more
> common CH Products joysticks:

Yes, that's the patch. Could you try to also add your device to the blacklist?

	Regards
		Oliver
Comment 7 Keith Rutkowski 2009-10-19 19:09:35 UTC
On 10/19/2009 10:34 AM, Oliver Neukum wrote:
> Am Montag, 19. Oktober 2009 15:55:49 schrieb Keith Rutkowski:
>    
>> I have not found any patches for this specific device.  It is an
>> industrial class joystick, so probably not as common as the CH Products
>> consumer class joysticks.
>>
>> However, this patch seems to address a similar issue with other more
>> common CH Products joysticks:
>>      
> Yes, that's the patch. Could you try to also add your device to the
> blacklist?
>
>       Regards
>               Oliver
>
> .
>
>    

Ok, I blacklisted the joystick as the patch did with the other 
joysticks, built the kernel, and verified that the joystick works again 
after the modification.

Attached is the patch file that I applied to Fedora's 2.6.30.8-64 kernel.

- Keith
Comment 8 Alan Stern 2009-11-09 16:01:50 UTC
It sounds like this bug report can be closed out.
Comment 9 Keith Rutkowski 2009-11-09 16:12:28 UTC
Created attachment 23714 [details]
Patch resolving  Bug 14421
Comment 10 Keith Rutkowski 2009-11-09 16:13:47 UTC
Correct, the bug has be resolved with the patch.
Comment 11 Alan Stern 2009-11-09 16:42:01 UTC
If you haven't already done so, you should submit your patch to the usbhid maintainer so that it will get included in the official kernel.

Note You need to log in before you can comment on or make changes to this bug.