Linux Joystick Calibration

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
Lethe
Poor
Poor
Posts: 5
Joined: Mon Dec 01, 2008 8:28 pm
Location: Pompey, England
Contact:

Linux Joystick Calibration

Post by Lethe »

I have a MS sidewinder JS (why is it MS peripherals are great, yet their software is pants??) and always had an issue with the crosshair being off-centre.

I used to fix this up using jscal, but the original doesn't build on 2.6.x kernels. But the Ubuntu version does.

https://launchpad.net/ubuntu/edgy/+sour ... u2/+files/

Just download the tarball (i.e. wget) and decompress:

tar zxvf joystick_20051019.orig.tar.gz

(I think the Ubuntu diff is for a fix for some joysticks - I don't think it's needed unless you know it's needed).

cd into the directory and issue:

make

jscal is then built (BTW, you need running kernel source tree).

At this stage you can just run it from source:

./jscal -c /dev/js0 (or whatever your JS device is).

Once done, JS is perfectly calibrated.

You can then/also save the results to a script file to be called from rc.local, or (as I do using Fluxbox) in a script when I launch Oolite.

My jscal.sh file:

Code: Select all

jscal -s 6,1,0,128,128,4194176,4227201,1,0,128,128,4194176,4227201,1,0,128,128,4194176,4227201,1,0,128,128,4194176,4227210,1,0,0,0,536854528,536854528,1,0,0,0,536854528,536854528 /dev/js0
If happy, just mv the jscal binary to /usr/bin/ nothing else is required.

Nick
User avatar
Super Jamie
Above Average
Above Average
Posts: 19
Joined: Tue Nov 11, 2008 7:24 am
Location: Brisbane, AU
Contact:

Post by Super Jamie »

you can also use jscalibrator if you're looking for something with a gui

looks like the original webpage for it is dead, and is likely a package the debian team maintain now

binary - https://launchpad.net/ubuntu/intrepid/i386/jscalibrator
source - https://launchpad.net/ubuntu/+source/libjsw


and yeah, i know what you mean about microsoft. i really love my comfort curve 2000 keyboard, and wheel optical mouse. the zune's a good player too, the software absolutely blows though
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

Super Jamie wrote:
you can also use jscalibrator if you're looking for something with a gui

looks like the original webpage for it is dead, and is likely a package the debian team maintain now

binary - https://launchpad.net/ubuntu/intrepid/i386/jscalibrator
source - https://launchpad.net/ubuntu/+source/libjsw
There's a gui control center module in KDE that does a great job with joysticks. Though it seems to work only with USB sticks.
and yeah, i know what you mean about microsoft. i really love my comfort curve 2000 keyboard, and wheel optical mouse. the zune's a good player too, the software absolutely blows though
MS don't make the hardware. They get someone else to make the hardware, while they (try) to code the software and drivers for it. Toshiba makes the Zune, for instance, and I've seen a couple of MS mice that I could swear were knockoffs of Logitech mice.

Sometimes it's not good, or even passable hardware that bears the MS brand. 360, 'nuff said.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

When I worked for the UK MOD I was seconded to CALCE (Computer Aided Lifecycle Engineering) based at the U of MD. M$ joined CALCE because it had started to put its name onto Hardware as well as software, in particular the Barney interactive/PC controlled toys that were coming back in their droves as "failed shortly after first use" - CALCE tested a series of the units both for real and in simulation - M$ had clearly gone for lowest cost when having the PCBs manufactured - a bit of a beating from a toddler would have had most of the soldering cracking off the flimsy PCBs only a few scant minutes after getting them out of the box...

And now we're officially way off topic - to vaguely steer it back on course, I use Ubuntu Gutsy and a Thrustmaster Firestorm Dual Power 2 Gamepad USB and have never had to calibrate it - wouldn't know how to!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

DaddyHoggy wrote:
I use Ubuntu Gutsy and a Thrustmaster Firestorm Dual Power 2 Gamepad USB and have never had to calibrate it - wouldn't know how to!
An X52 on a Mepis/Debian testing/unstable hybrid.

Most USB game controllers & joysticks autocalibrate. That's a good thing in your case, eh DH?
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

:D Given the issues seen here - yes! Apparently so!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
kcallis
Dangerous
Dangerous
Posts: 86
Joined: Sun Jan 25, 2009 2:45 pm
Location: N. Little Rock, AR
Contact:

Post by kcallis »

I am having issues with proper configuration of my joystick. Is there a file with the configuration sit? I figured I could figure out the appropriate values and plug them into the configuration file.
Post Reply