LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-17-2012, 03:12 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
joystick issue


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

Last edited by Xeratul; 03-17-2012 at 04:19 PM.
 
Old 03-18-2012, 02:11 AM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Good morning !

Forum Bump by chance
 
  


Reply



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
Joystick recognised - but not as a joystick! Captain_Bodge Linux - Hardware 4 03-11-2008 03:13 PM
Joystick Driver and API under kernel 2.6.12.3 using an USB joystick dispatcher Linux - Newbie 1 08-06-2005 09:43 AM
Joystick Help sharkee Ubuntu 0 05-31-2005 05:44 AM
Joystick DaBlade Linux - Hardware 3 03-22-2005 04:58 AM
Joystick in RH 7.3?? lpriyamb Linux - General 5 10-21-2003 06:52 AM

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

All times are GMT -5. The time now is 12:11 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