Xbox 360 wireless controller linux

How do I get an XBOX 360 controller working?

I have a Microsoft XBOX 360 gamepad with the wireless adapter and I was wondering what I would have to install to use them with Ubuntu I do know that when using this on Windows I have to manually install the drivers for the wireless receiver (if that is relevant.)

11 Answers 11

If you find difficulties running your XBOX 360 controller, then this will help you install it on a computer running Ubuntu, and also show you how to configure it. These instructions are workable for both wired or wireless X-Box 360 controllers.

Getting Started

To be able to use your Xbox 360 wired/wireless controller under Ubuntu 12.04 (Precise Pangolin), you need first to install some required packages.

Open the terminal and run this command:

sudo apt-get install --install-recommends jstest* joystick xboxdrv 

You also need to ensure that xpad is not getting loaded:

echo "blacklist xpad" | sudo tee -a /etc/modprobe.d/blacklist.conf sudo rmmod xpad # unload module if already loaded 

Configuring the pad

Connect now your game controller to your PC via USB (wired) or connect your XBOX 360 PC wireless gaming receiver for your wireless controller, then run this command to start the configuration:

In the window that shows up, select your controller (Microsoft X-Box 360 pad, Generic X-Box pad, etc.) and click Properties:

enter image description here

Note If your controller is not listed, try to click the «Refresh» button.

enter image description here

A new window will pop-up which will help you calibrate your gaming controller, remap the buttons of your game controller (changing the order of axis and buttons), etc.

After you finish your configuration, save your new settings and close the window. You will be able now to use your Xbox 360 controller to play games under Ubuntu.

Configure xboxdrv to start at boot

If you’re making a dedicated machine or want to ensure that xboxdrv is loaded on startup you can do this:

First create an upstart job:

sudoedit /etc/init/xboxdrv.conf 

and in there add the following contents:

start on filesystem exec xboxdrv -D expect fork 

This will ensure xboxdrv is started on boot.

I created a PPA to get this working in 14.04 (some minor differences). Additionally this PPA marks xpad as conflict, properly removes broken configs at install, and creates a System Settings entry called «Joysticks». Check here: launchpad.net/~rael-gc/+archive/ubuntu-xboxdrv

Читайте также:  Где посмотреть логи линукс

In order for xboxdrv to start in daemon mode, you may have to add a rule to dbus (see here: github.com/Grumbel/xboxdrv/issues/42)

Ubuntu 14.04, 15.10, 16.04:

I created an PPA to install and create a proper daemon for xboxdrv in 14.04 and above.

Additionally this PPA will cleanup broken config, mark xpad as conflict (stop it if necessary), start the xboxdrv daemon and create a «Joysticks» entry into System Settings.

To install it, run in a terminal:

sudo apt-add-repository -y ppa:rael-gc/ubuntu-xboxdrv sudo apt-get update sudo apt-get install ubuntu-xboxdrv 

PS: I cloned the package to other releases and even changed it to work with systemd .

Nothing I found could get my XBox 360 Wireless Receiver to work in Linux Mint 17.1 until I did this, then suddenly I saw my controller sync in front of my eyes for the first time in Linux. Thank you so much for this.

Finally solved it. Just type in this in the Terminal

sudo apt-get update sudo apt-get install xboxdrv xboxdrv --silent & 

and done you just installed Xbox driver and you’re all ready to use your Xbox 360 controller :D. I guess when everyone says the controller is a Plug&Play and it does not then you have to install the necessary drivers to use it.

And then install jstest-gtk either via a following «sudo apt-get install jstest-gtk» or it can also be found via the Ubuntu Software Center. Unfortunately the whole XBOX package and some kind of GUI/test program has not been submitted to the software center.

UPDATE: This is not required for Kernel 4.2 (maybe 15.10 or 16.04) and higher. This Bug has finally been fixed: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1272765.

If you have problems with blinking LEDs just add this ppa and install the fixed xpad kernel module from SteamOS. Thanks Valve!

sudo add-apt-repository ppa:mdeslaur/steamos sudo apt-get update sudo apt-get install steamos-xpad-dkms 

This updates the xpad module in Ubuntu, so you do not need xboxdrv.

This is an update to existing answers for a way to get an XBox360 controller working in Wine >= 1.7, including Steam games in Wine on Ubuntu >= 13.10. No root permissions needed for installation and operation.

The below method makes use of x360ce.exe, which basically provides Dinput codes for Wine to communicate with a game (Note that your XBox controller still sends Xinput controls).

    Plug in your XBox360 (or compatible) controller to have it automatically recognized with the xpad kernel module.

No need to install and run xboxdrv because at present the controller appears to be recognized. Do not blacklist the Xpad kernel module as was recommended in older tutorials.

  • x360ce.exe
  • dinput8.dll
  • xinput1_3.dll

 data-lazy-src=

Как легко подключить контроллер от Xbox 360 в Ubuntu

