Bug 218468 - Cursor jumps in upper left screen corner on suspend
Summary: Cursor jumps in upper left screen corner on suspend
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 225179 227279 236889 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-13 08:11 UTC by Andrey Borzenkov
Modified: 2010-05-09 12:21 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Borzenkov 2009-12-13 08:11:52 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

KDE 4.3.80/Qt 4.6.0

I have never observed it in 4.3.x so it looks like regression.

I use main panel on top of screen with K button on the left. Every time I suspend system cursor jumps in the upper left corner, meaning it is paced on K button (causing tool tip, misdirected touchpad press etc). This happens even if I directly use kded D-Bus interface:

qdbus org.kde.kded /modules/powerdevil org.kde.PowerDevil.suspend 2

and even if suspend itself fails (this is another issue probably unrelated to KDE).
Comment 1 Dario Freddi 2009-12-13 12:25:36 UTC
Powerdevil, to prevent suspension cycles, fakes user activity right before suspending. At the moment, KIdleTime uses XTest with a mouse movement, I'll make it use a fake key instead, or even better a smaller mouse movement.
Comment 2 Christoph Feck 2010-03-13 23:31:03 UTC
*** Bug 227279 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2010-03-13 23:31:54 UTC
*** Bug 225179 has been marked as a duplicate of this bug. ***
Comment 4 Lubos Lunak 2010-04-22 14:29:52 UTC
(In reply to comment #1)
> Powerdevil, to prevent suspension cycles, fakes user activity right before
> suspending. At the moment, KIdleTime uses XTest with a mouse movement, I'll
> make it use a fake key instead, or even better a smaller mouse movement.

man XResetScreensaver
(and https://bugs.freedesktop.org/show_bug.cgi?id=25855 , but in general in KDE there's no need for any ugly XTest hacks)
Comment 5 Martin Blumenstingl 2010-04-23 21:33:55 UTC
It looks like Eike and I were adding information to a bug which has been closed since it's a duplicate of this one.
Sorry for that.

The bug to which we added quite a lot information (including a patch which may fix the bug) is here:
https://bugs.kde.org/show_bug.cgi?id=227279
Comment 6 Dario Freddi 2010-04-24 12:41:18 UTC
SVN commit 1118296 by dafre:

BUG: 227279
BUG: 218468

Do not make the mouse fly away when simulating user activity. Thanks Lubos for the suggestion.



 M  +4 -4      kidletime.h  
 M  +2 -1      widgetbasedpoller.cpp  
 M  +1 -11     xscreensaverbasedpoller.cpp  
 M  +3 -9      xsyncbasedpoller.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1118296
Comment 7 Dario Freddi 2010-04-24 12:43:16 UTC
SVN commit 1118297 by dafre:

CCBUG: 227279
CCBUG: 218468

Backporting previous fix



 M  +4 -4      kidletime.h  
 M  +2 -1      widgetbasedpoller.cpp  
 M  +1 -11     xscreensaverbasedpoller.cpp  
 M  +3 -9      xsyncbasedpoller.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1118297
Comment 8 Pino Toscano 2010-05-09 12:12:17 UTC
*** Bug 227279 has been marked as a duplicate of this bug. ***
Comment 9 Oswald Buddenhagen 2010-05-09 12:21:30 UTC
*** Bug 236889 has been marked as a duplicate of this bug. ***