LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-17-2007, 04:42 PM   #1
startail
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 52

Rep: Reputation: 15
Gamepad Probelms In Opensuse 10.2


Hi,

I've just bought a game pad to my machine. Since there wasn't much to chose from the choice was a Logitech ChillStream pad with a USB Port.

My problem now is that I can't seem to get it working. I have no /dev/input/js0 etc nodes.

It recognizes the pad okay I guess...

Code:
Bus 002 Device 010: ID 046d:c242 Logitech, Inc. 
Device Descriptor:
  bLength				18
  bDescriptorType		 1
  bcdUSB			   2.00
  bDeviceClass		  255 Vendor Specific Class
  bDeviceSubClass	   255 Vendor Specific Subclass
  bDeviceProtocol	   255 Vendor Specific Protocol
  bMaxPacketSize0		 8
  idVendor		   0x046d Logitech, Inc.
  idProduct		  0xc242 
  bcdDevice		   10.00
  iManufacturer		   1 Logitech
  iProduct				2 XUSB Gamepad
  iSerial				 3 8A60B545
  bNumConfigurations	  1
  Configuration Descriptor:
	bLength				 9
	bDescriptorType		 2
	wTotalLength		   48
	bNumInterfaces		  1
	bConfigurationValue	 1
	iConfiguration		  0 
	bmAttributes		 0x80
	  (Bus Powered)
	MaxPower			  500mA
	Interface Descriptor:
	  bLength				 9
	  bDescriptorType		 4
	  bInterfaceNumber		0
	  bAlternateSetting	   0
	  bNumEndpoints		   2
	  bInterfaceClass	   255 Vendor Specific Class
	  bInterfaceSubClass	 93 
	  bInterfaceProtocol	  1 
	  iInterface			  0 
	  Endpoint Descriptor:
		bLength				 7
		bDescriptorType		 5
		bEndpointAddress	 0x81  EP 1 IN
		bmAttributes			3
		  Transfer Type			Interrupt
		  Synch Type			   None
		  Usage Type			   Data
		wMaxPacketSize	 0x0020  1x 32 bytes
		bInterval			   4
	  Endpoint Descriptor:
		bLength				 7
		bDescriptorType		 5
		bEndpointAddress	 0x02  EP 2 OUT
		bmAttributes			3
		  Transfer Type			Interrupt
		  Synch Type			   None
		  Usage Type			   Data
		wMaxPacketSize	 0x0020  1x 32 bytes
		bInterval			   8
Device Status:	 0x0000
  (Bus Powered)
I've loaded the joydev module to.

"dmesg | grep input" gives me nothing about the gamepad

Code:
input: PC Speaker as /class/input/input0
ALSA sound/pci/hda/hda_codec.c:2131:    inputs: mic=0x18, fmic=0x19, line=0x1c, fline=0x1a, cd=0x0, aux=0x0
input: Logitech USB Receiver as /class/input/input1
input: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:0b.0-3
input: Logitech USB Receiver as /class/input/input2
input,hiddev96: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:0b.0-3
input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input3
input: USB HID v1.10 Keyboard [Mitsumi Electric Apple Extended USB Keyboard] on usb-0000:00:0b.0-2.3
input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input4
input: USB HID v1.10 Device [Mitsumi Electric Apple Extended USB Keyboard] on usb-0000:00:0b.0-2.3
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
But /var/log/messages reports something plugging in to the USB port
Code:
Feb 18 09:03:39 tailz kernel: usb 2-4: new full speed USB device using ohci_hcd and address 6
Feb 18 09:03:40 tailz kernel: usb 2-4: new device found, idVendor=046d, idProduct=c242
Feb 18 09:03:40 tailz kernel: usb 2-4: new device strings: Mfr=1, Product=2, SerialNumber=3
Feb 18 09:03:40 tailz kernel: usb 2-4: Product: XUSB Gamepad
Feb 18 09:03:40 tailz kernel: usb 2-4: Manufacturer: Logitech
Feb 18 09:03:40 tailz kernel: usb 2-4: SerialNumber: 8A60B545
Feb 18 09:03:40 tailz kernel: usb 2-4: configuration #1 chosen from 1 choice
But there's nothing. I have no idea where to go next...

I'm running an pretty unmodified version of openSuSE 10.2.

Can someone help me out here?

Last edited by startail; 02-18-2007 at 02:06 AM.
 
Old 06-14-2007, 05:27 PM   #2
aVirulence
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
I have exactly the same problem. I'm hoping this has been resolved by now and that there is a driver that works.

So far I tried the xbox360 controller driver and the standard joystick drivers.

Does anyone have an idea?
 
Old 06-14-2007, 06:08 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Have you added the device to your xorg.conf?
 
Old 06-15-2007, 05:12 AM   #4
aVirulence
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
No I haven't, but I was under the impression it should show up in dmesg anyway.
 
Old 06-25-2007, 11:58 AM   #5
janfsd
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
I've got the exact same problem on Ubuntu. How to add the device to my xorg.conf? Has anybody managed to make it work?
 
