Topic: [SOLVED] xboxdrv - driver in Crunchbang

Hello Crunchbangers

Im trying to get my wired xbox 360 console and pc controller to work on Crunchbang, from what ive read when the controllers small keyboard is attatched and the xboxdrv driver is installed, it can be used as both the keyboard and mouse for regular applications and then behave like any other gamepad for games.

xboxdrv homepage http://pingus.seul.org/~grumbel/xboxdrv/

Im having some problems getting SOME of the dependencies, as they are not showing in my repo's
the dependancies according to the readme file are:
* g++ - GNU C++ Compiler
* libusb-1.0
* pkg-config
* libudev
* boost
* scons
* uinput (userspace input kernel module)
* git (only to download the development version)
* X11
* libdbus
* glib

Despite only missing a few of the above packages, when i open a terminal inside the xboxdrv folder, and type in scons
It says many of the above packages in the dependancy list cannot be found, even though ive checked and know they are on the system.

If anyone could help me getting this thing to work it would be greatly appreciated.

Last edited by TitanMech (2012-01-28 19:51:09)

Re: [SOLVED] xboxdrv - driver in Crunchbang

When you're building something from source, a lot of times you'll need the development library for something instead of the actual binary. So instead of "glib" it might be called "libglib-dev" or something like that. If you want the easy way out, you can just use apt-pinning to install xboxdrv, it's in the wheezy and sid repos.

Why try to think outside the box, when we could just set the box on fire?

Re: [SOLVED] xboxdrv - driver in Crunchbang

mynis01 wrote:

When you're building something from source, a lot of times you'll need the development library for something instead of the actual binary. So instead of "glib" it might be called "libglib-dev" or something like that. If you want the easy way out, you can just use apt-pinning to install xboxdrv, it's in the wheezy and sid repos.


Ive read the thread on apt-pinning, and despite giving the more stable servers a higher priority i still get way to many downgrades of packages when i enter sudo apt-get update && sudo apt-get upgrade into the terminal.

The output from the above command is :

The following packages have been kept back:
  audacious audacious-plugins conky-all gdb icedove iceweasel libaudclient2
  libaudcore1 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2
  libfreetype6 libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa libmozjs8d
  libmozjs9d libmp3lame0 libnm-glib-vpn1 libnspr4-0d libnss3-1d libpixman-1-0
  libreoffice libreoffice-base libreoffice-base-core libreoffice-calc
  libreoffice-core libreoffice-draw libreoffice-filter-binfilter
  libreoffice-impress libreoffice-java-common libreoffice-math
  libreoffice-report-builder-bin libreoffice-writer libsmbclient libwbclient0
  libxapian22 libxvidcore4 linux-headers-amd64 linux-image-amd64
  network-manager network-manager-gnome network-manager-openvpn
  network-manager-openvpn-gnome network-manager-pptp
  network-manager-pptp-gnome network-manager-vpnc network-manager-vpnc-gnome
  python-uno python-xapian samba-common-bin scons ttf-opensymbol uno-libs3 ure
  usb-modeswitch xorg xserver-xorg xserver-xorg-core xserver-xorg-input-evdev
  xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-video-apm
  xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips
  xserver-xorg-video-cirrus xserver-xorg-video-fbdev xserver-xorg-video-i128
  xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-mga
  xserver-xorg-video-neomagic xserver-xorg-video-nouveau
  xserver-xorg-video-openchrome xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-rendition xserver-xorg-video-s3
  xserver-xorg-video-s3virge xserver-xorg-video-savage
  xserver-xorg-video-siliconmotion xserver-xorg-video-sis
  xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident
  xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-vmware
  xserver-xorg-video-voodoo xulrunner-9.0
