LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12:57 PM   #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, 06:27 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
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, 08: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 08: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-03-2004 12:07 AM
Non-USB Sidewinder gamepad R0N1N Linux - Hardware 0 04-15-2003 05:56 PM
help getting a microsoft sidewinder gamepad working in debian notstrider Linux - Hardware 2 01-17-2003 08:10 AM
microsoft sidewinder plug & play gamepad notstrider Linux - General 2 11-10-2002 01:54 AM
My USB MS Sidewinder gamepad pro Edward78 Linux - Hardware 2 08-15-2002 10:58 AM

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

All times are GMT -5. The time now is 09:21 PM.

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