Force Feedback: Thrustmaster FGT Wheel quick-and-dirty in hid-lgff.c or hid-tmff.c
Hello,
I write this as it may be interesting to the peoples involved in the force feedback drivers (or if you're just trying to get your Thrustmaster wheel's force-feedback to work), I'm sorry I'm not proposing a ready to apply patch because at this point I'm not competent enough to make something clean that won't break anything. If anybody is willing to make a proper patch out of this info it would be very welcome as far as I'm concerned, I could try it to confirm that it works with my wheel.
So, I got a "Thrustmaster Ferrari GT 2-in-1 Force Feedback" racing wheel type game controller. It's USB and is detected and work as a controller out of the box. But of course I quickly got interested in trying to get the Force Feedback part to also work.
At first, I tried to get it to work using the iforce kernel module, adding a vendor/id line in iforce-main.c and iforce-usb.c . But the most significant result I got was the module telling me that it timed out waiting for response from the device. So I concluded that my wheel was probably not talking "I-Force", but I'm still not sure I did not do something wrong...
Anyway, next I tried in the usbhid module and I finally got FF_CONSTANT type force-feedback working for my wheel, but only after some (very small) modifications. This is only proof-of-concept as, as-is, it will break Logitech compatibility.
Here's a shell session transcript to show the diffs (kernel 2.6.22) :
bash-prompt$ cd drivers/hid/usbhid/
bash-prompt$ diff hid-lgff.c.orig hid-lgff.c
51a52
Quoted 1 line
{ 0x044f, 0xb654, ff_joystick }, /* Thrustmaster FGT Force Feedback */
77,80c78,80
< report->field[0]->value[0] = 0x51; < report->field[0]->value[1] = 0x08; < report->field[0]->value[2] = x; < report->field[0]->value[3] = y;
---
Quoted 3 lines
/* Works on the Thrustmaster but breaks Logitech */
report->field[0]->value[0] = x;
report->field[0]->value[1] = y; bash-prompt$ diff hid-ff.c.orig hid-ff.c 55a56
Quoted 1 line
{ 0x44f, 0xb654, hid_lgff_init }, /* Thrustmaster FGT Force Feedback */
That's it, with that my wheel can do FF_CONSTANT type force feedback. Note that it also loads the 'ff_memless' module, so I guess the wheel has no memory. It works well with the 'ffcfstress' and 'ffmvforce' test utilities, and here's the output of 'fftest':
Device /dev/input/event2 opened Axes query:
Effects: Constant
Number of simultaneous effects: 16 Upload effects[0]: Invalid argument Upload effects[2]: Invalid argument Upload effects[3]: Invalid argument Upload effects[4]: Invalid argument Upload effects[5]: Invalid argument Enter effect number, -1 to exit
With fftest, only entering '1' applies a left force, but I guess it's to be expected since the driver only do FF_CONSTANT (I guess it's the same on the Logitech's ?).
I also tested it in Wine with the Live For Speed (aka "LFS") S2 demo, and it seems to work quite well (tough I had to modify some small Wine code that prevented FF to work with this game, but that's another quick-and-dirty story). (OT: About Wine, if anybody can get Force Feedback working with the game Grand Prix Legends I would be very interested to know.)
I guess that a proper patch for the Thrustmaster wheel(s) would probably have better his place in hid-tmff.c (In fact I first gone that route but I had to change more code introducing more ugliness... the diff output from the hid-lgff.c version was much better for my "presentation" purpose).
That's all, I hope it will be of interest to someone :D
Signature · 1 line
Gerald Folcher
Hi Gerard,
Quoted 6 lines · Gerald Folcher
I guess that a proper patch for the Thrustmaster wheel(s) would probably have better his place in
hid-tmff.c(In fact I first gone that route but I had to change more code introducing more ugliness... the diff output from thehid-lgff.cversion was much better for my "presentation" purpose).
I wonder if the attached is all that is needed for your wheel to work...
Signature · 1 line
Dmitry
Input: HID - add support for Thrustmaster FGT Rumble Force wheel
Add Thrustmaster FGT Rumble force steering wheel to the list of devices dupported by thrustmaster force-feedback module.
--- drivers/hid/usbhid/hid-ff.c | 1 + 1 file changed, 1 insertion(+)
drivers/hid/usbhid/hid-ff.c +1 -0
@@ -67,6 +67,7 @@ static struct hid_ff_initializer inits[] #ifdef CONFIG_THRUSTMASTER_FF { 0x44f, 0xb300, hid_tmff_init }, { 0x44f, 0xb304, hid_tmff_init }, + { 0x44f, 0xb654, hid_tmff_init }, #endif #ifdef CONFIG_ZEROPLUS_FF { 0xc12, 0x0005, hid_zpff_init },
Quoted 1 line · Dmitry Torokhov
I wonder if the attached is all that is needed for your wheel to work...
No, but I think I understand where is the confusion:
It won't work because my wheel is the "Force Feedback" model, not the "Rumble Force" model which is cheaper but looks exactly the same. With your patch applied as is, my wheel will neither do rumble effects nor constant force effects, the force feedback test utilities 'ffcfstress' and 'ffmvforce' will spit an error message on startup and exit. And 'fftest' will think my wheel can do Rumble but trying such effects will effectively trigger hazardous constant forces on my wheel.
But your patch would maybe work for the actual Rumble wheel if you change the id to 0x651, which is the id of the Rumble version according to the MS-Windows registry on a machine where I installed the Thrustmaster drivers (the registry is full of id's of the wheels supported by the driver).
While the id of my wheel (Force Feedback) is: 0x654 (and according to the aforementioned MS-Windows registry there is also an id 0x652 for a Thrustmaster wheel with the same name).
Thanks for trying ;)
Signature · 1 line
Gerald Folcher
Quoted 20 lines · Gerald Folcher
Quoted 2 lines · Dmitry Torokhov
I wonder if the attached is all that is needed for your wheel to work...
No, but I think I understand where is the confusion:
It won't work because my wheel is the "Force Feedback" model, not the "Rumble Force" model which is cheaper but looks exactly the same. With your patch applied as is, my wheel will neither do rumble effects nor constant force effects, the force feedback test utilities 'ffcfstress' and 'ffmvforce' will spit an error message on startup and exit. And 'fftest' will think my wheel can do Rumble but trying such effects will effectively trigger hazardous constant forces on my wheel.But your patch would maybe work for the actual Rumble wheel if you change the id to
0x651, which is the id of the Rumble version according to the MS-Windows registry on a machine where I installed the Thrustmaster drivers (the registry is full of id's of the wheels supported by the driver).
Quoted 3 lines
While the id of my wheel (Force Feedback) is:
0x654(and according to the aforementioned MS-Windows registry there is also an id0x652for a Thrustmaster wheel with the same name).
Could you perhaps provide the kernel log output when you plug your device in with CONFIG_HID_DEBUG enabled in kernel configuration?
Thanks,
Signature · 1 line
Anssi Hannula
Quoted 2 lines · Anssi Hannula
Could you perhaps provide the kernel log output when you plug your device in with
CONFIG_HID_DEBUGenabled in kernel configuration?
Ok, after setting CONFIG_HID_DEBUG=y here's what got appended in the '/var/log/kern.log' file when I plugged the device (see attachment).
(Btw it's from the kernel with my little modification if that would make any difference)
Signature · 1 line
Gerald Folcher
Jul 16 20:19:41 starship kernel: usb 4-1: new full speed USB device using uhci_hcd and address 2 Jul 16 20:19:41 starship kernel: usb 4-1: configuration #1 chosen from 1 choice Jul 16 20:19:41 starship kernel: drivers/hid/usbhid/hid-core.c: report descriptor (size 144, read 144) = 05 01 09 04 a1 01 09 01 a1 00 85 81 06 00 ff 15 00 27 ff ff 00 00 09 01 09 02 75 10 95 02 b1 a2 85 82 09 03 09 04 25 7f 75 08 95 02 b1 02 85 01 05 09 19 01 29 0a 25 01 75 01 95 0a 81 02 75 08 95 01 81 01 05 01 09 39 25 07 35 00 46 3b 01 65 14 75 04 81 42 09 30 46 ff 03 16 00 fe 26 ff 01 65 00 75 0a 95 01 81 02 09 31 46 ff 00 15 00 26 ff 00 75 08 81 02 09 35 81 02 c0 85 40 09 bb 15 00 26 ff 00 35 00 46 ff 00 75 08 95 04 91 02 c0 Jul 16 20:19:41 starship kernel: drivers/hid/hid-core.c: report (size 1) (numbered) Jul 16 20:19:41 starship kernel: drivers/hid/hid-core.c: report 1 (size 0) = Jul 16 20:19:41 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0004 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0005 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0006 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0007 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0008 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.0009 = 0 Jul 16 20:19:41 starship kernel: hid-debug: input Button.000a = 0 Jul 16 20:19:41 starship kernel: hid-debug: input GenericDesktop.HatSwitch = 0 Jul 16 20:19:41 starship kernel: hid-debug: input GenericDesktop.X = 0 Jul 16 20:19:41 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:19:41 starship kernel: hid-debug: input GenericDesktop.Rz = 0 Jul 16 20:19:41 starship kernel: INPUT(1)[INPUT] Jul 16 20:19:41 starship kernel: Field(0) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(10) Jul 16 20:19:41 starship kernel: Button.0001 Jul 16 20:19:41 starship kernel: Button.0002 Jul 16 20:19:41 starship kernel: Button.0003 Jul 16 20:19:41 starship kernel: Button.0004 Jul 16 20:19:41 starship kernel: Button.0005 Jul 16 20:19:41 starship kernel: Button.0006 Jul 16 20:19:41 starship kernel: Button.0007 Jul 16 20:19:41 starship kernel: Button.0008 Jul 16 20:19:41 starship kernel: Button.0009 Jul 16 20:19:41 starship kernel: Button.000a Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(1) Jul 16 20:19:41 starship kernel: Report Size(1) Jul 16 20:19:41 starship kernel: Report Count(10) Jul 16 20:19:41 starship kernel: Report Offset(0) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: Field(1) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(1) Jul 16 20:19:41 starship kernel: GenericDesktop.HatSwitch Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(7) Jul 16 20:19:41 starship kernel: Physical Minimum(0) Jul 16 20:19:41 starship kernel: Physical Maximum(315) Jul 16 20:19:41 starship kernel: Unit(English Rotation : Degrees) Jul 16 20:19:41 starship kernel: Report Size(4) Jul 16 20:19:41 starship kernel: Report Count(1) Jul 16 20:19:41 starship kernel: Report Offset(18) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute NullState ) Jul 16 20:19:41 starship kernel: Field(2) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(1) Jul 16 20:19:41 starship kernel: GenericDesktop.X Jul 16 20:19:41 starship kernel: Logical Minimum(-512) Jul 16 20:19:41 starship kernel: Logical Maximum(511) Jul 16 20:19:41 starship kernel: Physical Minimum(0) Jul 16 20:19:41 starship kernel: Physical Maximum(1023) Jul 16 20:19:41 starship kernel: Report Size(10) Jul 16 20:19:41 starship kernel: Report Count(1) Jul 16 20:19:41 starship kernel: Report Offset(22) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: Field(3) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(1) Jul 16 20:19:41 starship kernel: GenericDesktop.Y Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(255) Jul 16 20:19:41 starship kernel: Physical Minimum(0) Jul 16 20:19:41 starship kernel: Physical Maximum(255) Jul 16 20:19:41 starship kernel: Report Size(8) Jul 16 20:19:41 starship kernel: Report Count(1) Jul 16 20:19:41 starship kernel: Report Offset(32) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: Field(4) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(1) Jul 16 20:19:41 starship kernel: GenericDesktop.Rz Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(255) Jul 16 20:19:41 starship kernel: Physical Minimum(0) Jul 16 20:19:41 starship kernel: Physical Maximum(255) Jul 16 20:19:41 starship kernel: Report Size(8) Jul 16 20:19:41 starship kernel: Report Count(1) Jul 16 20:19:41 starship kernel: Report Offset(40) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: OUTPUT(64)[OUTPUT] Jul 16 20:19:41 starship kernel: Field(0) Jul 16 20:19:41 starship kernel: Usage(4) Jul 16 20:19:41 starship kernel: GenericDesktop.00bb Jul 16 20:19:41 starship last message repeated 3 times Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(255) Jul 16 20:19:41 starship kernel: Physical Minimum(0) Jul 16 20:19:41 starship kernel: Physical Maximum(255) Jul 16 20:19:41 starship kernel: Report Size(8) Jul 16 20:19:41 starship kernel: Report Count(4) Jul 16 20:19:41 starship kernel: Report Offset(0) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: FEATURE(129)[FEATURE] Jul 16 20:19:41 starship kernel: Field(0) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(2) Jul 16 20:19:41 starship kernel: ff00.0001 Jul 16 20:19:41 starship kernel: ff00.0002 Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(65535) Jul 16 20:19:41 starship kernel: Report Size(16) Jul 16 20:19:41 starship kernel: Report Count(2) Jul 16 20:19:41 starship kernel: Report Offset(0) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute NoPrefferedState Volatile ) Jul 16 20:19:41 starship kernel: FEATURE(130)[FEATURE] Jul 16 20:19:41 starship kernel: Field(0) Jul 16 20:19:41 starship kernel: Physical(GenericDesktop.Pointer) Jul 16 20:19:41 starship kernel: Usage(2) Jul 16 20:19:41 starship kernel: ff00.0003 Jul 16 20:19:41 starship kernel: ff00.0004 Jul 16 20:19:41 starship kernel: Logical Minimum(0) Jul 16 20:19:41 starship kernel: Logical Maximum(127) Jul 16 20:19:41 starship kernel: Report Size(8) Jul 16 20:19:41 starship kernel: Report Count(2) Jul 16 20:19:41 starship kernel: Report Offset(0) Jul 16 20:19:41 starship kernel: Flags( Variable Absolute ) Jul 16 20:19:41 starship kernel: Mapping: Button.0001 ---> Key.Trigger Jul 16 20:19:41 starship kernel: Mapping: Button.0002 ---> Key.ThumbBtn Jul 16 20:19:41 starship kernel: Mapping: Button.0003 ---> Key.ThumbBtn2 Jul 16 20:19:41 starship kernel: Mapping: Button.0004 ---> Key.TopBtn Jul 16 20:19:41 starship kernel: Mapping: Button.0005 ---> Key.TopBtn2 Jul 16 20:19:41 starship kernel: Mapping: Button.0006 ---> Key.PinkieBtn Jul 16 20:19:41 starship kernel: Mapping: Button.0007 ---> Key.BaseBtn Jul 16 20:19:41 starship kernel: Mapping: Button.0008 ---> Key.BaseBtn2 Jul 16 20:19:41 starship kernel: Mapping: Button.0009 ---> Key.BaseBtn3 Jul 16 20:19:41 starship kernel: Mapping: Button.000a ---> Key.BaseBtn4 Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.HatSwitch ---> Absolute.Hat0X Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.X ---> Absolute.X Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.Y ---> Absolute.Y Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.Rz ---> Absolute.Rz Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.00bb ---> Absolute.Misc Jul 16 20:19:41 starship kernel: Mapping: GenericDesktop.00bb ---> Absolute.? Jul 16 20:19:41 starship last message repeated 2 times Jul 16 20:19:41 starship kernel: input: Thrustmaster Thrustmasterforce feedback wheel as /class/input/input6 Jul 16 20:19:41 starship kernel: Force feedback for Logitech force feedback devices by Johann Deneux <[email protected]> Jul 16 20:19:41 starship kernel: input: USB HID v1.10 Joystick [Thrustmaster Thrustmasterforce feedback wheel] on usb-0000:00:13.1-1 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe 01 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 01 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe fe 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 fe ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -2 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:11 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff ff 00 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:11 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff ff 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff ff 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 00 ff 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 ff 00 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0 Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report (size 4) (unnumbered) Jul 16 20:20:12 starship kernel: drivers/hid/hid-core.c: report 0 (size 4) = 00 00 ff 00 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0001 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0002 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input Button.0003 = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.X = 0 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Y = -1 Jul 16 20:20:12 starship kernel: hid-debug: input GenericDesktop.Wheel = 0
Quoted 18 lines · Gerald Folcher
Quoted 1 line · Dmitry Torokhov
I wonder if the attached is all that is needed for your wheel to work...
No, but I think I understand where is the confusion:
It won't work because my wheel is the "Force Feedback" model, not the "Rumble Force" model which is cheaper but looks exactly the same. With your patch applied as is, my wheel will neither do rumble effects nor constant force effects, the force feedback test utilities 'ffcfstress' and 'ffmvforce' will spit an error message on startup and exit. And 'fftest' will think my wheel can do Rumble but trying such effects will effectively trigger hazardous constant forces on my wheel.But your patch would maybe work for the actual Rumble wheel if you change the id to
0x651, which is the id of the Rumble version according to the MS-Windows registry on a machine where I installed the Thrustmaster drivers (the registry is full of id's of the wheels supported by the driver).
Quoted 4 lines
While the id of my wheel (Force Feedback) is:
0x654(and according to the aforementioned MS-Windows registry there is also an id0x652for a Thrustmaster wheel with the same name).
OK, how about this then?
Signature · 1 line
Dmitry
Input: HID - add support for Thrustmaster FGT Force Feedback wheel
Rework thrustmaster force-feedback module to support devices having different types of force feedback effects. Add signatures of Thrustmaster FGT Rumble Force and Thrustmaster FGT Force Feedback wheels to the list of devices dupported by tthe module.
--- drivers/hid/usbhid/hid-ff.c | 2 drivers/hid/usbhid/hid-tmff.c | 136 +++++++++++++++++++++++++++++------------- 2 files changed, 99 insertions(+), 39 deletions(-)
drivers/hid/usbhid/hid-ff.c +2 -0
@@ -67,6 +67,8 @@ static struct hid_ff_initializer inits[] #ifdef CONFIG_THRUSTMASTER_FF { 0x44f, 0xb300, hid_tmff_init }, { 0x44f, 0xb304, hid_tmff_init }, + { 0x44f, 0xb651, hid_tmff_init }, /* FGT Rumble Force Wheel */ + { 0x44f, 0xb654, hid_tmff_init }, /* FGT Force Feedback Wheel */ #endif #ifdef CONFIG_ZEROPLUS_FF { 0xc12, 0x0005, hid_zpff_init },
drivers/hid/usbhid/hid-tmff.c +97 -39
178 lines not on this page · raw message
Quoted 7 lines · Gerald Folcher
Quoted 2 lines · Anssi Hannula
Could you perhaps provide the kernel log output when you plug your device in with
CONFIG_HID_DEBUGenabled in kernel configuration?Ok, after setting
CONFIG_HID_DEBUG=yhere's what got appended in the '/var/log/kern.log' file when I plugged the device (see attachment).
Try the attached patch.
Signature · 1 line
Anssi Hannula
From: Anssi Hannula <[email protected]>
Input: HID - add support for Thrustmaster FGT Rumble Force wheel
Add support for devices that have FF_CONSTANT instead of FF_RUMBLE into hid-tmff.c, and add Thrustmaster Ferrari GT 2-in-1 Force Feedback into the list of such devices.
--- Kconfig | 7 +++-- hid-ff.c | 1 hid-tmff.c | 74 +++++++++++++++++++++++++++++++++++++++++++------------------ 3 files changed, 58 insertions(+), 24 deletions(-)
drivers/hid/usbhid/Kconfig +4 -3
@@ -79,12 +79,13 @@ config PANTHERLORD_FF to enable force feedback support for it. config THRUSTMASTER_FF - bool "ThrustMaster FireStorm Dual Power 2 support (EXPERIMENTAL)" + bool "ThrustMaster devices support (EXPERIMENTAL)" depends on HID_FF && EXPERIMENTAL select INPUT_FF_MEMLESS if USB_HID help - Say Y here if you have a THRUSTMASTER FireStore Dual Power 2, - and want to enable force feedback support for it. + Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or + Thrustmaster Ferrari GT 2-in-1 Force Feedback and want to enable force + feedback support for it. Note: if you say N here, this device will still be supported, but without force feedback.
drivers/hid/usbhid/hid-ff.c +1 -0
@@ -67,6 +67,7 @@ static struct hid_ff_initializer inits[] = { #ifdef CONFIG_THRUSTMASTER_FF { 0x44f, 0xb300, hid_tmff_init }, { 0x44f, 0xb304, hid_tmff_init }, + { 0x44f, 0xb654, hid_tmff_init }, /* Thrustmaster Ferrari GT 2-in-1 Force Feedback */ #endif #ifdef CONFIG_ZEROPLUS_FF { 0xc12, 0x0005, hid_zpff_init },
drivers/hid/usbhid/hid-tmff.c +53 -21
126 lines not on this page · raw message
Quoted 3 lines · Dmitry Torokhov
OK, how about this then?
Ignore it, it missing couple of bits; Anssi's is more complete I think.
Signature · 1 line
Dmitry
Quoted 7 lines · Dmitry Torokhov
Quoted 3 lines · Dmitry Torokhov
OK, how about this then?
Ignore it, it missing couple of bits; Anssi's is more complete I think.
Not quite what I wanted either, what about this one?
Signature · 1 line
Dmitry
Input: HID - add support for Thrustmaster FGT Force Feedback wheel
Rework thrustmaster force-feedback module to support devices having different types of force feedback effects. Add signatures of Thrustmaster FGT Rumble Force and Thrustmaster FGT Force Feedback wheels to the list of devices dupported by tthe module.
Parts of the patch were lifted off a simalar patch by Anssi Hannula <[email protected]>
--- drivers/hid/usbhid/Kconfig | 5 - drivers/hid/usbhid/hid-ff.c | 2 drivers/hid/usbhid/hid-tmff.c | 161 +++++++++++++++++++++++++++++++----------- 3 files changed, 124 insertions(+), 44 deletions(-)
drivers/hid/usbhid/hid-ff.c +2 -0
@@ -67,6 +67,8 @@ static struct hid_ff_initializer inits[] #ifdef CONFIG_THRUSTMASTER_FF { 0x44f, 0xb300, hid_tmff_init }, { 0x44f, 0xb304, hid_tmff_init }, + { 0x44f, 0xb651, hid_tmff_init }, /* FGT Rumble Force Wheel */ + { 0x44f, 0xb654, hid_tmff_init }, /* FGT Force Feedback Wheel */ #endif #ifdef CONFIG_ZEROPLUS_FF { 0xc12, 0x0005, hid_zpff_init },
drivers/hid/usbhid/hid-tmff.c +119 -42
219 lines not on this page · raw message
drivers/hid/usbhid/Kconfig +3 -2
@@ -79,11 +79,12 @@ config PANTHERLORD_FF to enable force feedback support for it. config THRUSTMASTER_FF - bool "ThrustMaster FireStorm Dual Power 2 support (EXPERIMENTAL)" + bool "ThrustMaster devices support (EXPERIMENTAL)" depends on HID_FF && EXPERIMENTAL select INPUT_FF_MEMLESS if USB_HID help - Say Y here if you have a THRUSTMASTER FireStore Dual Power 2, + Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or + a THRUSTMASTER Ferrari GT Rumble Force or Force Feedback Wheel, and want to enable force feedback support for it. Note: if you say N here, this device will still be supported, but without force feedback.
Quoted 1 line · Dmitry Torokhov
Not quite what I wanted either, what about this one?
Ok, great, I tried both patches alternatively (this last one from Dmitry, and the previous Anssi's one) and they both worked well for my Thrustmaster FGT Force Feedback wheel (tested with the fftest, ffcfstress, and ffmvforce utilities).
Thanks you both for doing patches so fast :)
(OT: Btw, I'm sorry for the delay, I wanted to test it ASAP but ran into problems after upgrading the kernel with a something-git7 patch, it wouldn't compile (don't worry it's completely unrelated to your patches). Finally, after trying numerous unfruitful random things, I was able to compile after getting a very recent version of the kernel tree using git.)
Thanks.
Signature · 1 line
Gerald Folcher
Gerald Folcher wrote:
<snip>
Quoted 1 line
0x651, which is the id of the Rumble version
<snip>
Quoted 1 line
While the id of my wheel (Force Feedback) is:
0x654(and according to the aforementioned MS-Windows registry there is also an id0x652for a Thrustmaster wheel with the same name).
Btw, just to correct myself (of course Anssi and Dmitry understood what I meant), since these messages are archived and for correctness sake: I forgot the 'b's in the ids I mentionned, so they are in fact respectively 0xb651, 0xb654, and 0xb652. Phew, now I feel better.
(Sorry for the noise.)
Signature · 1 line
Gerald Folcher
Quoted 10 lines · Gerald Folcher
Quoted 1 line · Dmitry Torokhov
Not quite what I wanted either, what about this one?
Ok, great, I tried both patches alternatively (this last one from Dmitry, and the previous Anssi's one) and they both worked well for my Thrustmaster FGT Force Feedback wheel (tested with the fftest, ffcfstress, and ffmvforce utilities).
Thanks you both for doing patches so fast :)
Thank you for testing. Jiri, please consider adding to your tree.
Signature · 1 line
Dmitry
Input: HID - add support for Thrustmaster FGT Force Feedback wheel
Rework thrustmaster force-feedback module to support devices having different types of force feedback effects. Add signatures of Thrustmaster FGT Rumble Force and Thrustmaster FGT Force Feedback wheels to the list of devices dupported by tthe module.
Parts of the patch were lifted off a simalar patch by Anssi Hannula <[email protected]>
--- drivers/hid/usbhid/Kconfig | 5 - drivers/hid/usbhid/hid-ff.c | 2 drivers/hid/usbhid/hid-tmff.c | 161 +++++++++++++++++++++++++++++++----------- 3 files changed, 124 insertions(+), 44 deletions(-)
drivers/hid/usbhid/hid-ff.c +2 -0
@@ -67,6 +67,8 @@ static struct hid_ff_initializer inits[] #ifdef CONFIG_THRUSTMASTER_FF { 0x44f, 0xb300, hid_tmff_init }, { 0x44f, 0xb304, hid_tmff_init }, + { 0x44f, 0xb651, hid_tmff_init }, /* FGT Rumble Force Wheel */ + { 0x44f, 0xb654, hid_tmff_init }, /* FGT Force Feedback Wheel */ #endif #ifdef CONFIG_ZEROPLUS_FF { 0xc12, 0x0005, hid_zpff_init },
drivers/hid/usbhid/hid-tmff.c +119 -42
219 lines not on this page · raw message
drivers/hid/usbhid/Kconfig +3 -2
@@ -79,11 +79,12 @@ config PANTHERLORD_FF to enable force feedback support for it. config THRUSTMASTER_FF - bool "ThrustMaster FireStorm Dual Power 2 support (EXPERIMENTAL)" + bool "ThrustMaster devices support (EXPERIMENTAL)" depends on HID_FF && EXPERIMENTAL select INPUT_FF_MEMLESS if USB_HID help - Say Y here if you have a THRUSTMASTER FireStore Dual Power 2, + Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or + a THRUSTMASTER Ferrari GT Rumble Force or Force Feedback Wheel, and want to enable force feedback support for it. Note: if you say N here, this device will still be supported, but without force feedback.
Quoted 6 lines · Dmitry Torokhov
Quoted 5 lines
Ok, great, I tried both patches alternatively (this last one from Dmitry, and the previous Anssi's one) and they both worked well for my Thrustmaster FGT Force Feedback wheel (tested with the fftest, ffcfstress, and ffmvforce utilities).
Thanks you both for doing patches so fast :)Thank you for testing. Jiri, please consider adding to your tree.
Hi,
sorry for late reply, I was offline on vacation.
I have fixed a minor typo in the patch changelog and applied it to my tree, thanks a lot.
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 1 line · Jiri Kosina
I have fixed a minor typo in the patch changelog and applied it to my tree, thanks a lot.
Please excuse my probable lack of a clue, but does that mean it is in the "HID development tree" ? Because I looked using the web interface at
http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=tree;f=drivers/hid/usbhid;h=ada3794226b04c38854c4c5bd8813a85e02328a2;hb=HEAD
and the hid-ff.c and hid-tmff.c files there seems to not include the changes. (?)
Signature · 1 line
Gerald Folcher
Quoted 5 lines · Gerald Folcher
Please excuse my probable lack of a clue, but does that mean it is in the "HID development tree" ? Because I looked using the web interface at
http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=tree;f=drivers/hid/usbhid;h=ada3794226b04c38854c4c5bd8813a85e02328a2;hb=HEAD
and thehid-ff.candhid-tmff.cfiles there seems to not include the changes. (?)
Hi Gerald,
you were looking at the 'master' branch of the tree, but the patch is comitted in the 'upstream' branch -- please look at
http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=shortlog;h=upstream
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 1 line · Jiri Kosina
you were looking at the 'master' branch of the tree, but the patch is comitted in the 'upstream' branch -- please look at http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=shortlog;h=upstream
Ah ok, I didn't knew that, thanks a lot for your explanation. And sorry for the noise :)
Signature · 1 line
Gerald Folcher