Bug 18127

Summary: X looses Mouse, no movement nor click possible even Pointer is there
Product: xorg Reporter: Tobias Kaminsky <tobias>
Component: Input/MouseAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium CC: hijacker
Version: 7.4 (2008.09)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
xorg.conf none

Description Tobias Kaminsky 2008-10-19 22:45:16 UTC
Created attachment 19753 [details]
Xorg.0.log

Hello, 
I am using a Xinerama Setup with two Nvidia Graphic Boards:
00:0c.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5500] (rev a1)

At some point my mouse stops working. There is no click possible, even the mouse over effect on buttons does not work. Moving the mouse returns only in moving the pointer. XEV even does not recognize the mouse if I hover over the window.

I will attach my xorg.conf and my xorg.0.log.
xorg.conf was created with X -configure, then only swapped nv with nvidia.

When I log out from my KDE session and KDM appears the mouse is working.
Also a hard X reset is working.

I am using a hibernate system, if this is for interest.

Some more infos on my system:
Gentoo, up to date
x11-drivers/xf86-input-evdev: 2.0.6
x11-drivers/xf86-input-mouse: 1.3.0
sys-apps/hal: 0.5.11-r3

Thank you
Tobi

P.S.: I chose major Severity as it is a bug that prevents one from working.
Actually it is critiacal...
Comment 1 Tobias Kaminsky 2008-10-19 22:46:37 UTC
Created attachment 19754 [details]
xorg.conf
Comment 2 Peter Hutterer 2008-10-19 23:42:50 UTC
sounds like a stuck grab. can you narrow it down to a specific application that triggers this?

does the whole thing happen when you use nv instead of nvidia?
Comment 3 Tobias Kaminsky 2008-10-20 03:10:43 UTC
(In reply to comment #2)
> sounds like a stuck grab. can you narrow it down to a specific application that
> triggers this?

First I thought it is Gimp, but this morning it happened while surfing with Firefox.

> does the whole thing happen when you use nv instead of nvidia?

The second Monitor is not recognized by NV, so I cannot verify this.
But I will try adding a modeline this evening.

Can I provide more information? Or see more by myself?

Tobi 

Comment 4 Tobias Kaminsky 2008-10-20 12:43:46 UTC
Using NV to verify that it is a problem of nvidia or x11 in general does not work as my second board is only recognized as a 2mb board so I cannot get both screens working.

Unfortunealy I do not know which more informations I can provide.

Please ask if something is missing.


Thanks
Tobi
Comment 5 Peter Hutterer 2008-10-21 23:47:06 UTC
On Mon, Oct 20, 2008 at 03:10:43AM -0700, bugzilla-daemon@freedesktop.org wrote:
> (In reply to comment #2)
> > sounds like a stuck grab. can you narrow it down to a specific application that
> > triggers this?
> 
> First I thought it is Gimp, but this morning it happened while surfing with
> Firefox.

does the keyboard still work? If so, a minimal application like the following
should confirm the stuck grab:

Display *dpy = XOpenDisplay(NULL);
int rc = XGrabPointer(dpy, DefaultRootWindow(dpy), True, 0, GrabModeAsync,
                      GrabModeAsync, None, None, CurrentTime);
XCloseDisplay(dpy);

if (rc == AlreadyGrabbed)
    printf("already grabbed\n");
else 
    printf("%d\n", rc);


compile that up (with the necessary bells and whistles) and keep it handy to
run when the mouse gets stuck next time.
Comment 6 Tobias Kaminsky 2008-10-23 13:32:02 UTC
I have compiled it. 
But when the mouse "lock" appeared the program showed "0".
Actually it shows always only "0".

Is there something wrong?
The C Code: http://rafb.net/p/Gvsm9H33.html

and how i built it:
gcc -lX11 -Wall grab.c -o grab

Thanks
Tobi
Comment 7 Peter Hutterer 2008-10-23 19:44:41 UTC
> But when the mouse "lock" appeared the program showed "0".
> Actually it shows always only "0".

yeah, 0 means the grab was successful, so we at least can rule out that
something is hogging the mouse.
Comment 8 Tobias Kaminsky 2008-10-24 08:18:52 UTC
(In reply to comment #7)
> > But when the mouse "lock" appeared the program showed "0".
> > Actually it shows always only "0".
> 
> yeah, 0 means the grab was successful, so we at least can rule out that
> something is hogging the mouse.
> 

So what can I do to help you getting fix this bug?

Tobi
Comment 9 Tobias Kaminsky 2008-10-28 00:08:30 UTC
Hello,
now I am thinking it is a problem with my WM.
I used kwin when the problem first occurs.
But with fluxbox the mouse locks after 10secs.
With openbox it is working, but after some time I cannot use any WM related function. But the mouse is still working inside the windows.

Starting the WMs in a konsole/shell does not get me any new informations.

Any idea?
Thanks!

Tobi
Comment 10 Sascha Jüngling 2008-11-15 11:11:33 UTC
I am experiencing the same bug here, using the same X version on Gentoo. Using KDE with KWin aswell.

There is no way I can trigger this bug, though. So I can't tell how to reproduce it. Sometimes it happens, sometimes it doesn't. There are days where I can use the Laptop without issues, then again there's a day it happens twice or three times. Already happened both in Dualhead and single LCD view. Using Xinerama.

Indeed a severe bug, because you have to log out/kill X to get the mouse working again and this is... not so nice ;).

However, all applications keep running as normal. I can even control them via the keyboard. It's just the mouse which appears to be dead. It can still be moved and I still see the cursor, but no control functions work anymore (no program reacts on buttons, scrollwheel or anything else).
Comment 11 Thomas Leonard 2008-11-19 04:04:12 UTC
Same problem here (Xinerama with NVidia binary driver from Ubuntu 8.10).

Running the grab program prints "0". The mouse moves, but the pointer doesn't change and clicks are ignored. The keyboard is fine. Window manager is Ion 3. This is a 32-bit dual-core system.

Also, there are a load of people with a similar-sounding problem here:

https://bugs.launchpad.net/debian/+source/rdesktop/+bug/55739

Running xkill turns the pointer into the skull-and-crossbones and then clicking somewhere turns it back to the pointer. But, nothing gets killed and the problem remains.

It's happening at the moment, and one odd thing about this time is that when I'm looking at the Vim window there is a region of the screen where the mouse pointer disappears if I move over it. This region covers part of Vim's window and also part of the other monitor. If I switch to another tab (using the keyboard) then this effect disappears, and the pointer is visible wherever the mouse is.

The problem usually corrects itself in somewhere between a few minutes and an hour.
Comment 12 Tobias Kaminsky 2008-11-23 14:14:35 UTC
What WM's are you using? 
Maybe it is a problem with WM's as I figured out that is happens more often when I change through them, e.g. from kwin to sawfish then to fluxbox.

Tobi
Comment 13 Peter Hutterer 2008-12-18 02:52:56 UTC

*** This bug has been marked as a duplicate of bug 18668 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.