Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DFP on Linux - Discussion & Development
07-25-2009, 04:11 PM,
#1
DFP on Linux - Discussion & Development
Hi folks!

I've been reading through some of the old stuff on here, and I think it's time to get the Logitech Driving Force Pro wheel working 100% under linux. With the work that's been done before, esp. the G25 stuff, I don't think it should be too hard.

What I've gotten so far:
* Using this info and tof8pool's kernel patch, I've added the unique hardware ID for the DFP to the kernel. I'll try to make an actual patch later - basically, take the 2.6.28 patch, s/299/298/, s/G25/DFP/

* Grabbed the G25manage app, tweaked it to use the few known DFP commands.

At this point, I can put the wheel into native mode & set 900 deg rotation. As soon as I put it into native mode, the device (/dev/input/event4) disappears [as semi-expected]. My impression was that the kernel changes would take care of this, but apparently not.

DFP initial plug-in
Code:
usb 4-1: new low speed USB device using uhci_hcd and address 3
usb 4-1: configuration #1 chosen from 1 choice
input: Logitech Logitech Driving Force as /class/input/input5
logitech 0003:046D:C294.0002: input: USB HID v1.00 Joystick [Logitech Logitech Driving Force] on usb-0000:00:10.2-1/input0
Force feedback for Logitech force feedback devices by Johann Deneux <johann>

Sending [0xf8, 0x01]
Code:
mahayana G25manage # ./G25manage --verbose --nativemode
Device opened
Kernel driver released
USB interface claimed
USB command sent
USB interface released
usb_rebind_kernel_driver_np: no device found to rebind to kernel
usb_rebind_kernel_driver_np: -19 No such device

dmesg:
Code:
usb 4-1: USB disconnect, address 3
usb 4-1: new low speed USB device using uhci_hcd and address 4
usb 4-1: configuration #1 chosen from 1 choice
logitech 0003:046D:C298.0003: timeout initializing reports
input: Logitech Logitech Driving Force Pro as /class/input/input6
logitech 0003:046D:C298.0003: input: USB HID v1.00 Joystick [Logitech Logitech Driving Force Pro] on usb-0000:00:10.2-1/input0
Force feedback for Logitech force feedback devices by Johann Deneux <johann>

sending [0xf8, 0x03]
Code:
mahayana G25manage # ./G25manage --verbose --range=900
Device opened
Kernel driver released
USB interface claimed
USB command sent
USB interface released
Device opened
Kernel driver rebinded

dmesg
Code:
logitech 0003:046D:C298.0004: parse failed
logitech: probe of 0003:046D:C298.0004 failed with error -110

Code:
mahayana G25manage # rmmod joydev; rmmod hid_logitech; rmmod usbhid; modprobe usbhid
mahayana G25manage # ls /dev/input/
by-path  event0  event1  event2  event3  mice  mouse0

Obviously, the problem is in the 'no device to rebind' error - for whatever reason, the new device at 0xc298 isn't showing up - even though it seems to be according to dmesg.

Any tips or thoughts are appreciated, I just started digging in to this, so haven't exactly done all the research I should've. I'll keep digging in my spare time, and hopefully learn a thing or two and make some progress.

//Also, I'm going to start hacking on a new user space util, hopefully one that can deal with both G25 and DFP. Or at least make my own DFPmanage program...
Reply


Messages In This Thread
DFP on Linux - Discussion & Development - by bopApocalypse - 07-25-2009, 04:11 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-26-2009, 11:55 PM
[No subject] - by thelusiv - 07-31-2009, 03:25 AM
[No subject] - by bopApocalypse - 08-08-2009, 12:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)