Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What are the steps you need to take to get a joystick working?
joystick model: Logitech Extreme 3D Pro
First I checked to see If the Joystick was detected: dmesg | grep usb
the grep list had my joystick listed so I started to play a game, but it wasn't detected by the game.
I ran modprobe joydev then started the game again.
I got this warning from the game (supertux )
warning: cannot open joystick -1
the simple directmedia error that occured was: there is 1 joystick availiable
After seeing this I know my joystick is getting detected, but it's still unusable for some reason.
Do I need to edit some file to tell the system where the joystick is?
And where do you download the Joystick module with jstest?
Nope. It wasn't a permisions problem. The permisions for js0-4 was 777. Anything else I should try? There has to be a reason that linux thinks the joystick is -1 not 0 or something else, and can't open it.
try this as root just to see if the joystick works and the kernel can get data from it
cat /dev/input/js0-4
move the joystick around if you see a lot of strange karakters on the screen everything is almost ok
if not then you probablyneed to recompile your kernel again
oh, and how do you get the prompt back to the way it was?
Thought I might need to clarify. After I exited the cat program (ctrl-c) the part that should say root@slackware looks just like the weird character that were being printed by cat.
Do a reset. For konsole and gnome-terminal it's in one of the menus. For xterm it's in the ctrl+leftclick menu. Or you can close the window and open again.
Well, I tried plugging in the joystick in the other port, probing joydev before I plug it in (is this better or worse to modprobe after you plug something in?), and tried using feather to detect it (on another computer - I think my two cd drives are about ready to die on me )
Feather didn't have the right libraries to play the game so I couldn't test it out fully
I also tried plugging it in to the mouse port using a usb-ps/2 converter (weirder things have happened, right?)
Anyway, thought I'd try the simple things out
oh, and I probable should've tried the cat trick in an xterm instead of the consol - there was no weird letters doing it in the xterm
Finally a break through The joystick and game both worked perfectly on knoppix! Now I need to find out what's different between the two systems. Does KDE have some sort of magic hardware detection that could've affected it?
Knoppix has excellent HW detection capbilities. Perhaps the issue is that Knoppix is loading a kernel module that Slack isn't. I'd suggest doing "lsmod" (as root, no quotes) in both Slack and Knoppix to compare. In order to manually load a module, you can run "modprobe xxx" (no quotes, and where xxx is the module name) Good luck with it -- J.W.
After trying to figure out all the differences by mouse and notepad.exe I realized something... Isn't there a linux tool for comparing two text files? I think I remember reading about that once
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.