Как легко подключить контроллер от Xbox 360 в Ubuntu

Драйвер «xpad» доступен в Ubuntu 14.04 LTS по умолчанию. В большинстве случаев все работает гладко и стабильно, но владельцы новых беспроводных контроллеров отмечают существование проблем с некорректным реагированием на нажатие кнопок и беспричинным мерцанием лампочек на контроллере.

Для более гладкого управления игровым процессом, настройками, чувствительностью и назначением кнопок обычно рекомендуется альтернативный драйвер под названием «xboxdrv».

Xboxdrv считается отличным решением, засчет поддержки широкого спектра устройств и огромного количества доступных настроек, такик как:

  • Имитация клавиатуры и мыши
  • Переназначение кнопок
  • Регулировка/настройка/калибровка
  • Макросы для триггеров
  • Настройка лампочек на геймпаде

Настройка Ubuntu Xbox драйвера

Выше мы упомянули драйвер xboxdrv: но его не так то просто установить. Постоянно возникают проблемы несовместимости драйвера с Панелью Управлению Unity, это очень сильно раздражает и мешает настройке.

Но репак драйверов от Rael GC решает большую часть этих проблем (и многие другие!). Его репак драйвера xboxdv — который он назвал «Ubuntu xboxdrv» — доступен для Ubuntu 12.04 LTS, 13.10 и 14.04 LTS с помощью соответствующего PPA, благодаря которому процесс установки (и удаления) значительно упрощается.

Чтобы установить, откройте окно Терминала и введите следующие команды:

sudo apt-add-repository ppa:rael-gc/ubuntu-xboxdrv

sudo apt-get update && sudo apt-get install ubuntu-xboxdrv

После завершения установки необходимо перезагрузить компьютер, чтобы убедиться, что новые драйверы заменили стандартные. Теперь, можно смело пробовать. Особые настройки можно производить в интерфейсе контроллера в Центре программного обеспечения.

За более детальной информацией воспользуйтесь страницей проекта на GitHub.

Источник

How to Use Xbox 360 Wireless Gaming Controller?

Im Curious about the usage of the controller to play any games, like. does it even work in linux?,if so do i need a driver of some sorts?

4 Answers 4

I’m using the Microsoft Xbox 360 Wireless (Gaming) Receiver for Windows in Ubuntu Linux together with multiple “Microsoft Xbox 360 Wireless Controller” gamepads for single or multiplayer games with up to 4 controllers simulatiously.

This solution took me some time to figure out and it might be not the final solution to issues with gamepads in Linux, but these controllers are some of the most supported gamespads in the Linux world and a standard in PC gaming for game developers since their introduction in 2005 until today. This solution works for Xbox and Xbox One Controllers too.

Читайте также:  Посмотреть диски linux terminal

As drivers, I’ve used xboxdrv and xpad before on my notebook (from Ubuntu LTS-Versions 12.04 until 18.04), but xboxdrv failed to be fully recognised with some games on my new PC with a fresh Kubuntu 18.04 LTS installed, because xboxdrv it is unmaintained now (since about 2 years). The last Ubuntu LTS it was working perfectly for me was 14.04, just with installing the PPA.

Just after installing Kubuntu 18.04 LTS (or Ubuntu 18.04 LTS for that matter), I’ve first tried to use my Xbox360 Wireless Controller gamepads and it worked out of the box with the default kernel driver version of xpad, but only in some games, where the analog bumpers (LB and RB) where not needed. Problems arrived in Steam and Steam Play, for native Linux games as well as Windows games though Steam Play (Valve’s Wine adaption inside steam). Valkyria Chronicles played well, in Grand Theft Auto V only the camera worked (unplayable) and in Project Cars 2 I was able to assign the basic controls to buttons that worked, but it was almost unplayable.

I tried every solution with xboxdrv then, that I could find on the net, but it’s just too old now. Valve contributed a lot to linux gaming since then. All buttons worked with xboxdrv, but the configuration mixed up the axis of the right stick and the right bumper and I couldn’t figure out how to solve it.

So here is the solution using xpad that made all the magic happen just by installing it. All the gamepads worked perfectly as it should have been with all the games I tried.

Install the Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers

Follow the installation instructions there. By the time of writing it goes like this:

Open Terminal

    Install git and dkms if you haven’t got it by entering:

sudo apt-get install git dkms 
sudo git clone https://github.com/paroj/xpad.git /usr/src/xpad-0.4 
sudo dkms install -m xpad -v 0.4 

Install this PPA with joystickwake to help with Screensavers

Unless a game takes special steps, you also will need a joystick-aware screen waker until the display servers catch up. Joystickwake helps linux gamers who are tired of their screen saver interrupting their fun. The source code and documentation are on github: https://github.com/foresto/joystickwake

sudo add-apt-repository ppa:foresto/toys 

Источник

Оцените статью
Adblock
detector