X restarts after button on gamepad is pressed

Bug #272421 reported by Lubor
This bug report is a duplicate of:  Bug #274203: Joystick detected as mouse, crashes X. Edit Remove
18
Affects Status Importance Assigned to Milestone
xserver-xorg-input-joystick (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-input-all

In Ubuntu 8.10 Alpha every time i press button on gamepad EU3C Gamepad FreePlayer (GMPPCUR11051 USB 2.4GHz RF Vibration Joypad), X crashes/restarts. In ubuntu 8.04 LTS is Joypad perfectly functional without configuration. Because analog joystick moves in 8.10 cursor, i think, that problem is in new xserver-xorg-input-all.

Revision history for this message
Gabriel Rota (gabriel-rota) wrote :

gdm restart on press any button on joypad logitech precision

when I press any button on my joypad gdm restart on intrepid, on hardy work good.

kernel.log

Sep 21 19:13:05 grota-laptop kernel: [ 477.964055] usb 2-1: new low speed USB device using uhci_hcd and address 2
Sep 21 19:13:05 grota-laptop kernel: [ 478.145212] usb 2-1: configuration #1 chosen from 1 choice
Sep 21 19:13:05 grota-laptop kernel: [ 478.166998] input: Logitech Logitech(R) Precision(TM) Gamepad as /class/input/input11
Sep 21 19:13:05 grota-laptop kernel: [ 478.221191] input,hidraw1: USB HID v1.10 Joystick [Logitech Logitech(R) Precision(TM) Gamepad] on usb-0000:00:1d.1-1

xorg.log

(II) config/hal: Adding input device Logitech Logitech(R) Precision(TM) Gamepad
(**) Logitech Logitech(R) Precision(TM) Gamepad: always reports core events
(**) Logitech Logitech(R) Precision(TM) Gamepad: Device: "/dev/input/event10"
(II) Logitech Logitech(R) Precision(TM) Gamepad: Found x and y absolute axes
(II) Logitech Logitech(R) Precision(TM) Gamepad: Found 1 mouse buttons
(II) Logitech Logitech(R) Precision(TM) Gamepad: Configuring as mouse
(II) XINPUT: Adding extended input device "Logitech Logitech(R) Precision(TM) Gamepad" (type: MOUSE)
(**) Logitech Logitech(R) Precision(TM) Gamepad: YAxisMapping: buttons 4 and 5
(**) Logitech Logitech(R) Precision(TM) Gamepad: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

gdm.log

Backtrace:
0: /usr/X11R6/bin/X(xf86SigHandler+0x65) [0x481005]
1: /lib/libc.so.6 [0x7f3d8191d120]
2: /usr/X11R6/bin/X(GetKeyboardValuatorEvents+0x3c) [0x45db2c]
3: /usr/X11R6/bin/X(GetKeyboardEvents+0x17) [0x45deb7]
4: /usr/X11R6/bin/X(xf86PostKeyboardEvent+0x62) [0x497ab2]
5: /usr/lib/xorg/modules/input//evdev_drv.so [0x7f3d6b123639]
6: /usr/X11R6/bin/X [0x4811b5]
7: /usr/X11R6/bin/X [0x471ce7]
8: /lib/libpthread.so.0 [0x7f3d833650f0]
9: /lib/libc.so.6(__select+0x13) [0x7f3d819c9363]
10: /usr/X11R6/bin/X(WaitForSomething+0x1db) [0x4eaf0b]
11: /usr/X11R6/bin/X(Dispatch+0x7f) [0x44d4bf]
12: /usr/X11R6/bin/X(main+0x45d) [0x43378d]
13: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f3d81908466]
14: /usr/X11R6/bin/X [0x432b69]
Saw signal 11. Server aborting.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Please attach the output of 'lshal'.

Changed in xorg:
status: New → Incomplete
Revision history for this message
Gabriel Rota (gabriel-rota) wrote :
Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

I can confirm this bug. Not only does the buttons on my gamepad kill X, the D-Pad moves the mouse cursor around the screen.

I reported my bug but I didn't see this one until now. Here is my bug report:
https://bugs.launchpad.net/ubuntu/+bug/273364

Perhaps it can be merged with this one.

Revision history for this message
Lubor (kemza) wrote :

Sorry, i can not post you lshal output, bacause i reinstall Ubuntu 8.10 Alpha 6 meanwhile and install Mythbuntu 8.10 Alpha 6. In this edition of intrepid gamapad func properly.So, i do:
(sudo) apt-get update && apt-get upgrade && apt-get install ubuntu-desktop
Everything goes like charm !

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

Attached is my lshal output.

What is the status on this bug? This is a crucial bug as everyone that tries to use their joystick won't be able to, if it's as it seems.

Revision history for this message
Lubor (kemza) wrote :

Is i wrote, for me (after reinstall to Mythbuntu 8.10 Alpha6 32 bit) everything look ok now. But before i had Ubuntu 8.10 Alpha 6 64bit. Is possible, that this is problem specify to 64bit? Can you tell which version are you used?

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote : Re: [Bug 272421] Re: X restarts after button on gamepad is pressed

I am on 64-bit as well. I'd prefer not to reinstall my system if
possible, rather I'd be happy to reinstall a specific component or test
a new package.

Lubor wrote:
> Is i wrote, for me (after reinstall to Mythbuntu 8.10 Alpha6 32 bit)
> everything look ok now. But before i had Ubuntu 8.10 Alpha 6 64bit. Is
> possible, that this is problem specify to 64bit? Can you tell which
> version are you used?
>
>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The point of getting the lshal output is to gather information about joysticks and add them to an fdi file so that they'll use the joystick driver instead of evdev (which is probably why it crashes)... so even if it works ok, provide the output of 'lshal', thanks.

