LinuxQuestions.org
Help answer threads with 0 replies.
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 01-23-2007, 04:54 PM   #1
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Rep: Reputation: 15
Joystick connection troubles


Hello,

I'm trying to connect a joystick to a particular embedded Linux system (FOX board) that hasn't got the majority of the tools you can currently use in a normal distribution: expecially, it hasn't got commands like "lspci", "hwinfo" and so on.
The strange thing is that I can't find the position where the device node is placed: I've searched onto the /dev/ folder, but there isn't anything like jsXXX or input/jsXXX...

I've read the /var/log/messages, but honestly I haven't understood it so much:

Quote:
Jan 1 00:02:43 axis kernel: usb 1-2: new low speed USB device using hc-crisv10 and address 4
Jan 1 00:02:43 axis kernel: input: Padix Co. Ltd. QZ 501 PREDATOR as /class/input/input0
Jan 1 00:02:43 axis kernel: input: USB HID v1.00 Joystick [Padix Co. Ltd. QZ 501 PREDATOR ] on usb-hc-crisv10.0-2
What do you think it is /class/input/input0 ??? I really have no clue about it... and unfortunately I can't do further investigations because I don't have many other tools


I hope that someone could help me
Thank You

ma1069
 
Old 01-25-2007, 12:42 PM   #2
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Update...

Already solved

Thnxs anyway
 
Old 06-02-2007, 02:35 PM   #3
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
You can tell other people how you solved it. You know, there are lot of guys, searching old posts instead of asking the same question.
 
Old 06-03-2007, 04:05 AM   #4
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Ok

I've discovered that the device doesn't create the node by himself! YOU have to create it, with this simple instruction:

Code:
cd /dev/
exec mknod js0 c 13 0
And, if you have more than a single joystick,

Code:
exec mknod js0 c 13 0
exec mknod js1 c 13 1
exec mknod js2 c 13 2
exec mknod js3 c 13 3
To try if it works, I've downloaded the code of the tool jstest, i've recompiled for my embedded platform and... everything works perfectly! Even with nonstandard joysticks like the xbox360 gamepad

[edit: I'm sorry, i haven't posted the solution before because i've found it in a similar old post of this same site... but when I've posted my question I didn't know what to search exactly! It was my first try with joysticks in linux... I didn't even know what a Node is, exactly]

Last edited by ma1069; 06-04-2007 at 09:40 AM.
 
  


Reply

Tags
joystick



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
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
Adsl Connection Troubles skinnyman100 Linux - Newbie 1 05-28-2005 05:47 AM
Troubles with adsl connection Luc484 Linux - Networking 3 04-26-2005 02:50 AM
connection sharing troubles paradoxni Mandriva 1 12-05-2003 12:29 PM
Joystick troubles Bigun Linux - General 6 05-24-2003 12:41 PM

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

All times are GMT -5. The time now is 09:33 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