Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ubuntu 8.10 64 bits enable force feedback G25
07-10-2009, 04:21 AM,
#10
 
no, I just cut n paste the patch file for version 2.6.28. Strange. Here is what I have.

Code:
diff -Naur linux-source-2.6.28/drivers/hid/hid-core.c linux-source-2.6.28.patched/drivers/hid/hid-core.c
--- linux-source-2.6.28/drivers/hid/hid-core.c  2009-04-08 06:38:33.000000000 +0200
+++ linux-source-2.6.28.patched/drivers/hid/hid-core.c  2009-04-10 14:15:27.000000000 +0200
@@ -1290,6 +1290,7 @@
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FORCE3D_PRO) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2) },
        { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_SIDEWINDER_GV) },
        { HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_NE4K) },
diff -Naur linux-source-2.6.28/drivers/hid/hid-ids.h linux-source-2.6.28.patched/drivers/hid/hid-ids.h
--- linux-source-2.6.28/drivers/hid/hid-ids.h   2008-12-25 00:26:37.000000000 +0100
+++ linux-source-2.6.28.patched/drivers/hid/hid-ids.h   2009-04-10 14:12:44.000000000 +0200
@@ -291,6 +291,7 @@
#define USB_DEVICE_ID_LOGITECH_FORCE3D_PRO     0xc286
#define USB_DEVICE_ID_LOGITECH_WHEEL   0xc294
#define USB_DEVICE_ID_LOGITECH_MOMO_WHEEL      0xc295
+#define USB_DEVICE_ID_LOGITECH_G25_WHEEL       0xc299
#define USB_DEVICE_ID_LOGITECH_ELITE_KBD       0xc30a
#define USB_DEVICE_ID_LOGITECH_KBD     0xc311
#define USB_DEVICE_ID_S510_RECEIVER    0xc50c
diff -Naur linux-source-2.6.28/drivers/hid/hid-lg.c linux-source-2.6.28.patched/drivers/hid/hid-lg.c
--- linux-source-2.6.28/drivers/hid/hid-lg.c    2008-12-25 00:26:37.000000000 +0100
+++ linux-source-2.6.28.patched/drivers/hid/hid-lg.c    2009-04-10 14:14:17.000000000 +0200
@@ -304,6 +304,8 @@
                .driver_data = LG_FF },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2),
                .driver_data = LG_FF },
+       { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL),
+               .driver_data = LG_FF },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2),
                .driver_data = LG_FF2 },
        { }

I tried manually adding the G25 entries to the 3x files mentioned in the patch file, but after compiling and rebooting I did not managed to get FF happening. But I also found that the menu config for the kernel is different and is not like suggested below;

Quote:Go to Device Drivers , and HID Devices and enable the following options

Force feedback support (EXPERIMENTAL)
PID device support
Logitech devices support
Logitech Rumblepad 2 support
PantherLord/GreenAsia based device support
ThrustMaster devices support
Zeroplus based game controller support

In the device drivers -> HID Devices there is another menu "special special HID drivers" and in there there is;

Quote: │ │ < > DragonRise Inc. force feedback support │ │
│ │ -*- Logitech │ │
│ │ [*] Logitech force feedback │ │
│ │ [*] Logitech Rumblepad 2 force feedback │ │
│ │ -*- Pantherlord devices support │ │
│ │ [*] Pantherlord force feedback support │ │
│ │ < > GreenAsia (Product ID 0x12) force feedback support │ │
│ │ <M> ThrustMaster devices support │ │
│ │ <M> Zeroplus based game controller support
plus in the menu above i have PID support enabled.

Do I still need to do this from what I found in another post?

Quote:KERNEL=="event*", MODE="660", GROUP="games"
BUS=="usb", SYSFS{product}=="G25 Racing Wheel", SYSFS{idVendor}=="046d", ACTION=="remove", RUN+="/etc/init.d/usbhid restart"
BUS=="usb", SYSFS{product}=="G25 Racing Wheel", SYSFS{idVendor}=="046d", ACTION=="add", RUN+="/etc/init.d/usbhid start"

Quote:#!/bin/sh
#

start() {
/sbin/modprobe usbhid
}

stop() {
/sbin/modprobe -r joydev usbhid
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: /etc/init.d/usbhid {start|stop|restart}"
exit 1
esac

Cheers![/code]
Reply


Messages In This Thread
[No subject] - by joevenzon_phpbb2_import3 - 04-08-2009, 10:15 AM
[No subject] - by tof8pool - 04-08-2009, 10:29 AM
[No subject] - by tof8pool - 04-08-2009, 11:24 AM
[No subject] - by thelusiv - 04-09-2009, 03:40 PM
[No subject] - by rmcooke - 07-08-2009, 08:30 AM
[No subject] - by tof8pool - 07-08-2009, 02:23 PM
patch errors failed hunk - by DrP - 07-09-2009, 09:08 AM
[No subject] - by tof8pool - 07-10-2009, 01:51 AM
[No subject] - by DrP - 07-10-2009, 04:21 AM
[No subject] - by rmcooke - 07-10-2009, 07:06 AM
[No subject] - by DrP - 07-10-2009, 08:53 AM
[No subject] - by rmcooke - 07-10-2009, 09:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)