Hi, I have this report from dmesg after plugin my gamepad:
Code:
NET: Registered protocol family 10
sshd (1162): /proc/1162/oom_adj is deprecated, please use /proc/1162/oom_score_adj instead.
eth0: no IPv6 routers present
warning: process `scanimage' used the deprecated sysctl system call with 8.1.2.
usb 1-1.3: USB disconnect, address 4
usblp0: removed
usb 1-1.1: new low speed USB device using orion-ehci and address 5
input: Logitech Logitech Dual Action as /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input0
generic-usb 0003:046D:C216.0001: input: USB HID v1.10 Joystick [Logitech Logitech Dual Action] on usb-orion-ehci.0-1.1/input0
usb 1-1.1: USB disconnect, address 5
usb 1-1.1: new low speed USB device using orion-ehci and address 6
drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed
generic-usb 0003:046D:C216.0002: timeout initializing reports
input: Logitech Logitech Dual Action as /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input1
generic-usb 0003:046D:C216.0002: input: USB HID v1.10 Joystick [Logitech Logitech Dual Action] on usb-orion-ehci.0-1.1/input0
usb 1-1.3: new high speed USB device using orion-ehci and address 7
WARNING! power/level is deprecated; use power/control instead
usb 1-1.1: USB disconnect, address 6
usb 1-1.1: new low speed USB device using orion-ehci and address 8
drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed
generic-usb 0003:046D:C216.0003: timeout initializing reports
input: Logitech Logitech Dual Action as /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input2
generic-usb 0003:046D:C216.0003: input: USB HID v1.10 Joystick [Logitech Logitech Dual Action] on usb-orion-ehci.0-1.1/input0
I however do not see anything as /dev/input/js0. Wwould you know where I might find my joystick?
Code:
uname -a
Linux debian 2.6.36 #3 PREEMPT
the root can "cat" the event0 but actarius, my main user, cannot:
Quote:
ls -ltrah /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
lrwxrwxrwx 1 root root 9 Mar 17 20:31 /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick -> ../event0
|
Quote:
~$ cat /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
cat: /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick: Permission denied
|
it thus seems that the issue is a permission thing.
Why linux does not give full permissions to my dev + why no /dev/input/js0?
Quote:
cat /etc/group | grep actarius
actarius:x:200:
|
Quote:
root@debian:/etc/udev/rules.d# ls
70-persistent-net.rules 75-persistent-net-generator.rules
|
If I do :
Quote:
chmod 666 /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
|
then it could be eventually solved (not really , check below) but why in this distro, it is not automatically udev with right permissions. How to say to linux to take always 666 and put it to /dev/input/js0 ?`
Quote:
jstest /dev/input/by-id/usb-Logitech_Logitech_Dual_Action-event-joystick
Driver version is 0.8.0.
jstest is not fully compatible with your kernel. Unable to retrieve button map!
Joystick (Unknown) has 2 axes and 2 buttons.
Testing ... (interrupt to exit)
jstest: error reading: Invalid argument
|
I remove the joystick, and plug another joystick. here again this permission issue and no /dev/input/js0
Quote:
/dev/input/by-id$ cat usb-dual_analog_3.2-event-joystick
cat: usb-dual_analog_3.2-event-joystick: Permission denied
|
Thus I have just added actarius to Plugdev group, rebooted, and no results
permission error again
I have added but it gave no positive results at all:
Quote:
the following two lines in /etc/udev/rules.d/98-udev-custom.rules do not do what I need:
KERNEL=="event[0-9]*", NAME="input/%k", GROUP="plugdev"
KERNEL=="event[0-9]*", MODE="0660"
|
a reboot with :
gedit /etc/udev/rules.d/60-symlinks.rules
Place this in the file:
Quote:
# Create Joystick /dev/js0, /dev/js1, etc using symlink
#(links /dev/input/jsX to /dev/jsX)
KERNEL=="js[0-9]*", SYMLINK+="%k"
|
does not help to create teh missing /dev/input/js0
Quote:
# ls -l /sys/class/input/*
lrwxrwxrwx 1 root root 0 Mar 17 21:24 /sys/class/input/event0 -> ../../devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input0/event0
lrwxrwxrwx 1 root root 0 Mar 17 21:24 /sys/class/input/input0 -> ../../devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input0
lrwxrwxrwx 1 root root 0 Mar 17 21:24 /sys/class/input/mice -> ../../devices/virtual/input/mice
|
HELP please