Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 07-06-2008, 06:03 AM   #1
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
Gamepad Axes wrong


I have a USB gamepad, which is working *almost* perfectly. It's a 2 axis (just X and y on a D-pad, no joysticks), 10-button gamepad, and I've listed everything from usbview below.

The only problem this device is having is that what should be the X and Y axes are instead axes 3 and 4, respectively.

Basically, I need to switch around the axes. I use KDE Does anyone know of a way to do this?

I tried using the X11 joystick module, using the MapAxisX options to try to convince X to switch the axes around, but X11 decided not to like the joystick at all:
(**) Option "Device" "/dev/input/js0"
(**) Option "SendCoreEvents"
(**) GamePad: always reports core events
(**) Option "MapAxis3" "axis=x"
(**) Option "MapAxis4" "axis=y"
(II) evaluating device (GamePad)
(II) XINPUT: Adding extended input device "GamePad" (type: MOUSE)
(II) evaluating device (Mouse0)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) evaluating device (Keyboard0)
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(EE) Joystick: ioctl EVIOCGVERSION on '/dev/input/js0' failed: Invalid argument
(II) Joystick: GreenAsia Inc.    USB Joystick     . 6 axes, 10 buttons
(II) Mouse0: ps2EnableDataReporting: succeeded

Fatal server error:
Bad valuators reported for device GamePad

Info from usbview:
USB Joystick     
Manufacturer: GreenAsia Inc.   
Speed: 1.5Mb/s (low)
USB Version:  1.00
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 0e8f
Product Id: 0002
Revision Number:  1.07

Config Number: 1
	Number of Interfaces: 1
	Attributes: 80
	MaxPower Needed: 500mA

	Interface Number: 0
		Name: usbhid
		Alternate Number: 0
		Class: 03(HID  ) 
		Sub Class: 00
		Protocol: 00
		Number of Endpoints: 1

			Endpoint Address: 81
			Direction: in
			Attribute: 3
			Type: Int.
			Max Packet Size: 8
			Interval: 17ms


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
convert usb gamepad to wireless gamepad schneidz Linux - Hardware 1 06-12-2008 04:13 PM
LXer: Trolltech axes the Greenphone LXer Syndicated Linux News 0 10-22-2007 06:50 PM
joydev axes to buttons realmrnice Programming 0 08-10-2005 09:10 AM
joydev params for axes/buttons fuzzbucket Linux - Hardware 0 12-20-2004 02:29 PM Calc - Switching Axes in XY graph? apachedude Linux - Software 1 12-05-2004 12:24 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:57 PM.

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