Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardware: simple utility for send hex commands to usb device
05-12-2008, 12:49 PM,
#20
Full G25 wheel support under Linux (except force feedback)
Hi, all.

For the happy owners of a Logitech G25 wheel that did not manage yet
to enjoy the full features of the beast under Linux, this is a small
summary of what I found on the net and my own humble experience about it
on a 2.6.22.9 Kernel (Mandriva 2008.0 x86_64) :

Note: This is only my own understanding and summarizing of what people cleverer
than me discovered by themselves. My work only consisted to put
all the stuff together in an as clear, simple and explict as possible
sum-up. See at the bottom for references and real authors.

1) when plugged in, the G25 identies itself as a Logitech Formula Force EX
USB device (046d:c294) ; you only get 4 axes and 12 buttons, that is
neither clutch pedal nor any of the 3trd to 6th gear on the grid shifter
2) to get the lacking native features of the beast, it must be sent a command
to switch to its native mode, that makes it disconnect and reconnect
as itself this time (USB device ids 046d:c299)
Note: Another similar command can also switch it to the Logitech Driving
Force Pro mode.
3) to send the command, you need a userland tool that basically writes
the associated bytes on the USB device, and the one I am using is
usbtool <ftp>
(the package includes pre-built binaries for python 2.5,
and sources if you need to build it yourself) ;

to switch the G25 to its native mode, after plugging it in, I simply use :
./usbtool -v g25-set-extended-mode

Note: you can also send other pre-configured commands with the usbtool
(run ./usbtool --list-commands to see which)
like g25-set-range-wheel-900 (teasing ;-)
BUT: I never succeeded to send 2 successive commands to the device :
the first one is generally OK (sometimes, though, you may need to repeat
it), but the second (and following ones) seems to be completely ignored.

4) but this makes disappear the /dev/jsX and /dev/input/eventY devices !
to get them back and be able to play with the G25, I use :
sudo rmmod joydev
sudo rmmod usbhid
sudo modprobe usbhid
(man sudo and sudoers to be able to run these root commands)

5) Then, if you find that the "dead zone" at the center of the wheel
is too large (the centered angle where nothing happens when you steer into),
it is only beacause you need to calibrate your device.
I use jscal (ff-utils @ http://www.sourceforge.net/projects/libff)
to do that :
a) plug-in the device
b) send the native mode-switch command if you like (see above 3)
c) jscal -c /dev/jsX (X being 0, 1, ... look which in /dev after plugging-in)
d) jstest /dev/jsX (to test if everything fits your desire)
e) jscal -p /dev/jsX (to get the jscal command to put in your .bashrc
or any script you would run before your favorite games ...)

Note: All this stuff should also work for a Driving Force Pro, and some says
that it's also true for the Momo Racing wheels ... but don't tested.

Now, as far as force feedback is concerned, I have no such good news
for the moment : fftest and ffcstress don't work for me for the moment.

References:

Thanks to avl, eckzow, anrp, thelusiv, tof8pool, synapse247 and cuckoo,
on http://vdrift.net forum :
http://vdrift.net/Forum/viewtopic.php?t=...sc&start=0
http://vdrift.net/Forum/viewtopic.php?t=...c&start=45
http://vdrift.net/Forum/viewtopic.php?t=...sc&start=0
http://ftp.srv.l14.ru/pub/usbtool-0.1.tar.gz

Thanks to Jiri Kosina, Chris Guirl,
from the Linux input dev team
http://www.mail-archive.com/linux-input@...ff.cuni.cz
http://www.mail-archive.com/linux-input@vger.kernel.org
(search "g25" on each list)

Hoping this helps ...

Pouillot.
Reply


Messages In This Thread
[No subject] - by thelusiv - 12-30-2007, 05:05 AM
[No subject] - by avl - 12-30-2007, 06:14 AM
[No subject] - by thelusiv - 12-30-2007, 06:36 AM
[No subject] - by avl - 12-30-2007, 08:05 AM
[No subject] - by thelusiv - 12-31-2007, 08:14 AM
[No subject] - by avl - 12-31-2007, 08:44 AM
[No subject] - by thelusiv - 01-03-2008, 06:19 PM
[No subject] - by thelusiv - 02-09-2008, 05:58 AM
[No subject] - by thelusiv - 02-21-2008, 02:50 AM
[No subject] - by thelusiv - 02-21-2008, 04:29 AM
[No subject] - by thelusiv - 03-14-2008, 02:43 AM
[No subject] - by rm - 03-17-2008, 12:43 PM
[No subject] - by thelusiv - 03-17-2008, 01:12 PM
[No subject] - by rm - 03-17-2008, 02:03 PM
[No subject] - by thelusiv - 03-17-2008, 02:36 PM
[No subject] - by rm - 03-17-2008, 03:15 PM
[No subject] - by thelusiv - 03-17-2008, 06:10 PM
/dev/js0 disappeared - by tof8pool - 04-21-2008, 12:29 PM
Full G25 wheel support under Linux (except force feedback) - by pouillot - 05-12-2008, 12:49 PM
[No subject] - by joevenzon_phpbb2_import3 - 09-28-2008, 08:02 PM
[No subject] - by bunder - 10-11-2008, 07:08 PM
[No subject] - by tof8pool - 10-12-2008, 05:47 AM
[No subject] - by bunder - 10-12-2008, 08:20 AM
[No subject] - by Rich43 - 10-18-2008, 10:41 PM
[No subject] - by bunder - 10-19-2008, 06:01 AM
[No subject] - by Rich43 - 10-19-2008, 03:32 PM
[No subject] - by tof8pool - 10-20-2008, 01:58 AM
[No subject] - by Rich43 - 10-20-2008, 11:32 AM
[No subject] - by tof8pool - 10-20-2008, 01:10 PM
[No subject] - by Rich43 - 10-21-2008, 03:22 PM
[No subject] - by Rich43 - 10-21-2008, 03:53 PM
[No subject] - by tof8pool - 10-22-2008, 02:10 AM
[No subject] - by Rich43 - 10-25-2008, 08:58 PM
[No subject] - by tof8pool - 10-26-2008, 01:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-27-2008, 10:43 PM
[No subject] - by eXSs - 10-28-2008, 09:03 AM
[No subject] - by tof8pool - 11-02-2008, 06:09 AM
[No subject] - by cgaudry - 12-22-2008, 05:40 PM
[No subject] - by Simey - 03-11-2009, 06:50 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-01-2009, 07:59 PM
[No subject] - by thelusiv - 05-01-2009, 08:21 PM
[No subject] - by cgaudry - 11-05-2009, 02:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-06-2009, 01:51 AM
[No subject] - by cgaudry - 11-07-2009, 07:12 AM
[No subject] - by cgaudry - 11-13-2009, 04:02 PM
[No subject] - by joevenzon_phpbb2_import3 - 11-16-2009, 11:44 PM
[No subject] - by bopApocalypse - 11-17-2009, 11:53 PM
Automatic G25 recognition - by IvanVimes - 11-30-2009, 10:09 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-01-2009, 12:06 AM
G25 udev rules - by tof8pool - 03-21-2010, 11:26 AM
[No subject] - by Blackylol - 05-10-2010, 04:53 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-10-2010, 10:25 PM
[No subject] - by Metaphysicist - 11-22-2010, 04:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)