Not proper setup for xboxdrv

Bug #1306695 reported by Rael Gugelmin Cunha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xboxdrv (Ubuntu)
New
Undecided
Unassigned

Bug Description

In order to get xboxdrv properly working on Ubuntu 14.04, there are 2 missing setups:

1 - This package should remove xpad. Both should be not installed at the same time, so probably xboxdrv and xpad should be marked as conflict with each other.

2 - xboxdrv can work in 2 modes:

(a) run in userspace: not too user friendly, as the user has to manually add each new controller (running it again);

(b) xboxdrv can run at system start, on systemd. This way it'll run as daemon, always watching for new plugged controllers (preferable).

In order to achieve (b), one startup script will be required. On 14.04 I created /etc/init/xboxdrv.conf with the following content:

start on filesystem
expect fork
exec xboxdrv --detach-kernel-driver &

Of course, my use of fork and & can be wrong, but is the way I found to get the service command working fine.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xboxdrv 0.8.5-1
ProcVersionSignature: Ubuntu 3.13.0-20.42-generic 3.13.7
Uname: Linux 3.13.0-20-generic x86_64
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 11 12:40:52 2014
InstallationDate: Installed on 2014-03-28 (13 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140323)
SourcePackage: xboxdrv
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :
Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :

A better script (it'll remove all joysticks before start... maybe this can be done in a better way then remove all js* files):

# xboxdrv.conf
start on filesystem
pre-start script
    # clean up joysticks
    rm -f /dev/input/js*
end script
exec xboxdrv -D --detach-kernel-driver --silent --dbus disabled

Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :

Additionally, jstest-gtk is a good nice to have.

With this installed, I created a "Joysticks" in System Settings > Hardware, using a file named /usr/share/applications/unity-joystick-panel.desktop with the following content:

[Desktop Entry]
Name=Joysticks
Comment=Configure and Calibrate Joysticks
Icon=/usr/share/app-install/icons/jstest-gtk.png
Exec=/usr/bin/jstest-gtk
Type=Application
Categories=GTK;GNOME;Settings;X-GNOME-Settings-Panel;HardwareSettings;X-Unity-S$
OnlyShowIn=Unity;
X-Unity-Settings-Panel=jstest-gtk
X-Ubuntu-Gettext-Domain=unity-control-center

Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :

Adding unity-joystick-panel.desktop

Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :
Revision history for this message
Rael Gugelmin Cunha (rael-gc) wrote :

Ok, due the low priority, this will be an one man talking. So I created a ppa to include all these configurations in Trusty: https://launchpad.net/~rael-gc/+archive/ubuntu-xboxdrv

Revision history for this message
Felix (apoapo) wrote :

@Rael: Using your ppa works mostyl fine for me.

The controller shows some chatter though. Pressing the colored buttons ist recognized as 2 or even more presses at once.
Did you adress chatter in your configuration files or do you know how to fix it?

Thank your very much for your afford!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.