You are not logged in.

#1 2016-05-30 20:08:26

McDoenerKing
Member
From: Germany
Registered: 2010-06-21
Posts: 59

[Solved]Xboxdrv works only as root, steamos-xpad works as intended

Hi,

I am trying to get my Mad Catz Wired Xbox 360 Controller (SFIV) working with xboxdrv, because while steamos-xpad works it isn't recognized by Skullgirls. It works when I use it via root or sudo, but not as a normal user:

user@machine 10:00 PM:~ $ xboxdrv
xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/ 
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com> 
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This program comes with ABSOLUTELY NO WARRANTY. 
This is free software, and you are welcome to redistribute it under certain 
conditions; see the file COPYING for details. 

Controller:        Mad Catz Wired Xbox 360 Controller (SFIV)
Vendor/Product:    0738:4738
USB Path:          001:003
Controller Type:   Xbox360

-- [ ERROR ] ------------------------------------------------------
USBController::USBController(): libusb_open() failed: LIBUSB_ERROR_ACCESS

I added myself to the uinput,input,usb group and also tried following udev rules:

KERNEL=="uinput", GROUP="uinput", MODE:="0660"
KERNEL=="uinput", GROUP="wheel", MODE:="0660"

I tried these rules seperately and together to no success. Also I made sure to "rmmod xpad" before trying to run xboxdrv. There are three different xboxdrv packages available on aur and I tried all three with the exact same problem.

As far as I can tell it is a permission issue, but I do not see where and how to fix it. It works without problems on my desktop. I am using a T520, so might it be the tlp.service? What should I try next?

Last edited by McDoenerKing (2016-05-31 06:56:45)

Offline

#2 2016-05-31 06:22:19

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [Solved]Xboxdrv works only as root, steamos-xpad works as intended

You don't have permissions to open the USB device. You need a rule like this (substitute vendor/product ids and group):

SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE="660", GROUP="uucp"

I don't know why it works on the other machine, maybe some package installed such rule. Normally you shouldn't be able to open devices with libusb.

Offline

#3 2016-05-31 06:57:26

McDoenerKing
Member
From: Germany
Registered: 2010-06-21
Posts: 59

Re: [Solved]Xboxdrv works only as root, steamos-xpad works as intended

Thanks this worked!

It still doesn't work with Skullgirls though. I guess I will have to manually create a gamecontrollerdb file.


EDIT: First try updating your gamecontrollerdb.txt file in the Skullgirls installation folder: https://github.com/gabomdq/SDL_GameCont … llerdb.txt


If Skullgirls still doesn't recognize your stick, compile controllermap from the sdl2 sourcecode or install it from AUR. Then you start it once to see the corresponding number to the controller you want to configure and start it with:

controllermap $JOYSTICKNUMBER

Use backspace to go back a mapping and space to skip a mapping. Once you are finished it will output a bunch of text that looks like this:

03000000380700003847000090040000,Mad Catz Wired Xbox 360 Controller (SFIV),platform:Linux,x:b0,x:b2,a:b0,b:b1,y:b3,back:b8,guide:b10,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,rightstick:a3,leftx:h0.0,leftx:h0.0,lefty:h0.9,rightx:h0.3,leftx:h0.0,lefty:h0.12,leftx:h0.0,lefty:h0.3,rightx:h0.6,righty:h0.12,

Append this to your gamecontrollerdb.txt file in the Skullgirls installation folder. Restart/start Skullgirls and it should work now.

Last edited by McDoenerKing (2016-05-31 07:31:51)

Offline

Board footer

Powered by FluxBB