[PATCH 1/1] Force feedback for Fanatec Clubsport wheel

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

 



Hi!

I am trying to add support for force feedback for the "Fanatec Clubsport
Wheel Base V2". (More information at
http://www.fanatec.com/eu-de/wheel-bases/clubsport-wheel-base-v2-eu-eu.html
)
It is a configurable racing wheel for enthusiasts.

Using a simple hack (by handling it somewhat like a Logitech G27, see
patch below) I managed to get constant force effects working.
However, the wheel only ever moves towards the right (no matter which
effect direction or value is specified). Also (less important), the
spring centering isn't turned off automatically like it is for Logitech
wheels.
>From looking at the kernel source, I get the impression that there's no
real standard for HID force feedback... so is there anything I can try
except USB debugging (which I can't) and contacting the manufacturer
(who seem to have no interest in supporting Linux)?

Best regards,
  Florian


-- 
Dipl.-Inform. Florian Fischer
Würzburger Institut für Verkehrswissenschaften GmbH (WIVW)
Robert-Bosch-Str. 4            97209 Veitshöchheim
Tel:   0931-78009105           Fax:   0931-78009150
E-Mail: fischer@xxxxxxx        Homepage: www.wivw.de
Handelsregister HRB 6430 Sitz Würzburg
Umsatzsteuer ID: DE 198235088
Geschäftsführung: Dr. Armin Kaussner, Alexandra Neukum
--- original/linux-4.4.6/drivers/hid/hid-lg.c	2016-03-16 16:43:17.000000000 +0100
+++ linux-4.4.6/drivers/hid/hid-lg.c	2016-06-02 14:55:27.405330126 +0200
@@ -818,6 +818,9 @@
 		.driver_data = LG_RDESC_REL_ABS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACETRAVELLER),
 		.driver_data = LG_RDESC_REL_ABS },
+	// FF TEST
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ENDOR, USB_DEVICE_ID_ENDOR_CLUBSPORT_WHEEL),
+		.driver_data = LG_FF4 }, 
 	{ }
 };
 
--- original/linux-4.4.6/drivers/hid/hid-lg4ff.c	2016-03-16 16:43:17.000000000 +0100
+++ linux-4.4.6/drivers/hid/hid-lg4ff.c	2016-06-02 14:55:36.357330101 +0200
@@ -146,7 +146,8 @@
 	{USB_DEVICE_ID_LOGITECH_G27_WHEEL,   lg4ff_wheel_effects, 40, 900, lg4ff_set_range_g25},
 	{USB_DEVICE_ID_LOGITECH_G29_WHEEL,   lg4ff_wheel_effects, 40, 900, lg4ff_set_range_g25},
 	{USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2, lg4ff_wheel_effects, 40, 270, NULL},
-	{USB_DEVICE_ID_LOGITECH_WII_WHEEL,   lg4ff_wheel_effects, 40, 270, NULL}
+	{USB_DEVICE_ID_LOGITECH_WII_WHEEL,   lg4ff_wheel_effects, 40, 270, NULL},
+	{USB_DEVICE_ID_ENDOR_CLUBSPORT_WHEEL, lg4ff_wheel_effects, 40, 900, NULL} 
 };
 
 static const struct lg4ff_multimode_wheel lg4ff_multimode_wheels[] = {

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

  Powered by Linux