Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux force feedback wheel support
02-21-2007, 07:08 AM,
#1
Linux force feedback wheel support
I've just finished coding something that I think should work for force feedback in Linux for VDrift. If you have a working force feedback device please try it out.

Prerequisites:
* a steering wheel supporting constant force effects (like my Logitech Momo Racing force feedback steering wheel)
* Linux
* HID_FF is enabled in your kernel
* your device's USB ID is in kernel-source/drivers/usb/input/hid-ff.c
* the ff-utils test program ffcfstress works for you. Note the device name you use with this program (should be /dev/input/eventX).
* VDrift SVN r1547 or later

Once you've met the prereqs, now recompile vdrift like this:
Code:
scons force_feedback=1

Now open your VDrift.config. Find the section [ joystick ] and add the following line to the joystick section somewhere:
Code:
ff_device = /dev/input/event0
change event0 to whatever device you should use (the one that worked with ffcfstress).

Start up VDrift. Start a practice game. You should feel a force effect on your steering wheel based on the aligning moment force from the front tires.


The code is adapted from the ffcfstress program into a class which is initialized by VAMOSWORLD. I only added support for Linux now but adding Windows support should be easy, since the driver support there is much better. I'm not sure what to do about OS X or FreeBSD...

I haven't tested it yet. It took me a while to test out force-feedback at all, and after I found it worked, coding the force feedback class was easy. However something is broken with my NVIDIA driver; since I had to compile a custom kernel to enable HID_FF in Ubuntu, I've had to recompile the NVIDIA driver, and while X starts OK, I get "Couldn't find matching GLX visual" errors when trying to run 3D apps...anyway I'm pretty sure that the force-feedback support should work. Somebody please give it a try and let me know how it goes.

Thanks to stenyak and jdeneux for help figuring out how to set this up, and also to Oliver Hamann who wrote the ffcfstress program.
Reply


Messages In This Thread
Linux force feedback wheel support - by thelusiv - 02-21-2007, 07:08 AM
Re: Linux force feedback wheel support - by Nigo - 02-21-2007, 01:48 PM
[No subject] - by thelusiv - 02-21-2007, 08:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-22-2007, 12:29 AM
[No subject] - by stenyak - 02-22-2007, 02:58 PM
[No subject] - by jdeneux - 02-22-2007, 05:29 PM
[No subject] - by Jey - 02-22-2007, 09:34 PM
[No subject] - by thelusiv - 02-22-2007, 11:57 PM
[No subject] - by stenyak - 02-23-2007, 11:34 AM
[No subject] - by stenyak - 02-24-2007, 12:01 PM
[No subject] - by thelusiv - 02-25-2007, 12:36 PM
[No subject] - by stenyak - 02-25-2007, 12:38 PM
[No subject] - by thelusiv - 02-25-2007, 12:39 PM
[No subject] - by jdeneux - 02-25-2007, 01:39 PM
[No subject] - by thelusiv - 02-25-2007, 03:25 PM
[No subject] - by jdeneux - 02-26-2007, 05:29 PM
[No subject] - by thelusiv - 02-27-2007, 06:19 AM
[No subject] - by jdeneux - 03-01-2007, 03:04 PM
[No subject] - by stenyak - 03-01-2007, 04:41 PM
[No subject] - by Kada - 03-01-2007, 09:42 PM
[No subject] - by thelusiv - 03-02-2007, 02:59 AM
G25 Wheel - by anrp - 03-02-2007, 11:50 PM
[No subject] - by Kada - 03-03-2007, 12:47 AM
[No subject] - by Kada - 03-03-2007, 11:39 AM
[No subject] - by thelusiv - 03-03-2007, 07:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-03-2007, 10:11 PM
[No subject] - by stenyak - 03-03-2007, 10:49 PM
[No subject] - by thelusiv - 03-04-2007, 07:04 AM
[No subject] - by stenyak - 03-04-2007, 07:12 AM
[No subject] - by thelusiv - 03-04-2007, 07:17 AM
[No subject] - by stenyak - 03-04-2007, 09:36 AM
[No subject] - by thelusiv - 03-05-2007, 04:58 AM
[No subject] - by Kada - 03-06-2007, 09:33 PM
[No subject] - by thelusiv - 03-07-2007, 01:57 AM
[No subject] - by Noneus - 03-07-2007, 07:07 AM
[No subject] - by Kada - 03-07-2007, 09:57 AM
[No subject] - by jdeneux - 03-07-2007, 02:32 PM
[No subject] - by thelusiv - 03-07-2007, 07:09 PM
[No subject] - by Kada - 03-07-2007, 10:02 PM
[No subject] - by thelusiv - 03-07-2007, 10:26 PM
libff.sf.net - by jdeneux - 03-10-2007, 09:32 AM
[No subject] - by kyousai - 11-03-2007, 05:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)