The following packages will be upgraded:
  chromium-browser chromium-browser-inspector conky debhelper dkms dpkg-dev
  firmware-brcm80211 firmware-ipw2x00 firmware-iwlwifi firmware-linux
  firmware-linux-nonfree firmware-ralink gdbserver git git-man initramfs-tools
  libctpl2 libdpkg-perl libjs-jquery libmowgli2 libobrender27 libobt0
  libreoffice-common libreoffice-emailmerge libreoffice-filter-mobiledev
  libreoffice-style-galaxy libsqlite3-0 libxfont1 linux-base
  linux-image-2.6-amd64 linux-kbuild-3.1 linux-libc-dev openbox samba-common
  usb-modeswitch-data x11-common x11proto-core-dev xorg-sgml-doctools
  xserver-common xserver-xorg-input-all xserver-xorg-video-all
The following packages will be DOWNGRADED:
  cairo-compmgr cairo-compmgr-core cairo-compmgr-plugins
  crunchbang-bin-scripts crunchbang-extra-themes crunchbang-wallpapers
  elementary-icon-theme exo-utils fbxkb grub-common grub-pc gsimplecal
  gtk2-engines-murrine lame libcairo-compmgr0 libexo-0.3-0 libexo-common
  notify-osd terminator tint2 tint2conf viewnior volumeicon xcompmgr-dana
  xdg-utils

Im not sure if it is safe to proceed here, so i am going to try getting each of the dependancies seperatly and then try again to compile

Re: [SOLVED] xboxdrv - driver in Crunchbang

The key is in /etc/apt/preferences. That's where you set which distro's packages take priority when there is more than one version available. There shouldn't be any upgrades or downgrades from a "sudo apt-get upgrade", since it should pull everything from the stable repos by default anyways. The whole point is that you're manually able to install things from testing/unstable if you explicitly tell apt to do so. The fact that it's downgrading packages from the crunchbang repos tells me that you most likely replaced "crunchbang.org" with "crunchbanglinux.org" in "/etc/apt/sources.list". You may want to just remove the crunchbang repo all together when using apt-pinning.

Why try to think outside the box, when we could just set the box on fire?

Re: [SOLVED] xboxdrv - driver in Crunchbang

Here's mine so you have an example:

/etc/apt/sources.list

## CRUNCHBANG
# Compatible with Debian Squeeze, but use at your own risk.
deb http://packages.crunchbang.org/statler statler main

## DEBIAN
#STABLE
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb http://ftp.us.debian.org/debian squeeze-updates main contrib non-free
#TESTING
deb http://ftp.us.debian.org/debian/ testing main contrib non-free
#UNSTABLE
deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
#EXPERIMENTAL
deb http://ftp.us.debian.org/debian/ experimental main contrib non-free

## DEBIAN SECURITY
#STABLE
deb http://security.debian.org/ squeeze/updates main contrib non-free
#TESTING
deb http://security.debian.org/ wheezy/updates main contrib non-free

## DEBIAN BACKPORTS
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

## ATOPSID REPOS
#deb http://aptosid.com/debian/ sid main fix.main
#deb-src http://aptosid.com/debian/ sid main fix.main

## LIQUORIX REPO
#deb http://liquorix.net/debian sid main

/etc/apt/preferences

Package: *
Pin: release n=statler
Pin-Priority: 1001

Package: *
Pin: release n=squeeze
Pin-Priority: 500

Package: *
Pin: release a=testing
Pin-Priority: 400

Package: *
Pin: release a=unstable
Pin-Priority: 300

Try changing those and then you can install xboxdrv with

sudo apt-get update && sudo apt-get install xboxdrv
Why try to think outside the box, when we could just set the box on fire?

Re: [SOLVED] xboxdrv - driver in Crunchbang

I followed your instructions and modified the sources and apt-preferences
yet i get an error when trying to install xboxdrv

The following packages have unmet dependencies:
xboxdrv : Depends: libstdc++6 (>= 4.6) but 4.4.5-8 is to be installed
E: Broken packages

Re: [SOLVED] xboxdrv - driver in Crunchbang

Try this:

sudo apt-get install -t testing xboxdrv

Be aware that this will upgrade you to testing versions of a few C libraries.

Why try to think outside the box, when we could just set the box on fire?

Re: [SOLVED] xboxdrv - driver in Crunchbang

Thanks so much mynis01, it worked!!!! :XD