LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-02-2007, 05:00 AM   #1
mvandoornik
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: Disabled
USB joystick dead band?


Recently I've purchased a USB gamepad with analog sticks which shows up as a HID joystick. Testing it with jstest /dev/input/js0 works a treat. All axes and buttons function properly. There is only one minor problem: the dead band is huge. The jstest program doesn't show any movement on axis 0, for example, until it goes beyond -5743. However, axis 2 (which is apparently linked to the same axis) starts showing data as soon as it reaches -338. Both have the same -32767 .. 32768 range. Clearly this has something to do with a software deadband, but for the life of me, I can't figure out where to adjust this (googled the better part of a day away). I've already tried jscal, but this doesn't help.

Example output of jscal (after calibration):

Code:
Setting correction to:
Correction for axis 0: broken line, precision: 0.
Coeficients: 128, 128, 4194176, 4227201
Correction for axis 1: broken line, precision: 0.
Coeficients: 128, 128, -4227201, -4194176
Correction for axis 2: broken line, precision: 3.
Coeficients: 137, 137, 3918646, 4549615
Correction for axis 3: broken line, precision: 0.
Coeficients: 128, 128, 4194176, 4227201
Correction for axis 4: broken line, precision: 0.
Coeficients: 128, 128, -4227201, -4194176
Correction for axis 5: broken line, precision: 0.
Coeficients: 0, 0, 536854528, 536854528
Correction for axis 6: broken line, precision: 0.
Coeficients: 0, 0, -536854528, -536854528
What do these coefficients mean? And how can I tell the kernel or the joydev driver to PLEASE use a smaller deadzone (or none at all?)

Any advice will be greatly appreciated.
 
  


Reply

Tags
joystick, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper and Dell Wireless 1450 Dual-Band USB 2.0 Adapter bharrison4 Linux - Software 6 11-07-2005 04:18 PM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
USB-Joystick? Cornholio Linux - Hardware 3 03-28-2005 12:13 PM
usb joystick MrBiggZ Linux - Hardware 6 02-01-2004 09:14 PM
ntl b-band usb ambit modem mandrake9.2 help Daveybops Linux - Networking 5 11-24-2003 11:04 AM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration