LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-02-2003, 12:36 AM   #16
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30

Check out a little program called "jstest". It's a commandline program that shows your joystick buttons and if they are depressed or not. On my system it's part of a package called "joystick". I think there are rpms for it too. Here's my output:
Code:
chris@Qbert:~$ jstest /dev/js0
Joystick (Gravis GamePad Pro USB ) has 2 axes and 10 buttons. Driver version is 2.1.0.
Testing ... (interrupt to exit)
Axes:  0:     0  1:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off 6:off  7:off  8:off  9:off
 
Old 09-03-2003, 09:02 PM   #17
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
well.. i downloaded and tried to compile joystick (to see if it might make things easier on my system) to no avail... also the jstest program that is packaged with it does not work for some reason... my computer says that jstest is not there... any ideas?
 
Old 09-04-2003, 12:54 AM   #18
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Quote:
Originally posted by kalif
well.. i downloaded and tried to compile joystick (to see if it might make things easier on my system) to no avail
I'm pretty sure there are binaries avialable, if all else fails you can just crack open an rpm and try to use the binary from it. Since the program is so small I don't there would be issues with that.

Quote:
... also the jstest program that is packaged with it does not work for some reason... my computer says that jstest is not there... any ideas?
So you trying to run it from the directory it's in? If that directory is not in your path (`env | grep PATH`), then you have to type in the full path to that binary. You can also short hand it by using "./", e.g.
Code:
$ pwd
/home/chris/tmp/joystick
$ ls
.   ..   jstest   jscal
$ /home/chris/tmp/joystick/jstest
blah blah, program output...
- OR -
$ ./jstest
blah blah, program output...
 
Old 09-04-2003, 10:57 AM   #19
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
the problem is not with compiling it... that worked fine... it was trying to add the patch to my kernal or the lines to my modules... either command it told me to do did not work. as for jstest... well i DID try it from the directory...

bash-2.05a# cd /root
bash-2.05a# ls
Desktop Mail joystick-1.2.15 loadlin16c.txt loadlin16c.zip
bash-2.05a# cd /root/joystick-1.2.15
bash-2.05a# ls
COPYING joy-assassin.c joy-spaceball.c joystick.txt
ChangeLog joy-console.c joy-spaceorb.c jsattach.1
Makefile joy-creative.c joy-thrustmaster.c jsattach.c
README joy-db9.c joy-turbografx.c jscal.1
README-API joy-gravis.c joy-warrior.c jscal.c
README-parport joy-lightning.c joydump.c jstest.1
TODO joy-logitech.c joystick-api.txt jstest.c
joy-amiga.c joy-magellan.c joystick-parport.txt linux
joy-analog.c joy-pci.c joystick.c pci-gameport
joy-analog.h joy-sidewinder.c joystick.h
bash-2.05a# ./ jstest /dev/js0
bash: ./: is a directory
bash-2.05a# ./jstest /dev/js0
bash: ./jstest: No such file or directory
bash-2.05a#
 
Old 09-04-2003, 02:43 PM   #20
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
I'm confused, I don't see any binaries in that directory listing. Try changing to that directory and running
# make
then you should have the jstest binary. (I just tried it myself.) As for the patching stuff, I don't think I'd worry about that. Just use jstest and a diagnostic tool.
 
Old 09-04-2003, 03:54 PM   #21
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
funny... that is the directory after i ran make... so i have no jstest... any other suggestions?
 
Old 09-04-2003, 05:50 PM   #22
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Hand compile it with
# gcc -o jstest jstest.c
 
Old 09-04-2003, 10:09 PM   #23
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
heh... do not worry... the issue resolved itself when i uprgraded to slackware 9.0. thank you for your continued help in this issue however! your help is greatly appreciated.
 
Old 09-04-2003, 10:33 PM   #24
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Glad to hear it's working now.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Saitek P2500 Rumble GamePad issues Dregnan Mandriva 2 07-12-2005 05:19 PM
gravis gamepad pro and Fedora Core 3 dengi Linux - Hardware 0 02-21-2005 10:27 PM
Gravis Gamepad Pro On Slackware 9.1 biledaemon Slackware 0 12-30-2003 01:19 AM
Gravis Destoryer Tiiltpad Glock Shooter Linux - Hardware 2 08-09-2003 12:11 AM
Gravis xterminator gamepad (gameport version) under Mandrake 8.2 JaseP Linux - General 0 07-09-2002 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration