Bug 219867

Summary: [critical] mouse pointer jumps from the KDE
Product: [I don't know] kde Reporter: Michał Kudła <m1k0>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: abhi_tech_2004, andresbajotierra, kdelibs-bugs, m.seifert, nolden
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: script for fliping the screen

Description Michał Kudła 2009-12-23 20:02:24 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Gentoo Packages

mouse pointer jumps from the KDE (is selected from the kdm login screen)
If I log on to the Openbox session (is selected from the kdm login screen) and from terminal run a plasma-desktop - mouse behaves correctly

My Hardware: MSI Wind U100
Comment 1 Dario Andres 2009-12-24 17:06:09 UTC
- Could you better explain the "mouse pointer jumps" problem ? Is it jumping continuously ? inside which screen area ?
Regards
Comment 2 Michał Kudła 2009-12-24 20:17:38 UTC
(In reply to comment #1)
> - Could you better explain the "mouse pointer jumps" problem ? Is it jumping
> continuously ? inside which screen area ?

I move the mouse pointer continuously - mapping on the screen correctly.
After moving constantly doing pushing the pause and resume - the mouse pointer appears suddenly in the upper left corner of the screen

I watch it with sentelic touchpad and Logitech Bluetooth mouse
Comment 3 Dario Andres 2009-12-24 20:44:57 UTC
Just a guess:
- Start with OpenBox (or a custom session)
- Launch "kdeinit4"
- Launch "plasma-desktop"
- Launch "kwin" (if it can be done without crashing the session)
- Launch "systemsettings" and visit the Mouse settings

- Does some of this steps "trigger" this bug ?
Regards

BTW, is the mouse a bluetooth one ? (I didn't understand properly)
Comment 4 Michał Kudła 2009-12-24 21:48:50 UTC
(In reply to comment #3)
> Just a guess:
> - Start with OpenBox (or a custom session)
> - Launch "kdeinit4"
> - Launch "plasma-desktop"
> - Launch "kwin" (if it can be done without crashing the session)

so far so good

> - Launch "systemsettings" and visit the Mouse settings

after "Apply" pointer goes crazy

how to disable loading cursor themes between KDE loading?

> BTW, is the mouse a bluetooth one ? (I didn't understand properly)
Comment 5 Jekyll Wu 2012-07-10 13:14:30 UTC
Feel free to reopen the report if the problem still happens in recent versions ( KDE SC 4.8.4 or higher). Thanks.
Comment 6 Michael Seifert 2012-12-30 13:17:31 UTC
I can confirm this issue. It still persists in KDE 4.9.4.

Description
The symptoms are identical to those of the OP (see also comment #2) with the exception that the pointer not only jumps to the upper left corner, but also to the upper and left screen edge, depending on how the mouse is moved after pausing. Moving it along the y-axis makes it jump to the upper edge, moving it along the x-axis makes it jump to the left edge and movements in both directions cause it to jump to the upper left corner.

Solution
After performing the steps suggested in comment #3, during which i had no mouse pointer issues, i discovered that the threshold for the pointer movement was set to 0. Setting it to a positive value solved the issue.

Related bugs
I suspected xorg-server to be the cause and found a bug report on freedesktop.org [1] and tried the suggested fix in comment 11 to no result. A bug report on launchpad [2] said it might be related to xorg-server 1.13, so i downgraded which did not fix the issue either. 

[1] https://bugs.freedesktop.org/show_bug.cgi?id=54353
[2] https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1041063
Comment 7 abhijit 2013-06-20 13:22:32 UTC
Created attachment 80668 [details]
script for fliping the screen

Hi,

I am facing the similar problem when I use KICAD in KDE with Fedora 18 (64-bit) in my ThinkPad X230T convertible laptop. In KDE when I scroll inside KICAD window the pointer goes to top-left corner. KICAD is running fine with GNOME even if I flip the screen with the attached script (flip). Once I logout from GNOME and enter KDE there will be no problem. The problem starts if I directly enter KDE or rotate/flip the screen in KDE.

I think it is a problem with KDE desktop effect and how the xrandr configurations are treated by KDE but not sure.
Comment 8 abhijit 2013-06-20 17:33:35 UTC
Hi,

I think I have found the cause of this problem. With the change of USB mouse model the name of the input device changes and the entries in the script are not updated accordingly.
Here I have shown the list of pointer devices and the last two entries are removable. some time USB mouse can be detected as "USB OPTICAL MOUSE" instead of  "Microsoft Basic Optical Mouse".  

[abhijit@localhost ~]$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 E6 Pen stylus                 id=13   [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 E6 Finger touch               id=14   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=16   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=17   [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 E6 Pen eraser                 id=19   [slave  pointer  (2)]
⎜   ↳ Microsoft Basic Optical Mouse             id=9    [slave  pointer  (2)]
⎜   ↳ 2.4G RF Keyboard & Mouse                  id=11   [slave  pointer  (2)]

Now I feel I need to dynamically update the script. Please let me know if there is any other method to rotate or flip the screen by screen rotation button in KDE.
Comment 9 Christoph Feck 2013-06-28 11:41:23 UTC
abhijit, could you try the KScreen software, and check if it correctly rotates your input together with your screen? If not, please file a new bug report.