View previous topic :: View next topic |
Author |
Message |
MaxK n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Aug 2009 Posts: 3
|
Posted: Tue Aug 25, 2009 10:04 pm Post subject: no /dev/input/js* in kernel-2.6.30 |
|
|
Hi everybody,
since my upgrade from kernel 2.6.29 to kernel 2.6.30-r5 there is no /dev/input/js* anymore.
Code: |
# dmesg | grep -i Joystick
generic-usb 0003:06A3:0255.0002: input: USB HID v1.00 Joystick [Saitek Saitek X52 Flight Control System] on usb-0000:00:1d.0-2/input0
# ls -l /dev/input/by-id/*event-joystick
lrwxrwxrwx 1 root root 9 Aug 26 2009 /dev/input/by-id/usb-Saitek_Saitek_X52_Flight_Control_System-event-joystick -> ../event4
|
The hardware seems to work correctly as
Code: |
# cat /dev/input/event4
|
gives me some output.
If I choose kernel 2.6.29 udev makes a /dev/input/js0 correctly.
Can anyone help me to get my joystick working again? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Wed Aug 26, 2009 12:01 am Post subject: |
|
|
It seems as though the only problem is naming convention for the joystick's /dev file. Maybe you could symlink to it, or maybe you could create a new device with the same major and minor numbers with mknod. _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxK n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Aug 2009 Posts: 3
|
Posted: Wed Aug 26, 2009 12:42 pm Post subject: |
|
|
hi erik258,
i tried:
Code: |
# ln event4 js0
# jstest js0
Driver version is 0.8.0.
Joystick (Unknown) has 2 axes ( axismap never defined )
and 2 buttons ( buttonmap never defined ).
Testing ... (interrupt to exit)
jstest: error reading: Invalid argument
|
and also
Code: |
# mknod js0 c 13 0
# jstest js0
jstest: No such device
|
Still if I just switch to Kernel 2.6.29 it creates the /dev/input/js0 device. Do I have to change some kernel options in 2.6.30? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxK n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Aug 2009 Posts: 3
|
Posted: Thu Dec 10, 2009 12:38 pm Post subject: |
|
|
Solved!
In recent web searches I found that there is a kernel bug that doens't accept the "Saitek X52" as a joystick.
I changed the kernel source /usr/src/linux/drivers/input/joydev.c according to this bug:http://bugzilla.kernel.org/attachment.cgi?id=23054
Quote: |
From 83c004fb08fed8064b76041d398c2daa33871cc8 Mon Sep 17 00:00:00 2001
From: Janos Laube <janos.dev@gmail.com>
Date: Thu, 10 Sep 2009 09:34:14 +0200
Subject: [PATCH] Revert "Input: joydev - blacklist digitizers"
This reverts commit d07a9cba6be5c0e947afc1014b5a62182a86f1f1.
This fixes kernel bugzilla #14049:
joydev: blacklist digitizers avoids recognition of Saitek X52 joysticks
Signed-off-by: Janos Laube <janos.dev@gmail.com>
---
drivers/input/joydev.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
index 9a1d55b..84865e5 100644
--- a/drivers/input/joydev.c
+++ b/drivers/input/joydev.c
@@ -857,13 +857,7 @@ static const struct input_device_id joydev_blacklist[] = {
INPUT_DEVICE_ID_MATCH_KEYBIT,
.evbit = { BIT_MASK(EV_KEY) },
.keybit = { [BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH) },
- }, /* Avoid itouchpads and touchscreens */
- {
- .flags = INPUT_DEVICE_ID_MATCH_EVBIT |
- INPUT_DEVICE_ID_MATCH_KEYBIT,
- .evbit = { BIT_MASK(EV_KEY) },
- .keybit = { [BIT_WORD(BTN_DIGI)] = BIT_MASK(BTN_DIGI) },
- }, /* Avoid tablets, digitisers and similar devices */
+ }, /* Avoid itouchpads, touchscreens and tablets */
{ } /* Terminating entry */
};
--
1.6.4.2
|
After that my /dev/input/js0 appeared again. This bug is in the kernel since version 2.6.30.
I upgraded to 2.6.32 by now and still have to change the kernel code in joydev.c
I hope this might help all SAITEK X52 Flight Control System users. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|