R761's commentary

1 January 2009

Logitech momo wheel with Linux and Torcs

Filed under: Games, Linux, Ubuntu — r761 @ 10:37 pm

Recently I purchased a Logitech momo wheel for use with car simulators such as the torcs racing game.

Plugging this in to Ubuntu 8.10 it was detected immediately. Running

jstest /dev/input/js0

gives an easy way to show what all the buttons and pedals do. It also demonstrates the problem with the default configuration – there’s a significant dead spot around the centre of the wheel rotation. This can be fixed withjscal. Specifically:

jscal -c /dev/input/js0

Then follow the prompts to calibrate the wheel and pedal ranges. This removes the dead spot in the centre.

jscal -p /dev/input/js0

This prints out a command line which can be run to install the current calibation (as configured with jscal above). For me this output:

/usr/bin/jscal -s 2,1,0,507,507,1058885,1044464,1,0,127,127,4227201,4194176

Now, I could just re-type this command every time I connect the wheel, but being one to automate things I configured udev to automatically run jscal for me. To do this I created the file /etc/udev/rules.d/80-logitech-momo-wheel.rules which looks like:

ACTION!="add", GOTO="momo_end"
SUBSYSTEM!="input", GOTO="momo_end"
KERNEL!="js[0-9]*", GOTO="momo_end"

SYSFS{idProduct}=="ca03", SYSFS{idVendor}=="046d", RUN+="/usr/bin/logger udev Logitech momo wheel: running jscal"
SYSFS{idProduct}=="ca03", SYSFS{idVendor}=="046d", RUN+="/usr/bin/jscal -s 2,1,0,507,507,1058885,1044464,1,0,127,127,4227201,4194176 $tempnode"


What about force feedback? It doesn’t appear to be supported by torcs. Accoding to blogdrake, vdrift does support force feedback so that’s next on my list of things to try.


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: