[MODULE JOYDEV] Steering wheel Logitech Driving Force GT -> wrong number of axis, and wrong axis separation for throttle and brake

From: Giuseppe Della Bianca
Date: Sat Oct 24 2015 - 14:08:24 EST


Hi.

With steering wheel Logitech Driving Force GT are recognized wrong number of
axis, and wrong axis separation for throttle and brake.

For example, the game torcs, requires throttle and brake on the same axis.


Fedora release 21 (Twenty One), Linux 4.1.8-100.fc21.x86_64

[ 3359.259057] usb 2-6: new full-speed USB device number 6 using ohci-pci
[ 3359.455081] usb 2-6: New USB device found, idVendor=046d, idProduct=c294
[ 3359.455094] usb 2-6: New USB device strings: Mfr=0, Product=2,
SerialNumber=0
[ 3359.455101] usb 2-6: Product: Driving Force GT
[ 3359.467680] input: Driving Force GT as
/devices/pci0000:00/0000:00:02.0/usb2/2-6/2-6:1.0/0003:046D:C294.0007/input/input15
[ 3359.518729] logitech 0003:046D:C294.0007: input,hidraw3: USB HID v1.00
Joystick [Driving Force GT] on usb-0000:00:02.0-6/input0
[ 3359.532116] usb 2-6: USB disconnect, device number 6
[ 3360.061052] usb 2-6: new full-speed USB device number 7 using ohci-pci
[ 3360.260081] usb 2-6: New USB device found, idVendor=046d, idProduct=c29a
[ 3360.260094] usb 2-6: New USB device strings: Mfr=0, Product=2,
SerialNumber=0
[ 3360.260102] usb 2-6: Product: Driving Force GT
[ 3360.282321] input: Driving Force GT as
/devices/pci0000:00/0000:00:02.0/usb2/2-6/2-6:1.0/0003:046D:C29A.0008/input/input16
[ 3360.333728] logitech 0003:046D:C29A.0008: input,hidraw3: USB HID v1.11
Joystick [Driving Force GT] on usb-0000:00:02.0-6/input0
[ 3360.333788] logitech 0003:046D:C29A.0008: Force feedback support for
Logitech Gaming Wheels


Bus 002 Device 005: ID 046d:c29a Logitech, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x046d Logitech, Inc.
idProduct 0xc29a
bcdDevice 13.27
iManufacturer 0
iProduct 2 Driving Force GT
iSerial 0
bNumConfigurations 1


jscal -c /dev/input/js0
Joystick has 5 axes and 21 buttons.
....

# steering wheel calibration (right)
Move axis 0 to minimum position and push any button.
....

# throttle calibration (right)
Move axis 1 to minimum position and push any button.

# brake calibration (wrong, the brake calibration must be on axis 1, for
example 255 (throttle), 0 (none), -255 (brake))
Move axis 2 to minimum position and push any button.
....

Regards.

Gdb

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