[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Joystick Device with 2.6.x Kernel



On Fri, 2005-03-18 at 10:49, Wolfgang wrote:
> Hi All,
> 
> I currently have a joystick device installed on my system, which I use
> for gaming. I have a small problem, in which the kernel creates the
> device in /dev/input/js0. Now the 2.4.x kernel creates it in /dev. So if
> I startup a game, say Quake 3. I doesn't detect that the joystick is
> connected, when in fact it is. (I can see it in the KDE control centre).
> 
> Now, if I create a sym-link in /dev to /dev/input/js0, then the game
> see's the joystick OK, and all is well.. Until I reboot the system, the
> sym-link, gets deleted.
> 
> Is there any way that I can get the system to create a link
> to /dev/input/js0 when I boot the system. I created a script to do that
> for me, but it doesn't seem to execute on boot-up.
> 
> Any help is appreciated..
> 
> Wolf

Look in /etc/udev/rules.d/50-udev.rules

KERNEL="js*",           NAME="input/%k"

I haven't actually tried this myself, but you might try changing that
line to:

KERNEL="js*",           NAME="%k"

I believe this will make the js* devices in /dev.

-- 
Chris Kloiber, RHCX
Global Support Service
Red Hat, Inc.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]