Joystick calibration under linux



I don’t know off the top of my head of a graphical joystick calibrator for linux, but there is a command line utility that’s dead easy to use…. jscal I found the tip in a flightgear mailing list after having a hard time with one of the first flights. The stick was very far off center, I had to pull almost all the way to the right to keep level. Anyway… here’s the tip.


Joysticks are calibrated at the kernel level. So, for instance, a program like flightgear looks at the device and doesn’t have a means for adjusting the data to correct for centering. It just assumes what it sees is accurate. So, here’s how to calibrate.

jscal -c /dev/js0

This will have you move the 0-axis to it’s minimum, center, maximum, then axis-1, etc. etc. etc. The only trick can be guessing which axis you need to use if you have more than 2. The other point to mention here is that if there are more axis’ detected than you have it’s ok. Just follow the instructions and if there’s no change on an axis, keep pressing a button to move through. It’s really fairly easy to use.

But what happens after a reboot? You lose the calibration… UNLESS…. you do this.

jscal -p /dev/js0 > calibrate-stick.sh

Which prints out your calibration information to a file, then after the next boot. (Maybe in a login script?)

sh calibrate-stick.sh

the above will “recalibrate” based on the settings that you’ve just assigned.

Some distros may deal with this, I suspect there may be GUI frontends for this, but it was the quickest route I had to getting to fly straight and level.

Related Posts

Blog Traffic Exchange Related Posts
  • The end for Windows 98 may be a boost to linux? There are articles out about the demise of official Windows 98 and ME support would be a boost to linux uptake. Realistically, I suppose it may, but I personally am not holding my breath. Here's why. 1) The people still running Windows 98/ME are likely doing so because that's what......
  • Mandriva One 2006 I saw earlier today that Distrowatch was reporting that Mandriva One 2006 had been released and pushed to the ftp mirrors . It appears as though Mandriva One 2006 is a combination Live/Install cd based on (of course) Mandriva Linux. It looks as though it may only be available for......
  • Crossroads At this point, I doubt anyone is seeing this as the wordpress test install is not live to the public yet, but... I'm opening this one up for comments. On the old site, I had accumulated a bit of content along the lines of windows/linux tips, software recommendations and tech......
Blog Traffic Exchange Related Websites
  • Attain Optimum Cholesterol Through Ayurveda Herbs In this day and age, too much fuss has been created about high cholesterol levels and the numerous health hazards associated with it. People have actually started having apprehensions about the very mention of the word cholesterol. But it is not just the high cholesterol that is hazardous, extremely low......
  • B Vitamins Part of Weightloss -- B12 and B6 As part of my weightloss plan one of the suggestions is to have a vitamin B12 injection and potentially take a B6 supplement. For the time being I have chosen not to get the additional injection, but instead am taking a 500 mcg B12 supplement and a 100 mg B6......
  • Tool Box Essentials pt 1 It does not matter where you are living, or whether you are renting or owning your home. If you have four walls as well as a roof, then you are eventually going to have something that requires repairing, installing or updating. Having the right tools makes all the difference in......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site