[MASTER] Mouse jumps to bottom corner on click in fullscreen games. New mouses (A4Tech). Related to DGA / DGAMOUSE in SDL.

Bug #441408 reported by jpv2
88
This bug affects 18 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Medium
xserver-xorg-input-evdev (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Karmic by Riot777

Bug Description

Update: it seems to affect mostly new mouses, for example by A4Tech company/brand.

My system is:
Description: Ubuntu karmic (development branch)
Release: 9.10

In almost all full screen applications, when I click mouse button (either with LMB, RMB or MMB) mouse pointer jumps to bottom-roght corner of the screen causing application is inoperable.

So far I have noticed this bug in following apps:
- Urban Terror
- Scorched 3D
- Shadowground Survivor
- Defcon

Following apps don't have this problem (i.e. mouse behaves normally):
- Torcs 1.3.1
- Google Earth
- all Wine apps I tested

ProblemType: Bug
Architecture: i386
Date: Sat Oct 3 16:10:05 2009
DistroRelease: Ubuntu 9.10
MachineType: FUJITSU SIEMENS P5GD1-FM
NonfreeKernelModules: nvidia
Package: xserver-xorg-input-mouse 1:1.4.0-2
ProcCmdLine: root=UUID=0b4f822f-7c76-45e7-bd3f-9f24f270a8e0 ro quiet splash
ProcEnviron:
 LANGUAGE=pl_PL:pl:en_GB:en
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu5
 libgl1-mesa-glx 7.6.0~git20090817.7c422387-0ubuntu7
 libdrm2 2.4.13-1ubuntu1
 xserver-xorg-video-intel 2:2.8.1-1ubuntu2
 xserver-xorg-video-ati 1:6.12.99+git20090825.fc74e119-0ubuntu2
SourcePackage: xserver-xorg-input-mouse
Uname: Linux 2.6.31-11-generic i686
dmi.bios.date: 01/10/2005
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1004.001
dmi.board.name: P5GD1-FM
dmi.board.vendor: Fujitsu Siemens
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1004.001:bd01/10/2005:svnFUJITSUSIEMENS:pnP5GD1-FM:pvrSystemVersion:rvnFujitsuSiemens:rnP5GD1-FM:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5GD1-FM
dmi.product.version: System Version
dmi.sys.vendor: FUJITSU SIEMENS
fglrx: Not loaded
system:
 distro: Ubuntu
 architecture: i686kernel: 2.6.31-11-generic

Revision history for this message
jpv2 (jpv2) wrote :
Revision history for this message
jpv2 (jpv2) wrote :

Hello,

it seems that this problem is way similar that old one reported for Edgy

https://bugs.launchpad.net/ubuntu/+source/unclutter/+bug/61105

but in my case the rootcause is not unclutter, for I don't have it running (nor installed). Anyway if I enter
export SDL_MOUSE_RELATIVE=0
which was suggested in comment#26 in above bug report, then the mouse behaves differently, i.e. it reacts properly for clicks, but pointer movement is clipped and I can't rotate freely in FPS games.

P.S.
I installed new clean Kubuntu Beta 1 and the bug persists.

Regards
jpv2

Revision history for this message
jpv2 (jpv2) wrote :

Hello again,

testing on final Kubuntu and Ubuntu release showed no progress. Bug is still not fixed. I can't understand why no one else is reporting this problem. Please can somebody confirm that his mouse works OK under (K)Ubuntu 9.10?

Regards
jpv2

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

I've discovered the same problem with my A4tech X7 multibutton mouse.
But everything works fine with several simple Logitech and Asus mice.

When both mice are connected, clicking X7's button results in pointer jump, but clicking the other mouse does not. This bug is somehow device-dependent.
X7 may produce some additional event on click, that is incorrectly interpreted.

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

I've found a workaround here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=305992

Launching game this way prevents pointer jump:
export SDL_VIDEO_X11_DGAMOUSE=0 && urbanterror

affects: ubuntu → xserver-xorg-input-mouse (Ubuntu)
Revision history for this message
LimCore (limcore) wrote :

This bug affects also me (I reported a duplicate, now market as duplicate - bug#479657)

My hardware is:
Mouse - A4 Tech - X759 Extra evolution mouse,

input: A4Tech USB Mouse
full speed USB device
configuration #1 chosen from 1 choice
USB HID v1.11 Mouse [A4Tech USB Mouse]

details:
[207175.800058] usb 6-2: new full speed USB device using uhci_hcd and address 11
[207175.979911] usb 6-2: configuration #1 chosen from 1 choice
[207175.989100] input: A4Tech USB Mouse as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/input/input16
[207175.989183] generic-usb 0003:09DA:0080.000B: input,hidraw0: USB HID v1.11 Mouse [A4Tech USB Mouse] on usb-0000:00:1d.0-2/input0

The work around works for me :)
Thanks.
export SDL_VIDEO_X11_DGAMOUSE=0 && urbanterror

Revision history for this message
LimCore (limcore) wrote :

several people on forums (and myself) confirm this

Changed in xserver-xorg-input-mouse (Ubuntu):
status: New → Confirmed
C de-Avillez (hggdh2)
Changed in xserver-xorg-input-mouse (Ubuntu):
importance: Undecided → Low
LimCore (limcore)
summary: - In fullscreen apps mouse cursor jumps to bottom-right corner when I
- click
+ [MASTER] Mouse jumps to bottom corner on click in fullscreen games. New
+ mouses (A4Tech). Related to DGA / DGAMOUSE in SDL.
description: updated
Revision history for this message
Riot777 (riot777) wrote :

I can confirm this bug also, I have noticied it after upgrading to Ubuntu 9.10 (from 9.04), using A4Tech AK-47 gaming mouse.

Revision history for this message
Riot777 (riot777) wrote :

export SDL_VIDEO_X11_DGAMOUSE=0 && urbanterror ---> this workaround is not ideal solution, I'm still having occasional mouse jerky movement. That's pretty strange as in Ubuntu 9.04 my mouse worked like a charm, no jerky movement no, jumps to corners. This problem probably affect all A4Tech X7 series mice.

Revision history for this message
karabounga (borsk) wrote :

Nothing news about this bug ? I have the same with a trust predator mouse, all was ok with ubuntu 9.04, but with 9.10, left clic --> jump to bottom right corner. Only tested under urban terror.

Revision history for this message
Riot777 (riot777) wrote :

Attaching random logs from my system.

Revision history for this message
dysmann (dysmann) wrote :

I have the same bug with a Criminal+ mouse in karmic and debian.
I have another (old) mouse which isn't affected.

I didn't have any bug in Jaunty

I have another bug, I think it is linked : when I move the mouse, with several sensibilities, the cursor get back to the bottom right corner. I describer this here : https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/435729/comments/5

export SDL_VIDEO_X11_DGAMOUSE=0 seems to completely fix the problem (on debian, didn't try in Karmic)

Revision history for this message
Riot777 (riot777) wrote :

For me: export SDL_VIDEO_X11_DGAMOUSE=0 fixes the problem partially cause it take away the jumping problem but this leaves my mouse not smooth, not like it was in Ubuntu 9.04. It make my mouse lag in games. Please test if you got the same observations. I tested this issue on two A4Tech mice A4Tech AK-47 and A4Tech X718 and had the same results. I think something may be broken in the xorg package or sdl.

Revision history for this message
Gustav Hartvigsson (gustav-hartvigsson) wrote :

I wonder if this is the course of me not being able to use flash.... flash is sometimes (99/100 times) unresponsive to kicks...

will have to see if i can start firefucks with: export SDL_VIDEO_X11_DGAMOUSE=0 # and see if it helps..

Revision history for this message
Gustav Hartvigsson (gustav-hartvigsson) wrote :

I can confirm that that is what is causing the flash problem...
(sorry for the double post...

Revision history for this message
Oleg Melnik (boten-blindage) wrote :

Seems that this method works, but the mouse sensitivity becomes too high...

Revision history for this message
Riot777 (riot777) wrote :

I tested some more and I have notice that installing xserver-xorg-input-evdev package from Ubuntu 9.04 fixed all my issues (jumping mouse, non smooth mouse during games/incorrect sensitivity).

http://packages.ubuntu.com/jaunty/i386/xserver-xorg-input-evdev/download
http://packages.ubuntu.com/jaunty/amd64/xserver-xorg-input-evdev/download

Please test if it work for rest of you, if it does it may point us that the bug is present in xserver-xorg-input-evdev package.

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

I didn't have problems with smoothness or sensitivity, but downgrading evdev blasted jumping problem.

affects: xserver-xorg-input-mouse (Ubuntu) → xserver-xorg-input-evdev (Ubuntu)
Philip Muškovac (yofel)
tags: added: regression-release
Riot777 (riot777)
Changed in xserver-xorg-input-evdev (Ubuntu):
assignee: nobody → Ubuntu-X (ubuntu-x-swat)
Riot777 (riot777)
Changed in xserver-xorg-input-evdev (Ubuntu):
assignee: Ubuntu-X (ubuntu-x-swat) → nobody
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at: https://bugs.freedesktop.org/show_bug.cgi?id=20770

Changed in xserver-xorg-input-evdev (Ubuntu):
status: Confirmed → Triaged
Changed in xorg-server:
status: Unknown → Confirmed
Revision history for this message
Riot777 (riot777) wrote :

This bug is same as this xorg bug: https://bugs.freedesktop.org/show_bug.cgi?id=24737 which has fix patch available.

Revision history for this message
Micah Gersten (micahg) wrote :

Riot777 found a better upstream bug

Changed in xorg-server:
status: Confirmed → Unknown
Changed in xorg-server:
status: Unknown → Fix Released
Revision history for this message
Riot777 (riot777) wrote :

Patch attached for Ubuntu-X team.

Revision history for this message
Riot777 (riot777) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I modified the upstream patch slightly so it applied on the 2.2.5 version. Well, the change is the same, but things around have changed so a bit of testing would be good. This should bake in Lucid for a while before we push it to karmic-proposed.

Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Psy[H[] (vovik-wfa) wrote :

No more jumping with xserver-xorg-input-evdev 2.2.5-1ubuntu7~tormod
It seems to behave normal.

Revision history for this message
Myxb (myxb) wrote :

I have manually installed the "amd64 build of xserver-xorg-input-evdev 1:2.2.5-1ubuntu7~tormod" package and mouse behaves normally now.

For the programs like UT and DOSBOX there is no more "jumping mouse" problem. As far as my system is concerned, the bug is fixed completely. Thanks a lot!

Revision history for this message
Riot777 (riot777) wrote :

For me also this problem has been fixed with the Tormod package.

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

This bug was fixed in the package xserver-xorg-input-evdev - 1:2.2.5-1ubuntu7

---------------
xserver-xorg-input-evdev (1:2.2.5-1ubuntu7) lucid; urgency=low

  * 102_set_all_valuators_for_relative_motion_events.patch:
    Based on upstream patch for erratic mouse behavior (LP: #441408)
 -- Tormod Volden <email address hidden> Mon, 23 Nov 2009 23:00:32 +0100

Changed in xserver-xorg-input-evdev (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Savvas Radevic (medigeek) wrote :

I confirm that the proposed fix works. I also vote for promoting it to karmic updates :)

Revision history for this message
Kieran O'Neill (kierano-gmail) wrote :

Just noticed I have the same problem too (A4Tech X7 mouse, cursor jumps to lower right corner in Extreme Tux Racer). I see that the patch didn't make it into Karmic. Will it be in the next release?

Revision history for this message
Savvas Radevic (medigeek) wrote :
Changed in xorg-server:
importance: Unknown → Medium
Changed in xorg-server:
importance: Medium → Unknown
Changed in xorg-server:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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