Revision history for this message
Lubor (kemza) wrote :

Ok, here is output of lshal from my system with functional gamepad.

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

Did my lshal give you the information you needed?

Timo Aaltonen wrote:
> The point of getting the lshal output is to gather information about
> joysticks and add them to an fdi file so that they'll use the joystick
> driver instead of evdev (which is probably why it crashes)... so even if
> it works ok, provide the output of 'lshal', thanks.
>
>

Revision history for this message
kristian (kristian-gjengedal) wrote :

i have 2 gamepads one is a Logitech rumblepad 2 and one is a standard wired xbox360 gamepad.

the logitech rumblepad 2 works great,
while the xbox 360 controller has this problem, the main axis acts as a mouse while the normal buttons crashes X.

i have attached my lshal with both controllers.

Revision history for this message
Michael DePaulo (mikedep333) wrote :

I am experiencing this as well with my Nintendo64 gamepad/joystick on a USB adapter.
Bus 002 Device 003: ID 6666:0667 Prototype product Vendor ID WiseGroup Smart Joy PSX, PS-PC Smart JoyPad

Revision history for this message
Michael DePaulo (mikedep333) wrote :

I forgot to mention, this happens even when xserver-xorg-input-joystick is not installed.

Revision history for this message
StR34k (pnearing) wrote :

Hey, there seems to be a few bug reports all relating to the same issue. I have a temporary work around, but it's far from a solution. Check out my post in bug #274203

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-joystick/+bug/274203

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-input-joystick - 1:1.3.2-1ubuntu1

---------------
xserver-xorg-input-joystick (1:1.3.2-1ubuntu1) intrepid; urgency=low

  * Add 10-x11-joystick.fdi, with various models listed. (LP: #272421,
    #273364, #274203)

 -- Timo Aaltonen <email address hidden> Mon, 06 Oct 2008 17:24:26 +0300

Changed in xserver-xorg-input-joystick:
status: Incomplete → Fix Released
Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

I have all updates as of just now, and after a reboot the problem is still happening.

Revision history for this message
Gabriel Rota (gabriel-rota) wrote :

hi I have installed
https://launchpad.net/ubuntu/intrepid/amd64/xserver-xorg-input-joystick/1:1.3.2-1ubuntu1
and now I can use joystick as mouse and key pressed don't restart x
only little problem I found is on smc menu the joystick "moused" make conflict and only good input method is from keyword

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

I have all updates as of today, and this problem still happens. I also just installed Intrepid on my laptop and I'm having this problem there too. I think this bug should be changed from "fix released" to "confirmed".

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

Sorry for the multiple posts, but I haven't stopped testing this and I have some new information to add.

1.) First of all, the package xserver-xorg-input-joystick-1:1.3.2-1ubuntu1 is not installed by default. The whole time I was waiting for it to update, when the default install of both Ubuntu and Kubuntu both do not include this. (Even on an install I did a few days ago).

2.) If xserver-xorg-input-joystick is required for you to be able to utilize gamepads, this package MUST be included in the default install. Otherwise, the backlash from gamers will be HUGE.

3.) Even worse, the package xserver-xorg-input-joystick-1:1.3.2-1ubuntu1 was marked as the fix for this bug, and this package doesn't even fix it. It does prevent the D-Pad on my game controller from moving the mouse, but the action buttons still restart X. This is DEFINITELY not fixed.

4.) Thank you to everyone testing this and to all the awesome developers working so hard on a great OS! :)

Changed in xserver-xorg-input-joystick:
status: Fix Released → Confirmed
Revision history for this message
lemonade (lemonade) wrote :

I just upgraded and noticed this same bug happening here too. I have two Logitech PS2 -controllers using Lakeview Research WiseGroup Ltd, MP-8866 Dual Joypad -adapter for USB. I attached output of lshal.

Revision history for this message
Duncan Hawthorne (duncan.hawthorne) wrote :

i have the same symptoms. moving the joystick controls the cursor, pressing a button restarts X.
i have xserver-xorg-input-joystick installed, but makes no difference with it not installed
this is on an all up to date, ubuntu intrepid

i have attached lshal

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

I installed xserver-xorg-input-joystick and it fixed the problem with the joystick crashing X and I can now play my games.

However, two issues remain:

1.) The gamepad still controls the mouse. This should not be by default.

2.) Joysticks and gamepads should work out of the box in Ubuntu. If not, the backlash from gamers is going to be HUGE and alone can be enough to hurt Ubuntu's reputation. Let's face it, the state of gaming in Linux is bad enough as it was!

If gamepads work out of the box in Ubuntu, consider me one satisfied user!

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

I tested sdlmame, and even though my controller works now, the very fact that the d-pad controls the mouse cursor by default completely prevents the D-Pad from working in sdlmame.

Revision history for this message
gerstrong (gerstrong) wrote :

In the daily-live CD of Ubuntu intrepid October 11th, there is still this bug!

Revision history for this message
John Daniul (jdaniul) wrote :

I can also confirm that this bug is still in active.

Intrepid Ibex beta default install, updated with all "security" and "recommended" updates as of 10/10/08 9pm PST, Logitech Dual Action gamepad. XServer still resets every time the "triangle" button is pressed.

Any info I can provide that will help diagnose this problem?

Revision history for this message
Jeremy LaCroix (jlacroix82-deactivatedaccount) wrote :

Does anyone know when we can expect a fix for this issue? Intrepid is getting very close to release. If there's anything I can do to help, please let me know.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.