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
 
Search this Thread
Old 02-02-2005, 11:57 AM   #1
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Sidewinder gamepad problem and udev question


Hello, I am trying to get my Microsoft Sidewinder gamepad to work through the gameport on my ES1370 PCI sound card. The sound card works fine, and I am listening to music right now through alsa with the card, so that doesn't seem to be a problem. However, I am having problems with the js* nodes in my device tree. Which brings me to my next question. I am using udev, however udev has it's device tree at /.dev instead of /dev, which is just a tempfs that the kernel makes as it boots. How can I make udev be the default for /dev? Could this be related to my problem? Also, my modules are loading fine and I seem to have the correct ones loading (gameport, joydev, sidewinder) and all the necessary things are enabled in the kernel, however I still don't get anything from the js nodes already in udev's device tree, and MAKEDEV js in /dev/ does nothing. Any suggestions? Oh yea, this is on ppc debian woody with a powermac g3 blue&white. Thanks.
 
Old 02-02-2005, 05:27 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 532

Rep: Reputation: 30
I'm not sure I'm fully understanding what you mean. I guess you're looking for a config file where you can setup your default /dev directory. (never heard about a hidden directory for devices tree).
Anyway, look at /etc/udev/udev.conf, it should be something like

# udev.conf
# The main config file for udev
#
# This file can be used to override some of udev's default values
# for where it looks for files, and where it places device nodes.


# udev_root - where in the filesystem to place the device nodes
udev_root="/dev/" -----> here is where you setup your default directory.

First make sure you loaded into memory the proper driver for your joystick, then if hotplug/udev do not create the node you might want to create a simple script for the purpose.
It should be something like
#!/bin/sh
mknod /dev/some_node c(b) major nr minor nr
#----EOF-----#
Have a look @ http://www.lanana.org/ in order you can properly setup the necessary node.
To be honest it is a problem to me telling you where you should put such script as I'm not familiar with debian and more generally with systemV scripts.
On Slack I simply added some lines required for my DVB card in /etc/udev/scripts/make_extra_nodes.sh
Hope this helps
Ciao
 
Old 02-02-2005, 07:17 PM   #3
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
Actually, what seems to be going on is that udev is in /dev (I found the udevdb files hidden in here) and the hidden one must be the other I am seeing...Hotplug or udev does not create nodes in /dev (is there a way I could configure it to do so?) so I will try to create the nodes myself. thanks.

EDIT: It still doesn't seem to work. The command I did to make the nodes was mknod js0 c 13 0 and mknod js1 c 13 1 for the other, since I believe lanana.org said that sidewinder's major was 13. Suggestions? thanks.

Last edited by techrolla; 02-02-2005 at 07:23 PM.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sidewinder gamepad - mandrake 9.1 - help! lets-eat-gary Linux - Hardware 7 04-02-2004 11:07 PM
Non-USB Sidewinder gamepad R0N1N Linux - Hardware 0 04-15-2003 04:56 PM
help getting a microsoft sidewinder gamepad working in debian notstrider Linux - Hardware 2 01-17-2003 07:10 AM
microsoft sidewinder plug & play gamepad notstrider Linux - General 2 11-10-2002 12:54 AM
My USB MS Sidewinder gamepad pro Edward78 Linux - Hardware 2 08-15-2002 09:58 AM


All times are GMT -5. The time now is 05:39 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration