LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-23-2012, 11:34 AM   #1
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Rep: Reputation: 0
Xbox 360 Controller


I'm trying to get an xbox 360 controller working on linux. I read somewhere there is a builtin module in the kernel for it and I tried googling about it but I don't find much related to the kernel. I wanna try out the kernel one if it exist still or at all before I move on to a nother program incase the kernel is all i need or want. Also if this module dosn't exisit anymore or I'd have to recompile my kernel just to get it then what are my alternatives I've found some but I would like some user input thank you
 
Old 11-23-2012, 11:37 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
It is here:
Code:
  ┌───────────────────────── X-Box gamepad support ─────────────────────────┐
  │ CONFIG_JOYSTICK_XPAD:                                                   │  
  │                                                                         │  
  │ Say Y here if you want to use the X-Box pad with your computer.         │  
  │ Make sure to say Y to "Joystick support" (CONFIG_INPUT_JOYDEV)          │  
  │ and/or "Event interface support" (CONFIG_INPUT_EVDEV) as well.          │  
  │                                                                         │  
  │ For information about how to connect the X-Box pad to USB, see          │  
  │ <file:Documentation/input/xpad.txt>.                                    │  
  │                                                                         │  
  │ To compile this driver as a module, choose M here: the                  │  
  │ module will be called xpad.                                             │  
  │                                                                         │  
  │ Symbol: JOYSTICK_XPAD [=m]                                              │  
  │ Type  : tristate                                                        │  
  │ Prompt: X-Box gamepad support                                           │  
  │   Defined at drivers/input/joystick/Kconfig:279                         │  
  │   Depends on: !S390 && !UML && INPUT [=y] && INPUT_JOYSTICK [=y] && \   │  
  │ USB_ARCH_HAS_HCD [=y]                                                   │  
  │   Location:                                                             │  
  │     -> Device Drivers                                                   │  
  │       -> Input device support                                           │  
  │         -> Generic input layer (needed for keyboard, mouse, ...) (INPUT │  
  │           -> Joysticks/Gamepads (INPUT_JOYSTICK [=y])                   │  
  │   Selects: USB [=y]                                                     │
Make sure to also select 'X-Box gamepad rumble support' and 'LED Support for Xbox360 controller 'BigX' LED'.
 
Old 11-23-2012, 11:50 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
So try the following?

Code:
modprobe xpad
 
Old 11-23-2012, 11:57 AM   #4
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
Maybe I'm just not seeing it but how do I get to that...? Because I don't see any command just instruction and/or some sort of documentation you pasted for me to read that has instructions but no matter whatever this is I have no idea how to run it. Thanks for the reply though much appreciated
 
Old 11-23-2012, 01:59 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, when you configure the kernel search for 'CONFIG_JOYSTICK_XPAD'. The module is available on both generic and huge slackware kernels, so run 'modprobe xpad' in a terminal as dugan suggests.
 
Old 11-23-2012, 05:18 PM   #6
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
k then how do I configure it would I just run the command "xpad" I assume that be correct but I'm trying to figure out what the first post's command is and so I assume at first run it will show me that but don't want to mess with it if I don't have to
 
Old 11-23-2012, 06:31 PM   #7
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
No. You will not use the "xpad" command. The configuration of the controller is going to depend on the application. In order for anything to be able to use it, you have to have the module loaded. It's probably going to be loaded upon plugging it in, but to do it manually, as root type this:
Code:
modprobe xpad
That will load the kernel module.

edit: Oh, yeah,... If this is the charge and play pack, good luck. As far as I know, the only controller to enumerate as a HID is the wired only controller.

Last edited by manwichmakesameal; 11-23-2012 at 06:33 PM.
 
Old 11-23-2012, 10:48 PM   #8
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
I have one and it just worked when I installed 14.0 (32 bit), I didn't have to do anything other than configure it inside the various games.
 
Old 11-24-2012, 03:19 AM   #9
Roberto Neri
LQ Newbie
 
Registered: Nov 2012
Location: Palermo, Italy
Distribution: Slackware
Posts: 10

Rep: Reputation: Disabled
Hi all,
as an alternative to the xpad kernel module I would like to suggest the xboxdrv-linux utility (SlackBuild available).
I recommend reading the documentation at http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html, there's not just the manpage but also a lot of extra useful information.
Personally I adopted the solution described in the "Using a single controller" paragraph, and it worked like a charm, no kernel rebuilding or other work around has been necessary.
I just would like to add that I have a XBox360 Wireless gamepad, the wireless controller is assigned to /dev/input/js0, while the gamepad itself is assigned to /dev/input/js1, to use the gamepad in DOSBox I had to pass the SDL_JOYSTICK_DEVICE=/dev/input/js1 environment variable, while I didn't have to do so for Wine (again, you'll find more information about potential issues like these in the documentation page).
 
Old 11-24-2012, 05:15 PM   #10
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
that what you suggested Roberto_Neri is what I was thinnking about using just gotta find the time to sit down with the controller to do this
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stunt Rally and xbox 360 controller don_wombat_73 Linux - Games 0 02-29-2012 08:31 PM
LXer: Xbox 360 reset glitch hack, Xbox 360 Linux on its way? LXer Syndicated Linux News 0 08-29-2011 10:50 PM
Xbox 360 Controller - CentOS vince4amy Red Hat 2 09-30-2009 09:33 AM
I'm a Noob and i don't know how to use my Xbox 360 controller! bman000 Linux - Hardware 2 03-02-2007 03:14 AM
xbox 360 controller programming ma1069 Programming 3 01-30-2007 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration