EVDEV: Could not connect to evdev device "/dev/input/ev

problems with keyboard, lirc or evdev

Moderator: Moderator

timmey
Posts: 3
Joined: Wed Mar 26, 2008 3:06 pm

EVDEV: Could not connect to evdev device "/dev/input/ev

Postby timmey » Wed Mar 26, 2008 3:12 pm

Hello,

I'm new to MMS. I searched the forums but haven't find any solution to my problem: i'm trying to use mms with my old usb gamepad.

Code: Select all

sudo evtest /dev/input/event8
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x5e3 product 0x596 version 0x100
Input device name: "Austgame USB Dual Shock Pad"
Supported events:
  Event type 0 (Reset)
    Event code 0 (Reset)
    Event code 1 (Key)
    Event code 3 (Absolute)
  Event type 1 (Key)
    Event code 256 (Btn0)
    Event code 257 (Btn1)
    Event code 258 (Btn2)
    Event code 259 (Btn3)
    Event code 260 (Btn4)
    Event code 261 (Btn5)
    Event code 262 (Btn6)
    Event code 263 (Btn7)
    Event code 264 (Btn8)
    Event code 265 (Btn9)
    Event code 266 (?)
    Event code 267 (?)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value    127
      Min        0
      Max      255
    Event code 1 (Y)
      Value    127
      Min        0
      Max      255
    Event code 2 (Z)
      Value    127
      Min        0
      Max      255
    Event code 5 (Rz)
      Value    127
      Min        0
      Max      255
    Event code 16 (Hat0X)
      Value      0
      Min       -1
      Max        1
    Event code 17 (Hat0Y)
      Value      0
      Min       -1
      Max        1
Testing ... (interrupt to exit)
Event: time 1206544190.970690, type 3 (Absolute), code 1 (Y), value 0
Event: time 1206544190.970697, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.106714, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544191.106721, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.714824, type 3 (Absolute), code 0 (X), value 255
Event: time 1206544191.714831, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.810839, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544191.810846, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.442951, type 3 (Absolute), code 1 (Y), value 255
Event: time 1206544192.442957, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.570997, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544192.571003, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.083078, type 3 (Absolute), code 0 (X), value 0
Event: time 1206544193.083083, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.219095, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544193.219098, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544194.499341, type 1 (Key), code 256 (Btn0), value 1
Event: time 1206544194.499350, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544194.643372, type 1 (Key), code 256 (Btn0), value 0
Event: time 1206544194.643383, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544194.947431, type 1 (Key), code 257 (Btn1), value 1
Event: time 1206544194.947441, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544195.099456, type 1 (Key), code 257 (Btn1), value 0
Event: time 1206544195.099465, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544195.331502, type 1 (Key), code 258 (Btn2), value 1
Event: time 1206544195.331512, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544195.459519, type 1 (Key), code 258 (Btn2), value 0
Event: time 1206544195.459527, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544195.691566, type 1 (Key), code 259 (Btn3), value 1
Event: time 1206544195.691573, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544195.867605, type 1 (Key), code 259 (Btn3), value 0
Event: time 1206544195.867614, type 0 (Reset), code 0 (Reset), value 0

Code: Select all

### EVDEV ####

version = 13

# Path to the evdev device
#
evdev_dev = "/dev/input/event8"
But when starting mms i'm getting the following error:

Code: Select all

EVDEV: Could not connect to evdev device "/dev/input/event8"
init failed
Input plugin not found - Trying first one
Device found keyboard
input/evdev/default hasn't yet been modified.

any suggestions how to get mms working with my gamepad?

ps: the gamepad is hotplugged, there is no xorg.conf entry for it.
pps: used packages (from the gutsy backport): mms mms-theme-standard mms-input-evdev mms-input-keyboard mms-plugin-audio mms-audio-gstreamer mms-plugin-movie mms-movie-generic mms-movie-mplayer mms-output-sdl mms-plugin-picture

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: EVDEV: Could not connect to evdev device "/dev/inpu

Postby acmelabs » Wed Mar 26, 2008 4:03 pm

timmey wrote:...

Hi Timmey,

Permission issue?

could you try to start mms like this:

Code: Select all

sudo mms -u root


Or this:

Code: Select all

sudo chmod 666 /dev/input/event8


Regards,
Andreas

timmey
Posts: 3
Joined: Wed Mar 26, 2008 3:06 pm

Postby timmey » Wed Mar 26, 2008 6:16 pm

thanks, it's was an permission issue. :)
next issue i have is how to configure up/down/left/right via x/y axes on my gamepad. as posted my gamepad submits

Code: Select all

Event: time 1206544190.970690, type 3 (Absolute), code 1 (Y), value 0
Event: time 1206544190.970697, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.106714, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544191.106721, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.714824, type 3 (Absolute), code 0 (X), value 255
Event: time 1206544191.714831, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.810839, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544191.810846, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.442951, type 3 (Absolute), code 1 (Y), value 255
Event: time 1206544192.442957, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.570997, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544192.571003, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.083078, type 3 (Absolute), code 0 (X), value 0
Event: time 1206544193.083083, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.219095, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544193.219098, type 0 (Reset), code 0 (Reset), value 0
keys should be like

Code: Select all

general,prev,UP
general,next,DOWN
general,left,LEFT
general,right,RIGHT

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Wed Mar 26, 2008 6:25 pm

timmey wrote:thanks, it's was an permission issue. :)
next issue i have is how to configure up/down/left/right via x/y axes on my gamepad. as posted my gamepad submits

Code: Select all

Event: time 1206544190.970690, type 3 (Absolute), code 1 (Y), value 0
Event: time 1206544190.970697, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.106714, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544191.106721, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.714824, type 3 (Absolute), code 0 (X), value 255
Event: time 1206544191.714831, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544191.810839, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544191.810846, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.442951, type 3 (Absolute), code 1 (Y), value 255
Event: time 1206544192.442957, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544192.570997, type 3 (Absolute), code 1 (Y), value 127
Event: time 1206544192.571003, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.083078, type 3 (Absolute), code 0 (X), value 0
Event: time 1206544193.083083, type 0 (Reset), code 0 (Reset), value 0
Event: time 1206544193.219095, type 3 (Absolute), code 0 (X), value 127
Event: time 1206544193.219098, type 0 (Reset), code 0 (Reset), value 0
keys should be like

Code: Select all

general,prev,UP
general,next,DOWN
general,left,LEFT
general,right,RIGHT

dunno if it helps, but I've found something here: http://forum.mymediasystem.org/viewtopic.php?p=6013
look out for "pain in the ass"

btw: I've searched for this

Code: Select all

site:forum.mymediasystem.net axis
in google to get results for "axis" from our forum. The internal forum search is also a pain in the ass ;-)

Regards,
Andreas

timmey
Posts: 3
Joined: Wed Mar 26, 2008 3:06 pm

Postby timmey » Thu Mar 27, 2008 2:02 pm

Thanks for your help, Andreas. I managed to get qjoypad running. Imo not the best solution, but it is one ;)

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 27, 2008 2:18 pm

timmey wrote:Thanks for your help, Andreas. I managed to get qjoypad running. Imo not the best solution, but it is one ;)

Do you see a chance to solve it the right way?

I'm also planing to connect the a game-pad to my machine to play some games.
And don't laugh: Can you use Lirc with evdev at the same time? I really never used that before.

Regards,
Andreas


Return to “input”

Who is online

Users browsing this forum: No registered users and 1 guest