You are not logged in.

#1 2014-06-30 16:29:26

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

[solved] Problems with wired XBOX360 controller and xboxdrv

Hello community, I need you help.

The problems I experience are either in GNOME 3 or Steam (linux) connected to Steam on windows.

I partially documented the process.

At first I installed xboxdrv and it's dependencies.
I experienced the "mouse gets captured and moves to the upper left corner of the screen" thing.
Following the wiki I edited "/etc/X11/xorg.conf.d/50-joystick.conf" (which seems to have disappeared since I rebooted). In advance I created this udev rule: (/etc/udev/rules.d/50-event.rules) containing

KERNEL=="event*", GROUP="games", MODE="660"

my user is member of the groups wheel, games, users

I removed the xf86-input-joystick package.

I've tried to add the line "dbus=disabled" to /etc/conf.d/xboxdrv
so it contains

[xboxdrv]
silent=true
dbus=disabled


I don't remember how, but not being able to get rid of the problem of mouse being capture or keys not working (with sudo xboxdrv --detach-kernel-driver), I found the solution to use

sudo xboxdrv --detach-kernel-driver --detach -D --force-feedback --deadzone 10% --trigger-as-zaxis --buttonmap tl=tr,tr=tl --axismap -trigger=trigger --dbus disabled

with this command, no error appear, no feedback at all. which is generally a good thing.
the big glowing button with the X (I'm no console gamer, sorry) should (should as In connected in windows it does this) open the big picture mode. It doesn't. Manually opening the big picture mode I got a mouse like control, it doesn't move the mouse pointer around but only buttons which work are left stick and B + X... starting some random game like FEZ and it does not work (yes, this is not precise but no I don't know where to look anymore for solutions or outputs)
jstest-gtk reports:

Xbox Gamepad (userspace)
Device: /dev/input/js0
Axes 7
Buttons 11

steam is started as normal user on win 7 and on arch not with root privileges, no sudo or anything.
I did not try native games installed on linux yet.
sending keystrokes from linux steam to windows steam (keyboard) does work, I could move around with keys and use the mouse in any game I started.


I wasn't entirely sure which outputs you could need, this was mostly the things I documented or remembered.

/e: there were dbus errors as long as I kept dbus enabled.
could've been this one: [ERROR] XboxdrvDaemon::run(): fatal exception: failed to get unique dbus name: Connection ":1.55" is not allowed to own the service "org.seul.Xboxdrv" due to security policies in the configuration file

/e2: supertux2 works with left stick  and A button, nothing else. ESCAPE key simulation (if there is any?) does not work for menu, only A-Button and left stick.

Last edited by gpunkt (2014-07-01 15:39:43)

Offline

#2 2014-07-01 13:54:10

Vipermaseg
Member
From: Spain
Registered: 2008-12-12
Posts: 62

Re: [solved] Problems with wired XBOX360 controller and xboxdrv

When you uninstall xf86-input-joystick it is impossible for X to keep recieving joystick input as a mouse, so my guess is that you didn't reboot after uninstalling it. Try reverting all the detach stuff and throwing in --mimic-xpad, some games need it.

Offline

#3 2014-07-01 14:49:48

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: [solved] Problems with wired XBOX360 controller and xboxdrv

Okay, I did reboot after uninstalling the xf joystick package.
I should drop everything except "detach-kernel-driver" for testing purpose? I'll come back to you with the results in about 30 - 35 minutes.

Offline

#4 2014-07-01 15:18:36

Vipermaseg
Member
From: Spain
Registered: 2008-12-12
Posts: 62

Re: [solved] Problems with wired XBOX360 controller and xboxdrv

Something like this:
sudo xboxdrv --mimic-xpad --deadzone 10% --trigger-as-zaxis --buttonmap tl=tr,tr=tl --axismap -trigger=trigger

If you keep getting the mouse input, try --no-extra-events

Offline

#5 2014-07-01 15:39:04

gpunkt
Member
From: terminated.
Registered: 2010-05-17
Posts: 54

Re: [solved] Problems with wired XBOX360 controller and xboxdrv

Vipermaseg wrote:

Something like this:
sudo xboxdrv --mimic-xpad --deadzone 10% --trigger-as-zaxis --buttonmap tl=tr,tr=tl --axismap -trigger=trigger

If you keep getting the mouse input, try --no-extra-events

works like it should behave smile brilliant, thanks!

Offline

Board footer

Powered by FluxBB