Old 06-25-2007, 02:52 PM   #6
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
I haven't a clue how to fix this on other distros but I've found that YaST can fix the USB gamepad detection easily.

Open YaST - System - /etc/system_config_editor.

Click on the Kernel section and MODULES_LOADED_AT_BOOT (or something to that effect).

Then in the box on the right type in joydev and apply, say yes, and finish.

Reboot and if your system is anything like mine the gamepads will be fully working at every bootup. You can check this in KDE Personal Settings (Control Center), or KControl on other distros.

In the peripherals section click Joysticks and you can test it there. I've never needed to open the Calibrate button.

My problem is that randomly the detection at bootup will switch the order of my 2 gamepads. So at bootup I check it in KControl and if it reversed the order (js0, js1) I close KControl andunplug both pads and plug them in again in the order I want. Then you can open KControl again and you'll see they're in the right order.

I use that /etc/systemconfig_editor to load my specific Creative Soundfont I want to use as well. Pretty cool!

I remember that I had tried manually entering a line for joydev into modules.conf (I think that's the name) but that hadn't worked for me. Sure wish I knew what YaST changes there so I could do this on other distros.

I've gotten so used to using YaST that even though I've studied Fedora 7 and Debian Etch and burned all the DVD's I got lost when using their Live DVD's so just installed OpenSUSE again instead.

I had wanted to play with those in order to become more versed in Linux (Debian) and just to see how other distros do things (Fedora 7), but just scared myself out of it.

Heh, I had printed out hundreds of helpful website info for both Fedora and Debian and purchased and read books, then just installed SUSE again. I'm a wimp, eh?

SUSE's KDE and YaST (as long as I don't break them somehow) can really spoil you!
 
Old 06-26-2007, 04:04 AM   #7
aVirulence
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
The gamepad doesn't work with any of the drivers that are available out of the box..
I just posted this on the Ubuntu forums:

Hi there, you actually need the xbox360 controller driver. Found that out myself after a long time of trying all drivers. You should follow this guide:

http://gentoo-wiki.com/HOWTO_Xbox_36...oller_on_Linux

But instead of using the files in the section "Driver for both Wired and Wireless controllers" use my version:

http://www.avirulence.org/xpad.c and http://www.avirulence.org/xpad.h

Good luck!
 
Old 08-21-2008, 04:32 AM   #8
invalidid
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Fedora, Slackware 13.0, Gentoo
Posts: 7
Blog Entries: 2

Rep: Reputation: 1
Hi all!

I have got the same problems, but I just installed Fedora 9.
But everytime I want to compile the driver I get the following error:

Code:
make modules -C /lib/modules/2.6.25.14-108.fc9.x86_64/build SUBDIRS=/home/bitmaster/joystick
make[1]: Entering directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
  CC [M]  /home/bitmaster/joystick/xpad.o
/home/bitmaster/joystick/xpad.c: In function ‘xpad_probe’:
/home/bitmaster/joystick/xpad.c:498: error: ‘struct input_dev’ has no member named ‘cdev’
/home/bitmaster/joystick/xpad.c:566: warning: ignoring return value of ‘input_register_device’, declared with attribute warn_unused_result
make[2]: *** [/home/bitmaster/joystick/xpad.o] Error 1
make[1]: *** [_module_/home/bitmaster/joystick] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25.14-108.fc9.x86_64'
make: *** [all] Error 2
I know this results in changes of the kernel, but I don't know how to fix this issue correctly.

Does anybody know how to get this driver working?

by the way:
You won't be able to get the xpad driver as avirulence recommended, because of changes of his website. See this post on ubuntuforums.org:

http://ubuntuforums.org/showthread.php?t=428469&page=4

Thanks to all,

bitmaster
 
Old 09-06-2008, 01:09 AM   #9
invalidid
LQ Newbie
 
Registered: Aug 2007
Location: Germany
Distribution: Fedora, Slackware 13.0, Gentoo
Posts: 7
Blog Entries: 2

Rep: Reputation: 1
Hi all!

I got the solution of my problem. The solution is quite simple:
The version of xpad.ko included in the newest kernel source supports the Logitech Chillstream Gamepad out-of-the-box. That means, if you update your kernel and the modules the problem get solved.

As I'am not registered in the update service of Fedora, I won't get updates so I compiled the module using the newest source file from the recent linux kernel source (http://www.kernel.org/) with the Makefile offered by avirulence.

After loading the module joydev and then the new self compiled module xpad I got it working.

Greets,

bitmaster87
 
  


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
K Menu probelms? jamil5454 Linux - Software 2 12-08-2003 07:45 PM
kernel compile probelms hurricane Slackware 6 11-14-2003 10:42 AM
installation probelms (please help) chittico Linux - Newbie 2 10-23-2003 02:29 AM
xine probelms dejan_j Linux - Software 14 06-17-2003 03:11 AM
Probelms with IPMASQADM-0.4.2 on 2.2.20 Pauly Linux - Networking 1 03-12-2002 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:04 PM.

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