X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

Bug #296167 reported by Pascal R
260
This bug affects 21 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Critical
Ubuntu
Invalid
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned
xorg-server (Fedora)
Fix Released
Medium
xorg-server (Ubuntu)
Fix Released
High
Unassigned
Intrepid
Fix Released
High
Unassigned

Bug Description

[Problem]
When using Xinerama (such as with multiple video cards), if using an animated cursor, after some time X will stop responding to mouse events. All mouse events are being sent to the root window instead of client applications.

[SRU]
Confirmed fix is released upstream in xserver 1.6.0 and present in Jaunty (as of xserver 1.6.0)

Impact: Severe regression for users of -nvidia and other drivers which still rely on Xinerama, resulting in mouse cursor (and thus much of the GUI) becoming unusable. No reliable workaround known.

Fix: Avoid calling UpdateSpriteForScreen() if the Xinerama extension is loaded

Patch: https://bugs.freedesktop.org/attachment.cgi?id=22373

Test Case: Configure a Xinerama multi-head (3+) layout using -nvidia. Configure the mouse to use an animated cursor; this is optional but makes it easier to reproduce the problem. Move windows around, from one screen to another until the bug is triggered (may take a few tries). Mouse clicking will become disabled, while keyboard and mouse movement continues to work correctly.

Regression Potential: The fix is extremely trivial and highly tied to Xinerama. The net effect is to prevent code from being executed rather than enable it. For non-Xinerama users, there is no chance for regression. For Xinerama users, give the huge number that have reported this as an issue, this bug probably affects all users; furthermore we already have numerous confirmations of the fix and zero reports of side effects. So I think the chance of regression is close to nil.

[Original Report]
After upgrading to Ibex a problem has appeared where after some activity (10-15 minutes), X will suddenly stop responding to any mouse events - the cursor is still there and will move around, but windows won't change focus and clicking the mouse buttons have no effect (in both the focused and unfocused windows). Keyboard still works fine and I can Alt-Tab between windows. Mouse still moves the cursor normally, just will not click anything.

I have a four-monitor Xinerama setup running the latest NVidia drivers on two 8600GT Graphics cards. This setup worked perfectly in Hardy.

Problem is present in 2.6.27-7 & 2.6.24-19, Nvidia Drivers 177 & 173.

Tried with two different wired optical mouses (logitech and microsoft) and problem is present in both.

Once the problem occurs, the only way to get the mouse buttons working again is to Ctl-Alt-Backspace to restart X. Mouse will work fine for a period of time after that.

Strangely - if I have xev running, it won't respond to any events if the mouse is over the window, but if the cursor is at the same height as the window one screen over to the right, it will show events.

I don't think I see anything in dmesg / syslog / Xorg.conf.

amd64 arch w/ 8 GB Ram.

This is driving me absolutely crazy as my computer is pretty much unusable.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: xorg 1:7.4~5ubuntu3
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/User Name/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/User Name/bin
 LANG=en_US.UTF-8
ProcVersion: Linux version 2.6.27-7-generic (buildd@crested) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Tue Nov 4 19:33:06 UTC 2008

SourcePackage: xorg
Uname: Linux 2.6.27-7-generic x86_64
Xrandr:

xkbcomp:

[lspci]
00:00.0 Host bridge [0600]: nVidia Corporation C55 Host Bridge [10de:03a1] (rev a2)
     Subsystem: nVidia Corporation Device [10de:c55e]
01:00.0 VGA compatible controller [0300]: nVidia Corporation GeForce 8600 GTS [10de:0400] (rev a1)
     Subsystem: eVga.com. Corp. Device [3842:c773]
03:00.0 VGA compatible controller [0300]: nVidia Corporation GeForce 8600 GTS [10de:0400] (rev a1)
     Subsystem: eVga.com. Corp. Device [3842:c773]

Revision history for this message
Pascal R (pascal-cykod) wrote :
Revision history for this message
Tim Cole (timothy-j-cole) wrote :

I experienced this same issue also using Xinerama but with only a dual head setup.
I swaped to using a Twinview configuration and have not seen the bug since.
Not sure if Twinview allows greater than 2 monitors, but thought id comment anyway to highlight the Xinerama issue.

Revision history for this message
Pascal R (pascal-cykod) wrote :

I tried switching to a TwinView configuration but unfortunately I can't get it to work correctly in terms of positioning & maximizing windows (which is more painful than it sounds - everything appears, by default between 2 monitors including notifications and popups)

Thinking it might be MetaCity related I tried installing kubuntu to see if that fixes the problem but the same issues happen.

I've found that if I click carefully with my mouse (wait for windows and web pages to load completely before trying to interact with them, try not to use the mouse as much as possible) I can mostly avoid causing the problem for a couple hours of work time, but inevitably eventually something will happen that triggers the bug.

On the upside I'm polishing up on all my keyboard shortcuts...

Revision history for this message
Luc (luc-santeramo) wrote :

Hi,

I have the same problem.

Configuration differencies :
Architecture: i686
LANG=fr_FR.UTF-8
VGA compatible controller: nVidia Corporation G86M [GeForce 8400M GT]
2 monitors
And I don't use any 3D effects.

The problem mainly appears when I use ALT+TAB and quickly click on the selected app. But it's not always the case...

I'll try to remove all compiz packages, then try Twinview, then I'll send you a feedback.

Revision history for this message
Zach (zivester) wrote :

Seen this problem all over the ubuntu forums, and all over launchpad..

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-mouse/+bug/290406
https://bugs.launchpad.net/ubuntu/+bug/296118

I also have the same problem, and as I reported in the forums, I have the same problem no matter what type of mouse I use (all USB)... (one wired, one wireless, and one bluetooth). Happens in Gnome, and also in XFCE if I remember correctly. This is happening on both my work and home computer.

AMD64 + 2GB + nvidia 177 + xinerama (two cards, two monitors).
AMD64 + 2GB + nvidia 177 + xinerama (one card, two monitors).

After a random amount of time (minutes, hours, sometimes a day...) , Mouse only moves, no focus or clicking works. Computer runs find otherwise. Ctrl + Alt + F1 to Ctrl + Alt + F7 does nothing... only Ctrl + Alt + Bksp or Ctrl + Alt + Del gets me back with a working mouse.

Revision history for this message
Pascal R (pascal-cykod) wrote :

Hi Zach,

That sounds like the same problem, I've searched all over the the forums and the Internet in general for anyone with a work around and can't come up with anything.

Seeing as it really seems to be somehow triggered by window focus changes, I switched from focus-follows-mouse to click-to-focus and that seems to have helped some, as the problem didn't trigger for over an hour, but it didn't solve the problem.

Revision history for this message
ThomasAdam (thomas-adam22) wrote :

Hmm -- I see from the dependencies file that XCB is in use. I wonder if the problem lies in there, somewhere?

-- Thomas Adam

Revision history for this message
Zach (zivester) wrote :

If there is anything I can post from my configuration then let me know... this is my first time using launchpad, and so I am unfamiliar with the process. Also if there is anything I should do if I see the problem again, also please let me know.

Revision history for this message
Luc (luc-santeramo) wrote :

I have removed all compiz packages, and the problem is still present.
All my tests have been done with click-to-focus, using a touchpad or cordless mouse.

Revision history for this message
Walter White (walterjwhite) wrote :

I am having this issue on a db90000 with xinerama. I haven't been able to get compiz functioning with this setup for whatever reason. Normally it's just go into Appearance -> Effects -> and then check one of those settings, but it is not allowing me to set those complaining the Composite extension is not available I believe. My refresh rate also appears to be a bit slow - when typing text or scrolling in Firefox, the page refreshes really slowly.

Revision history for this message
Zach (zivester) wrote :

I also meant to add in my earlier post, that I have done both an upgrade AND a fresh install and these problems still exist. So it is my belief that it has nothing to do with an upgrade at all.

Revision history for this message
rooijan (rrossouw) wrote :

Exact same issue here. Lose ability to use mouse clicks. Moving mouse still works. Keyboard works.

- Ubuntu 8.10 amd64....
- Linux U810 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux
- Xinerama two monitors running on two NVidia's (NV34 [GeForce FX 5500])
- Compiz disabled

Note to self learn more gnome shortcuts.

Revision history for this message
Pascal R (pascal-cykod) wrote : Re: X.org will intermittently stop responding to mouse clicks on Ibex with Xinerama

Ibex + Xinerama seems to be common to everyone affected. I updated the name of the bug to reflect that. Maybe this will trigger someone to take a look..

Bryce Harrington (bryce)
Changed in xorg:
status: New → Confirmed
Revision history for this message
Travis Hegner (thegner) wrote :

I am also suffering from the same bug.

thegner@it-thegner:~$ uname -a
Linux it-thegner 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux

Ubuntu 8.10 amd64
3.0 Ghz quad core
8 Gb RAM

I am running three monitors on two nvidia cards (8800 GT / 8600 GT), with xinerama.

I found on a post somewhere to try (sorry no link handy):

Section "ServerFlags"
    Option "AutoAddDevices" "false"
EndSection

This has significantly reduced the number of times that it happens, but it still happens 1-3 times per day.

As with everyone else, the only fix is a full reboot, or an X restart (ctrl-alt-backspace).

Another oddity that I've noticed with this bug, I am still able to alt-tab between apps, and ctrl-alt-arrow, to switch workspaces, but the little notification window that pops up with those actions is seems to be 'stuck' on one monitor, where normally it is on whichever monitor the cursor is on.

As someone else mentioned above with the mouse events on the wrong monitor: I have noticed that the cursor will still change (i.e. to the text beam), but not where it's supposed to, if i have gedit running on my center monitor, the cursor will change on the right monitor in the area that would be the text area if gedit were running on the right monitor. Likewise for a nautilus window on the left monitor, the cursor will change to a text beam on the center monitor in what would be the path space of the nautilus folder. Sorry for the mouth-full on that one, I hope you followed it OK.

I have also disabled my screen saver because others out there have attributed similar problems to gnome-screensaver, but I haven't seen any difference since then.

I'm not sure what else I should provide. If I can be of any help with information of symptoms, let me know.

Revision history for this message
rooijan (rrossouw) wrote :

I just want to confirm that for me going back to Twinview worked. Mouse is fine for more than a day. Working with the bug was not acceptable.

Revision history for this message
Zach (zivester) wrote :

OK, so my computer has just fallen victim to this as we speak... now what should I capture and post here?

Remember that I don't have use of a mouse, so explicit instructions(as I'm new to this) are appreciated...

And oh ya, the sooner the better so I can go ahead and restart ;)

Revision history for this message
Zach (zivester) wrote :

Wish I could edit comments... but I've been noticing that I get this problem a lot whenever I'm using VLC... maybe this has something to do with it? Don't know if this is the reason, but it definitely triggers it some of the time.

Revision history for this message
Zach (zivester) wrote :

Well too late for me, after 30 minutes whole computer locked up. Caps Lock and Scroll Lock blinking.

Revision history for this message
Travis Hegner (thegner) wrote :

I have also noticed that using either rdesktop, or vmware workstation seems to trigger it. I also installed the frets on fire game, and simply opening that application and closing it again triggers the bug ever single time. I don't notice the same cursor changing anomaly that described before when triggering the bug that way, but every other symptom is the same.

I also adjusted the screen res for frets on fire to match the screen res of the os, and the bug still triggers. I have not tried windowed mode yet.

Revision history for this message
Pascal R (pascal-cykod) wrote :

As a followup, switching to a TwinView setup only works if Xinerama stays off completely - If I turn on TwinView on each of the two cards and turn in Xinerama the problem will still appear.

If I leave Xinerama off - and so end up with two X screens each of which is spread over two monitors, the mouse will work, it's just not terribly functional the there are two task bars, each of which is spread over two screens and windows can't move between the two screens.

On the upside, it's way faster. And by way faster, I mean I that Firefox in Linux on par with it's Windows version (same machine booted into XP) whereas before something like Google Maps was a exercise in frustration and pain. I'd anticipated that Xinerama was slowing down performance but I had no idea how much...

Revision history for this message
Travis Hegner (thegner) wrote :

I've struggled with twinview as well before upgrading to 3 monitors. It will do it's own xinerama type implementation, but I've noticed that the nvidia-settings does not turn off xinerama in the xorg.conf if it has already been set. This is usually only a problem if you merge settings when saving your xorg.conf.

Double check your xorg.conf and make sure you don't still have xinerama enabled, then reboot. That may prevent the task bar from spanning across two monitors.

on a side note, I read that 8.10 was supposed to be implementing some new Xrandr features, that were supposed to allow those of us with multiple displays to can xinerama, but I have yet to figure out how to make that work, or if it's possible with the proprietary nvidia drivers.

Revision history for this message
MetraDynamix (c-admin-dedicatedlayer-com) wrote :

I have the same issue as described and I feel that this bug in terms of Importance should move to high Importance.
This renders Ubuntu 8.10 in terms of Productivity to Null.

I have Dual Video Cards; Geforce 8500 - with the Restricted Nvidia Drivers 177 Installed.
I have configured my 3 LG 23" LCD Monitors with Twin View / Xinerama

- Heavy user of Gnome-RDP since Terminal Server Client does not seem to have Clipboard Support
- In essence it seems that this bug will happen when RDP Sessions or VNC Sessions are opened for a long period of time.

I experience this problem approximately 2-3 Times a day, and sometimes more. All keyboard functions still seem to function. Login off my Session with CTR-ALT-DEL and using the keyboard arrow keys to log-off then login back in will allow my mouse to have click functionalities again.

When this bug comes to life, I am able to see my mouse cursor moving, but cannot click on anything. All keyboard keys such as combinations of ALT-Tab and etc... functions.

I have a Logitech Laser Mouse MX Something.

Re-Installed Intrepid as well, fresh Installation with all updates. Ubuntu 8.10 / x_64

Hardware:

- Quad Core Intel Q6600
- 8GB of Memory
- 3x LG Monitors 23"
- 2x Nvidia Geforce 8500 PCI Express Video Cards

Revision history for this message
Travis Hegner (thegner) wrote :

MetraDynamix,

Try adding this section to your xorg.conf:

Section "ServerFlags"
    Option "AutoAddDevices" "false"
EndSection

This did not completely eliminate the bug, but it reduced it's frequency by at least half or better. It also fixed some strange keyboard issues I was experiencing with vmware workstation.

Revision history for this message
Nelson (nrescobar+lp) wrote :

I have the same issue. The main difference is that I'm using a Matrox G550 with xinerama instead of nvidia as everyone else here seems to be using. I've been running into the problem on average about once a day. Restarting X fixes the problem. I had been running Hardy for 6 months with no problem on the exact same setup.

After reading this ticket yesterday, I opened an xev on each of my two heads. After loosing the ability to click and change focus I experimented with those two xev windows. It seems that when I move the mouse around the screen0, the xev on screen1 starts showing events. Before the problem, moving the mouse in the xev window produced coordinates around 2080,600. After the mouse problem started, hovering on the xev window didn't produce events, but moving around screen 0 at location 800,600 did produce events and the events had the coordinates 800,600. In other words the events seemed to be coming from a location exactly one screen width ( in my case 1280 ) away from where they were supposed to be.

Also, I noticed that the cursor changed from the usual pointer to the text entry cursor on screen0 corresponding to the placement of windows on screen1, again exactly one screen away.

Just for full disclosure, the xorg mga driver in intrepid is broken and needs a patch to get xinerama working in the first place. See bug 292214 for details. But after finding this ticket, I think my mga issues are independent of this mouse issue.

Revision history for this message
Daniel Hopkins (drhops) wrote :

I have this problem as well using nvidia 177 + xinerama. I'm trying out the twinview fix (kdesudo nvidia-settings => display configuration => configuration => configure => change from xinerama to twinview) with no problems so far. Using twinview, performance is much better and kde4 transparency + desktop effects are now enabled. Thanks for the suggestion!

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Throwing another "me too".

x86_64, Ibex, Xinerama (2 screens, 2 Nvidia NVS 290 cards), using the 177.80 nvidia drivers.

This bug has basically chased me off my desktop and back to my laptop. This thing needs attention, and quick.

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

A quick observation:

After the session has been running for a little while, dragging a window from one screen to the other seems to be a precursor to things failing shortly afterwards.

Revision history for this message
In , Zaai (zaai) wrote :

Anywhere between a few minutes and a few hours, the mouse buttons stop responding. The mouse itself keeps moving and remains visible.

The trigger is when moving the mouse between two xinerama screens.
No messages about this are logged in Xorg.0.log, messages, or any other log file.
In this state xev does not see any mouse events.

When X is restarted the mouse buttons are recognized again.
Another recovery is running a synergy server locally and connecting to it with the client. Note that this only works when running synergyc from the konsole in one of the xinerama screens. Doing the exact same thing in the other screen has no effect.

OS: Gentoo
xorg-7.4; xorg-server-1.5.2

The bug was first reported by Eric Stein. See also: https://bugs.gentoo.org/show_bug.cgi?id=243496 for more details.

Revision history for this message
Randy Wilson (blazerw) wrote : Re: X.org will intermittently stop responding to mouse clicks on Ibex with Xinerama

Another me too. For me, at most it happens once a day. Nvidia and Xinerama. I've switched to twinview as Hops mentioned above (sudo nvidia-settings => display configuration => configuration => configure => change from xinerama to twinview)
It seems to work the same as Xinerama except that compiz now works and it does seem snappier.

Revision history for this message
Travis Hegner (thegner) wrote :

Just to make sure everyone is clear. The Twinview option is only viable to those with 2 or less monitors. Twinview does not functionally support 3 or more monitors, so this is still an issue for anyone that is required to use xinerama for this reason.

Revision history for this message
Robstarusa (rob-naseca) wrote :

I have this problem with 2 NVS 285 cards & 4 monitors + xinerama. I have to ctl-alt-backspace to fix it -- about 5-7 times per day. It is REALLY annoying.

Also, to make this ALWAYS happen, start Applications -> Internet -> terminal server client and leave your focus on the "computer" field.

Changing your focus to "password" or "username" field prevents the problem from happening in this instance.

Revision history for this message
Robstarusa (rob-naseca) wrote :

Whoops, to clarify my previous post...to always make this happen,

Go to Applications -> Internet -> terminal server client. Click the right arrow next to "Computer" select the computer and press "ENTER".

You will/should see a ghost menu while your rdp session opens behind it.

Revision history for this message
Nelson (nrescobar+lp) wrote :

After having run into this problem twice within 15 minutes I noticed exactly what I was doing when it happened, and tried repeating it. In both cases, I was moving out of a firefox window on my Screen0 to a window on Screen1.

After a little experimentation, now I can pretty much cause the mouse to quite working withing 30 seconds of trying. Open up two firefox windows and put one each screen, leaving a small gap of background between the firefox window and the edge of the screen. Now flick your mouse between both firefox windows (I have focus following the mouse). For me, within 20 flicks the mouse stops working and starts misbehaving.

I've also gotten it to start misbehaving with two emacs windows, but firefox seems the best choice for reproducing it quickly for me. Someone else should give the above method a try and confirm it reproduces the problem in a short time. Having a quick way of reproducing the problem might help this bug along.

Revision history for this message
xianthax (xianthax) wrote :

confirmed and killing my productivity...

this may be helpful in tracking it down.

system specs:

Ubuntu 8.10
Intel Q6600 @ 3.2Ghz
Asus P5E WS Pro Mainboard
8GB ram
2 x Nvidia 8600GTS (177.80 drivers)

Screen setup: 3 screens, each a separate x session all merged with xinerama, arranged from left to right as: GPU0(screen0), GPU1(Screen0), GPU1(screen1). All normal orientation and all 1680 x 1050 screens.

Always appears to happen when the mouse is moving across the GPU boundary. And here is the interesting bit that may help solve this. I often run 1 application on each screen but not maximized to the screen, there is a one inch gap or so around the edges of each application window on each screen. The apps that are on GPU1S0 (middle) and GPU1S1(right) have custom cursor icons, when the mouse bugs out, if i move the mouse to GPU0S0 (left) and put it in the area where the windows are on the other screens, the cursor icon changes and moving it around more subtly i can get the various cursor from the apps that are running on the other 2 screens (2 instances of the same app so i can't tell which screen X thinks the mouse is really on). Clicking anywhere has no effect, despite attempts to click on the left screen to create action on one of the others.

Testing: To test this hypothesis i setup 3 instances of xev, one on each screen roughly the same size and in the same place. I trigger the bug (waving mouse back and forth quickly across the gpu boundary seems to be 100% effective at causing this in a short amount of time, thus i recommend everyone avoid doing this when you don't want to reboot X).

results: movement on GPU0S0 (left) in the area of the xev window on GPU1S0 (center) triggers events on the xev on GPU1S0 (center), indicating that X thinks the mouse is one screen to the right of where it is displayed, presses and releases are also recorded although they have no effect on running applications (probably because the coordinates sent to the app are out of bounds). Mouse movement / events anywhere on GPU1S0 or GPU1S1 cause no xev events on any screen indicating its not simply an off by 1 screen issue.

this and everything else we've seen indicates to me this is a problem in handing off cursor control from 1 gpu to the the other gpu.

I'm out of time tonight but i will try disabling hardware acceleration of the cursor to see if it has any effect on this. I could also rearrange my screens to further test the GPU boundary theory.

cheers,

x

Revision history for this message
JPHein (jp-jphein) wrote :

I also have this problem.
Ubuntu 8.10 64-bit (updated today)
Nividia 177
Xinerama w/ 4 Screens

Reproduce bug:
1. Open Firefox (with a bunch of Restored tabs including one with flash content)
2. Move Firefox window to different monitor.
3. Right click on the Firefox entry in the "Window List" and select "Move"
4. Left click anywhere. (The mouse clicks stop working)

The keyboard still works fine and the mouse cursor still moves around.
One time I opened a terminal with keyboard shortcuts and ran "sudo /etc/init.d/hal restart" and it fixed the problem. The next time I tried that it didn't work.

Nelson: I tried to reproduce the bug using your steps, but It did not manifest itself for me.

I attached the Xorg.0.log from the buggy session.
I did add Option "AutoAddDevices" "false" to my xorg.conf "ServerFlags" area, but it didn't seem to help.

Revision history for this message
Matt Cockayne (matt-cockayne) wrote :

Same problem here for me

I get the problem mainly following a long period of inactivity.

 Has anyone heard of a fix for this other than going to twinview.

Also I am able to duplicate this bug instantly by using VirtualBox. My mouse is fine until I focus on the VM. the moment i try and change focus back I lose my mouse. Not sure if thats relevant in any way to this bug or if its an issue with VirtualBox, or even just an issue with my setup.

Setup
 Intrepid
 AMD 64 3500+
 Nvidia 6200 (PCIE) & Nvidia 6150 (int) Cards
 177 driver
 Xinerama

How much pressure do we need to exert to get the Importance uprated. its not impossible for me to work with it but its really a pain to resolve when it occurs. I think it definitely deserves to be higher than "Undecided"

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Seconded on the importance issue. The only way to resolve the problem that I've found so far is to CTRL-ALT-DEL and kill my entire session. Because not all my apps have decent keyboard shortcuts, they can't all be quit cleanly, resulting in lost work.

Regardless of lost work, it's a major waste of time & effort to restart X just to get back to where you are.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

On Sat, Nov 22, 2008 at 06:50:16PM -0800, <email address hidden> wrote:
> Anywhere between a few minutes and a few hours, the mouse buttons stop
> responding. The mouse itself keeps moving and remains visible.

> The trigger is when moving the mouse between two xinerama screens.

just a guess, could it be that the button events are delivered to the wrong
screen? If you have a full-screen xev on the other screen when it happens,
does it show the button events.

Revision history for this message
In , Zaai (zaai) wrote :

Good suggestion, but thats not it unfortunately.

Running xev in both screens. Neither reports any events when moving or clicking the mouse buttons onto the xev area.

Revision history for this message
xianthax (xianthax) wrote : Re: X.org will intermittently stop responding to mouse clicks on Ibex with Xinerama

further testing on my setup shows that the bug triggerability is dependent on graphics load, since nvidia xrender performance is....poor....multiple firefox sessions, vmware screens, terminal server screens, all seem to do the trick. Moving the mouse quickly across the gpu boundary with no load will not trigger the bug, but any combination of xrender apps and/or 3d apps running will allow me to trigger the bug very reliably. Interestingly enough, coming back from a long idle can cause it as well, which i could assume, is also a manifestation of the load issue as well as the video cards are "waking up" at this point.

cheers,

x

Revision history for this message
chimaster (spike-queenstown) wrote :

Me too.

CTRL-ALT-BKSPACE is the only way for me to get my gui back. Multiple driver versions. currently 177.83 from Nvidia, not happening as often, but still happening.

Revision history for this message
Mal (mal-cybersanitarium) wrote :

I've been experiencing this bug ever since I upgraded to Ubuntu 8.10 from 8.04.

It seems to mostly be triggered by running 3D games after the game quits, but has randomly happened a couple of times too.

I can get it to trigger in under a minute or so of starting/stopping a game or other 3D app.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Created attachment 325155
xorg.conf

With a Dell Latitude D820, recently upgraded from Fedora 8 to Fedora 10, the mouse sometimes becomes totally unresponsive to all input. I saw this under Fedora 8, but FAR more rarely. Usually when I have this problem, I have the problem immediately after starting X, but sometimes the mouse -- for no obvious reason -- becomes non-responsive. In all cases, the keyboard continues to work. Sometimes if I switch from X to a text console and back, the mouse will start working again. So far always, if I use keyboard shurtcuts to log out and then log back in, the mouse will start working again.

How reproducible:

Since upgrading to Fedora 10, I see this daily. I don't know how to cause this to occur and so far looking in logs I have not seen any obvious complaint correlated with this. I did see this message at my previous login (where I had this prolblem)

GSynaptics couldn't initialize.
You have to set 'SHMConfig' 'true' in xorg.conf or XFree86.conf to use GSynaptics

but when I look at the xorg.conf (attached), it already has this line. I logged out and logged back in, and the second login (without this problem) does not have this complaint in .xsession-errors. There is no obvious problem in dmesg output or int messages.log.

Revision history for this message
In , Matěj (matj-redhat-bugs) wrote :

a) we would need /var/log/Xorg.0.log from your computer as well,
b) SHMConfig has been switched off in Fedora since at least early Fedora 9 (it is a security disaster in making)

Thank you

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Created attachment 325310
My Xorg.0.log

I'm having the same problem. I tried xev, and it showed no events
when I click any mouse buttons and such. Keyboard continues to work.
I'm seeing the problem 4 times a day. I will attach my xorg.conf
file and .xsesson-errors as well.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Created attachment 325311
My .xsession-errors

This is my .xsession-errors file at the time of failure

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Created attachment 325312
My xorg.conf file

Here is my xorg.conf file.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

I'm willing to take test code and/or patches to debug this.
I'm a Red Hat file system/kernel level developer and I'm willing to
do whatever it takes to solve the problem.

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

This continues under the most recent kernel for Ibex - I'm running 2.6.27-10-generic, fully up to date with all packages in main, universe, restricted and multiverse. And it's absolutely maddening.

Can someone responsible for tracking these issues at least tag this bug with some kind of status/assign it to someone/do something?? It seems like we're shouting into a vacuum here.

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

marking it specifically as a libxinerama issue.

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Looks like this was reported 2 weeks prior (late October) as Bug #290756.

Revision history for this message
Nelson (nrescobar+lp) wrote :

As Peter said, this issue is maddening. Finally fed up with this problem, I downgraded xorg to the version in hardy. Everything is now working well, with no more problems with mouse events.

I wonder if it really is a libxinerama (as in the libxinerama1 package) issue or not because I did not downgrade libxinerama, just xorg stuff and everything now works.

Revision history for this message
mclay (michael-j-mclay) wrote :

I was having the mouse not responding to mouse event problem reported here until I disabled Xinerama and started using Twinview. Since I've made the changes it has been over a week without a lockup. I followed Randy Wilson instructions from 2008-11-24:

"""Another me too. For me, at most it happens once a day. Nvidia and Xinerama. I've switched to twinview as Hops mentioned above (sudo nvidia-settings => display configuration => configuration => configure => change from xinerama to twinview) It seems to work the same as Xinerama except that compiz now works and it does seem snappier."""

$ sudo nvidia-settings

Select "X Server Display Configuration"
Disable the "Xinerama" checkbox. (This may be on the "Configure..." popup. It's been a week and I don't recall the location.)
On the 'Display' tab select the button "Configure..." and set to "Twinview"

Pascal wrote: "everything appears, by default between 2 monitors including notifications and popups"

This problem goes away if you disable Xinerama.

This fix may only work if you are using two displays.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

FYI, you can remove all mouse/keyboard input sections from the xorg.conf, they're not doing anything anymore anyway.

Edward: regarding the synaptics issue - remove the line Option "Device" "/dev/input/mice" (and the one with Procool auto-dev, it's default anyway).
Also, when you say the "mouse" becomes unresponsive are you talking about a physical mouse you have connected as well (i.e. touchpad still works) or about the pointer on the screen?

Edward and Robert:
Please get evtest from http://people.freedesktop.org/~whot/evtest.c, compile it with gcc -o evtest evtest.c and run it against the device's event file (see /proc/bus/input/devices). Does it still show events there when the pointer is dead?

Revision history for this message
AntonOlsen (anton-antonolsen) wrote :

I'm also having this issue, pretty much as everyone explains it above.

Two NVidia cards, 3 cards.
NVS290 - Center and Right
GeForce 8800 - Left

Twinview won't work with 3 or more screens. nvidia-settings might give you a config that lets you login, but don't count on it being usable. If you hand tune an xorg.conf you can get it looking ok, but the window manager doesn't get any of the monitor boundary info so windows pop between monitors, or sometimes off the screen.

I'll give downgrading the xorg packages a chance tonight, but my next stop will be back to hardy.

Revision history for this message
Luke Hoersten (lukehoersten) wrote :

I've marked the prior Bug #290756 as a duplicate of this since this bug has more discussion. Please check the other bug for more debug info and output. (Thanks Peter).

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Nelson:

Can you post the steps for downgrading the appropriate packages? I've got little faith in this being fixed anytime soon, and it's looking like the only option for the near future.

Thank you.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Hmm, OK, I compiled evtest and /proc/bus/input/devices gives me

I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="PS/2 Mouse"
P: Phys=isa0060/serio1/input1
S: Sysfs=/devices/platform/i8042/serio1/input/input5
U: Uniq=
H: Handlers=mouse1 event5
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0002 Product=0008 Version=6337
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse2 event6
B: EV=f
B: KEY=420 0 70000 0 0 0 0 0 0 0 0
B: REL=3
B: ABS=1000003

evtest doesn't do anything but complain with files I tried under /sys/devices/platform/i8042/serio1/input/input6/, but if I try with /dev/input/event5 or event6 it appears to mostly work. So I run evtest when things are working OK and I get:

$ ./evtest /dev/input/event6
Input driver version is 1.0.0
Input device ID: bus 0x11 vendor 0x2 product 0x8 version 0x6337
Input device name: "AlpsPS/2 ALPS GlidePoint"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn)
    Event code 274 (MiddleBtn)
    Event code 325 (ToolFinger)
    Event code 330 (Touch)
  Event type 2 (Relative)
    Event code 0 (X)
    Event code 1 (Y)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value 537
      Min 0
      Max 1023
    Event code 1 (Y)
      Value 453
      Min 0
      Max 767
    Event code 24 (Pressure)
      Value 0
      Min 0
      Max 127
Grab failed: Device or resource busy
Testing ... (interrupt to exit)

but I get no events. I'm guessing I get no events because of the "Grab failed" complaint. So far, I've not tried a PS/2 mouse (or an external USB mouse) on this laptop. Thus, if I run evtest on the other mouse device, not surprisingly, the grab succeeds but I get no events.

Next time things freeze up, I'll try plugging in a USB mouse and I'll run the above again and see if anything is different.

What happens to me when things freeze up is that the touchpad *and* the button mouse *and* both sets of mouse buttons (above and below the touchpad) all become non-responsive.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

synaptics puts a grab on the device, so the "grab failed" message will happen for any device using synaptics. For normal mice it should succeed though.

There's another thing that you could try: add Option AutoAddDevices "off" to the ServerLayout This will force the mouse driver to load. If you can reproduce the problems with the mouse driver as well, that means it's either the X server, or the kernel. If not, then it's the driver. However, since Robert doesn't have a touchpad but sees the same issues, it doubt it's the driver.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

OK, I deleted the mouse and keyboard sections, whole, from /etc/X11/xorg.conf,
as well as references to them. I logged out and back in to restart X. Most
everything appears to work as it did before. However, now I cannot configure
my Synaptics touchpad. I bring up System -> Preferences -> Hardware ->
Touchpad and I get a pop-up complaint

GSynaptics couldn't initialize.
You have to set 'SHMConfig' 'true' in xorg.conf or XF86Config to use GSynaptics

Either the SHM line does something or GSynaptics has an intermittent failure to
operate. My experience says it could be either one.

Oddly, I was seeing this issue regularly, one or more times every day, until I reported the bug. I haven't seen it since. But I'm positive it will recur. When it does, I'll run the requested tests and gather the requested logs. Hopefully Robert will be able to reproduce this.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

Do you still have the Synaptics line in your config? If not, add the line
<merge key="input.x11_options.SHMConfig" type="string">1</merge> to
 /usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi

Try the command synclient -l. Does that report an error too? If so, then I need to see your log file.

Revision history for this message
stasheck (stasheck-fora) wrote :

I'd also be grateful for xorg downgrade instruction :-)

I couldn't find anything about the issue on the 'net and I was feeling kinda lonely. It happens to me also - sometimes after couple of hours, sometimes minutes after X start.

I'm using Dell XPS M1330 w/ GF8400GS; using Xinerama because panel has 1280x800 res and external monitor (attached via HDMI) is 1680x1050, TwinView don't like working on monitors of different res.

In my work, I use both Firefox and VirtualBox and as far my best solution was to use only firefox in VB - no window switching, no bug - but it's not the most comfortable solution.

The problem importance for me - it's critical.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

I totally removed the keyboard and mouse sections from xorg.conf, meaning there is no reference at all to Synaptics.

$ synclient -l
Can't access shared memory area. SHMConfig disabled?

I've updated 10-synaptics.fdi so it now contains

      <match key="info.product" contains="AlpsPS/2 ALPS">
 <merge key="input.x11_driver" type="string">synaptics</merge>
 <merge key="input.x11_options.SHMConfig" type="string">1</merge>
      </match>

I'll let you know if this helps.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Just an FYI--

I'm trying to recreate the problem now, but of course, it won't when
I most need it to. I'll let you know the results of evtest as soon
as the problem recreates. Unfortunately, that particular system won't
get a lot of use until probably Monday.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Updating 10-synaptics.fdi does allow me to run synclient. I only updated the one XML stanza that matches my touchpad, but probably all synaptics products need this setting?

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

Edward:
Just a heads-up, I had debugging session with Robert and we couldn't identify the issue yet. But here's a few things I'd need from you:

- are you on a 64 bit box?
- please get http://people.freedesktop.org/~whot/grabtest.c, compile it with gcc -o grabtest -lX11 grabtest.c and run it when the mouse is stuck. Does it report success for both mouse and keyboard?
- does xev show anything (movements, button events) when the mouse is stuck?
- does evtest show events when the mouse is stuck in X?

I'm waiting on a rather special logfile from Robert now, but the above information will help figuring out whether you two see the same issue.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

I am not on a 64 bit platform. It's a Core 2 Duo with Fedora 10 x86 installed.

If I run xev when things are OK, I only get events when the mouse moves over the pop-up window. I'll try this the next time the mouse freezes, but if I cannot get the window moved under where the mouse is, it may not do much good.

grabtest when all is well successfully grabs both keyboard and mouse, of course.

Next time things freeze up, I'll thy the things mentioned here.

Revision history for this message
Nelson (nrescobar+lp) wrote :

I hadn't expected that others would be so interested in how to downgrade or I wouldn't have taken some notes. Here is what I did as best I can remember:

Logged in to a text console as root and shut down X with '/etc/init.d/gdm stop'.

Add the following lines to my /etc/apt/sources.list :

deb http://us.archive.ubuntu.com/ubuntu hardy main
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main
deb http://us.archive.ubuntu.com/ubuntu hardy-security main

At this point I tried to purge all the xorg packages I could with:
cd /var/lib/dpkg/info/
dpkg --purge `ls *xorg*.list | sed s/.list// `

Obviously it won't remove all the packages because of the dependencies of other packages. I am starting to think that step wasn't necessary as I think the next step would have resulted in those packages being removed anyway. After a little trial and error I found that I needed to downgrade the following packages on my system. ( note I have a matrox card, so please substitute the correct video driver for your hardware in place of the mga driver ):

apt-get --reinstall install x11-common/hardy xorg/hardy xserver-xorg/hardy xserver-xorg-core/hardy xserver-xorg-input-kbd/hardy xserver-xorg-input-mouse/hardy xserver-xorg-video-mga/hardy

After that I restarted the X with "/etc/init.d/gdm start" and logged in and everything worked for me. The final step was to go into synaptic and lock those 7 packages so the upgrade manager would stop bothering me.

Bryce Harrington (bryce)
Changed in xorg:
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

This seems to have been misfiled against libxinerama/xorg, when it looks more likely to be an -nvidia problem. Refiling.

Revision history for this message
Bryce Harrington (bryce) wrote :

[No need to have it open against xorg too]

Changed in xorg:
status: Confirmed → Invalid
Revision history for this message
Tim Cole (timothy-j-cole) wrote :

Bruce,
There is one user experiencing the problem with a Matrox card.

https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-177/+bug/296167/comments/25

I'm not sure its an nvidia issue since :
 - Downgrading xorg + friends solves the problem.
 - Switching to twinview works around the issue (i.e. disabling xinerama makes it go away)

Any thoughts ?

Revision history for this message
Schmallon (matthias-kleine) wrote :

I'm not sure whether it's a nvidia issue. I experience the same problems with a ATI Mobility x600 using fglrx drivers with a two monitor setup using xinerama.

Revision history for this message
Tim Cole (timothy-j-cole) wrote :

My apologies Bryce, Misread your name :)

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Just noting that downgrading the xorg package to hardy (1:7.3+10ubuntu10) has resulted in zero occurrences of the bug in the last 24 hours. Previously, I was restarting X at least 3-4 times a day.

In downgrading, I made no changes to the nvidia drivers being used - only the xorg package changed.

Revision history for this message
Nelson (nrescobar+lp) wrote :

Bryce,

This is definitely is not an nvidia specific problem. I have the same issue with my Matrox G550 card. And Schmallon has since reported that he has the same problem with an ATI setup. This issue does not seem related to the video driver being used, but how xinerama and mouse events are interacting.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

I recreated the problem, then tried variations of:

xmond -verbose 4 -server :0 -port 4
xev

The xmond program seemed to receive nothing from any mouse clicks.
When I <ctrl-c> out of xmond, the resulting file is 0 length.
Also, when I run it interactively, it produces no output on the screen.
Either it's getting nothing or I'm doing something wrong.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

(In reply to comment #16)
> I recreated the problem, then tried variations of:
>
> xmond -verbose 4 -server :0 -port 4
> xev

Just for the archives (we already talked about that over IRC):
you need to run xev through the new display provided by xmond, i.e. DISPLAY=localhost:4 xev

Edward:
Some handy shortcuts we figured out today:
Alt+F7 is GNOME's default shortcut for move window.
Alt+F10 for maximise window.

Do you have a multi-monitor setup too? That seems to be Robert's issue. If you do, try moving the xev window around between the monitors and mouse functionality comes back at some point. Robert will post more detailed information on that soon.

Revision history for this message
DanielW (daniel-watsonbros) wrote :

I just wanted to add that I had the same problem out of a fresh install of Ubuntu 8.10 desktop for x86_64. I experienced the mouse problem several minutes after running vmware. My system has four displays, so disabling xinerama is not an option for me. I downgraded xorg just like "Nelson" had suggested above. The mouse worked for me all day without fail. I am running two nVidia NVS 285 video cards. Thanks, Nelson, for providing instructions to work around this very annoying, time killing and productivity wasting bug. I believe this bug is critical to those of us that rely on xinerama.

Revision history for this message
AntonOlsen (anton-antonolsen) wrote :

This is definitely not an NVidia issue. I fired up my test machine with dual ATI cards, and upgraded to Intrepid, and configured it to use Xinerama. I got bored using it surf (slow) so I just left it for 24 hours. When I came back the mouse would wake up the screen, but no clicks were registering.

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

I hate to say it, but downgrading to the xorg package that ships with Ubuntu 8.04 isn't a complete solution - I experienced a re-occurrence of the bug today.

That being said, this was after my session had been active for several days, so it's far better than what's going on in 8.10.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

First, here is a detailed description of how to recreate the failure,
at least in my case:

You need to have more than one monitor. I'm running xinerama so my
desktop is spanning between multiple monitors. Also, I believe you
need to have auto-raise set on (no proof of this). To set it on, do:
System->Preferences->Look and Feel->Windows, then check the box that
indicates "Select windows when the mouse moves over them". Also, set
a half-second delay, so check the box next to "Raise selected windows
after an interval", and an interval value of 0.5 seconds.
Next, open a few windows on each monitor. Then move your mouse cursor
back and forth a few times between the two monitors, briefly highlighting
the windows on each monitor.

Peter's description of the problem from a debug session earlier today:
"The server thinks that the sprite window is the root window, so it's
trying to deliver all events to the root window."

The Sprite window is the window underneath your mouse cursor. The root
window is the very first grey window, the initial one with "X" displayed
when x is starting.

My theory as to what's going on:
Suppose I have monitor #1 and monitor #2. Suppose I open a window on
monitor #2. When I move my mouse cursor over the window, the auto-raise
timer of 0.5 seconds starts ticking. During that time, I move my
mouse cursor to the other monitor. After 0.5 seconds, auto-raise
tries to raise the window I last hovered over. However, when it does,
the mouse cursor has been repositioned to monitor #1. In other words,
there is no more sprite window because the mouse cursor is on a
different monitor. So X loses track of the sprite window which appears
only on monitor #2. Unable to find a valid sprite window, it defaults
back to the root window. The root window cannot handle the mouse click
events, so they are ignored. This is just my theory.

We did find a viable circumvention:
If you encounter this problem, use the keyboard to navigate around
the screen. Use <alt><tab> to switch between windows. Once you've
gotten to a window, use <alt><F7> to move the window from one monitor
to the next. Then move it back again. This seems to allow X to
re-sync its sprite window and mouse clicks are then processed correctly.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Other possible circumventions:

1. Don't use auto-raise.
2. Don't use a delay for auto-raise (set value to 0)
3. Don't move your cursor until your windows are fully brought
   to the foreground.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

I don't have multiple monitors. This is a laptop to which I have never (so far) connected an external monitor. However, I do use auto-raise with an interval of 2 seconds. With this clue, next time this happens I'll pay attention to what I was doing immediately before the mouse freezes.

Revision history for this message
T. Mountain (tinymountain) wrote :

I just wanted to chime in and mention that I'm having the same issue as well. Mouse-over events and clicking spontaneously stop working at random. It usually happens when using Firefox, and the only recourse is a ctrl-alt-backspace. I'm going to attempt downgrading my x.org packages as a temporary measure, but I would love to see this resolved.

Revision history for this message
T. Mountain (tinymountain) wrote :

Confirming that a downgrade to Hardy xorg packages resolves the issue.

Revision history for this message
dan_linder (dan-linder) wrote :

Until this is resolved, can someone post a series of steps to downgrade just the xorg drivers under Intrepid?

Dan

(This happens to me too - I'm testing to see if window managers make a difference. Gnome happened after about 90 minutes, KDE took a few hours, I'll try E16 next..)

Revision history for this message
JP (jpierce-jpe) wrote :

I am chiming in to confirm that I have the same problem using:
Ubuntu 8.10
NVidia Driver Version 177
Xorg - Xinerama

I can't use twinview as one of my displays is rotated CCW 90 degrees. With Twinview, rotation affects both displays.

But, with one display in portrait and the other in standard configuration landscape, I can consistently recreate the failure by doing the following:
Using Synergy, if I move from the bottom of my client computer screen across to my Linux display, out of the range of my standard screen, the mouse jumps the middle monitor directly to the bottom of the portrait display. Once it skips the main display the mouse clicks are no longer registered. The key to failure on my system is to move the mouse from one display to another where the display area does not reach. When working from the top of all screens there is no problem.

The other way to recreate failure is to allow for a long period of mouse inactivity, and for any of the screens to sleep.

My setup worked perfectly in Hardy. I regret updating my computer as quickly as I did to Ibex, and likely will have to downgrade in order to regain productivity.

Revision history for this message
Tessa Lau (tlau) wrote :

Me too. Ubuntu 8.10, Nvidia 177, Xinerama. Like JP, I prefer to have one of my displays rotated CW 90 degrees.

I switched to Twinview yesterday and haven't seen the problem since switching. Before that I was having to restart my X server every 1-2 hours because of this bug.

I can reliably trigger the problem by using x11vnc or vino to share my Xinerama desktop with another computer. After exiting the vnc viewer on the other computer, the mouse would move but no clicks would register. The workaround is to put the mouse cursor at the farthest right edge of the virtual desktop before exiting the vnc client. If you do this, you can usually avoid triggering the bug.

There's a possibly-relevant bug which I thought was due to vnc but is actually probably due to this Xinerama bug: when operating my Xinerama desktop remotely using a vnc client, I could not click anywhere on my first display (the rotated one). Only clicks in the second screen would register. I could move the mouse cursor to the first screen, but I could not interact with anything on that display.

Revision history for this message
JP (jpierce-jpe) wrote :

Quick fix for problems arising with Synergy

I am testing my theory that the mouse fails with xorg/xinerama when moving from a virtual screen, e.g. with synergy or vnc viewer, to an area that would be outside of the X screen. Since Xinerama LeftOf or RightOf aligns the top of the screens regardless of the screen size, the bottoms will not be aligned when using two different sized screens or when putting screens in different rotational orientations.

Quick fix for Synergy, set the options to disallow moving between screens in an area that would put the mouse outside of the gui on the x screen.

in /etc/synergy.conf (or wherever you store your synergy conf file) add the following to the remote screen:

section: screens
        clientcomputername:
                switchCorners = bottom-right
                switchCornerSize = 800
        mycomputername:
end

800 is the number of pixels in the specified corner within which the mouse will not move between screens. Mine is 800 because I have a large portrait monitor for viewing scans and documents.

See http://synergy2.sourceforge.net/configuration.html for more info

I don't know if the same can be done for vnc viewer.

Revision history for this message
Kevin Browne (kbrowne-deactivatedaccount) wrote :

I also encounter this problem three or four times per day. I have three monitors on two Nvidia Quadro FX cards, using the nvidia 177 binary driver on 8.10.

I found that when the problem strikes, I can re-enable the mouse with the following steps:
1) Select a window using ALT+TAB.
2) Open the window's menu with ALT+SPACE.
3) Select 'Move' from the menu. The cursor should change to the hand cursor and be positioned in the centre of the window.
4) Move the cursor with the mouse. If this causes the window to move (unlikely), left-clicking should release the window and the mouse should work normally.
5) It's more likely that moving the mouse will just move the cursor and the window will stay put. In this case use the cursor keys to move the window to the primary monitor. If the window is already on the primary monitor, move it to another monitor, then back to the primary.
6) Once the window is on the primary monitor, move the cursor with the mouse. The window should move with the cursor, and mouse events register again.

This works for me every time. It's far from ideal, and I detest this kind of voodoo workaround, but it's better than restarting X. Of course, your mileage may vary.

Revision history for this message
JPHein (jp-jphein) wrote :

Haha, I found this workaround independently too. Sometimes random frustrated key-commands actually work.
Thanks for posting it with such good instructions, I was going to do some more testing, but now I don't have to.

I can confirm the above workaround absolutely.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Hmm, my mouse just froze for the first time in a while. I was able to use keyboard shortcuts to start Firefox. But something about the process of navigating to this web site to get the full list of "to do" items woke the mouse up again. I'll have to try next time, but wanted to put a note that my mouse finally froze up again, for a good part of a minute, while the keyboard and rest of the system were responsive.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Ah, THIS time, /var/log/messages and dmesg have the following messages:

psmouse.c: GlidePoint at isa0060/serio1/input0 lost synchronization, throwing 3 bytes away.
psmouse.c: resync failed, issuing reconnect request

This may be a different failure than what I've seen before, as /var/log/messages.* files don't have other occurrences of the above text.

Revision history for this message
awi (alefeltes) wrote :

I have the same issue with my HP Pavilion TX1000, with xinerama enabled, and two monitors. My card is:

user@megan:~$ uname -a
Linux megan 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux
user@megan:~$ cat /etc/issue
Ubuntu 8.10 \n \l

VGA compatible controller: nVidia Corporation C51 [Geforce 6150 Go] (rev a2).

Kevin's workaround works, than you.
We well be waiting for the Ubuntu's fix.

Revision history for this message
dan_linder (dan-linder) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

Mr. Browne: Thank you!

I walked through these steps when my system was functioning, and succeeded
in re-creating the error (I lost mouse clicks after step 4.).

I was able to 'fix' it by following the steps. Maybe a developer can use
these to re-create the problem with the mouse input?

Dan

My system: Three displays on two NVidia cards (8600 using the 177 driver,
and an older GeForce MX using the "nv" driver), Kubuntu 8.10, 2.6.27-9
kernel.

--
"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the
Satires of Juvenal
"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)
** *** ***** ******* *********** *************

Revision history for this message
chimaster (spike-queenstown) wrote :

Fix doesn't work for me. My keyboard also stops responding, Originally keyboard worked, but somewhere trying to fix it it stopped responding along with mouse. PC is still processing as I Gkrellm is ticking away, but I have to resort to CTRL - ALT Backspace

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

A detailed description of this bug can be found here:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-177/+bug/296167

Don't get tricked by the title in the URL, it also happens with the included Matrox drivers and ATI drivers according to the report. I'm also seeing this on Fedora 9, the productive workstations that is hit worst uses three Xinerama screens.

Bug #10797 seems to be the same thing. As a temporary workaround I'll try to switch from Xinerama to TwinView on my coworker's boxes. Any way I can help to track this down? Detailed steps how to reproduced this is in the ubuntu bug report.

Here are some more reports of the same problem, I guess:
http://www.nabble.com/Fedora-9-minor-issue--4-td17317014.html
https://bugzilla.redhat.com/show_bug.cgi?id=475945
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/41301

Revision history for this message
T. Mountain (tinymountain) wrote :

I've summarized Nelson's steps for downgrading X.org here:

http://dailyvim.blogspot.com/2008/12/ubuntu-downgrading-xorg.html

Please use those docs for downgrading as the original instructions were missing a step (apt-get update).

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :
Revision history for this message
Thomas Jarosch (thomas-jarosch) wrote :

Thanks for the detailed information guys!

Upstream bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=18668

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

The problem is reproducible here within 2-5 minutes by opening many new windows on different screens. ALT+TAB, switching to the text console or the keyboard mouse don't help.

Running xev shows no events from the mouse, not even the keyboard mouse.

Is there a way to print mouse events on a X server-wide scope?

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

My coworker and I were able to reproduce it with
just X, xterm and a little script:

---------------------------------------
#!/bin/sh

export DISPLAY=:0.0

for COUNT in `seq 1 50`; do
    XPOS=$[ ( $RANDOM % 4600 ) ]
    YPOS=$[ ( $RANDOM % 1000 ) ]
    xterm -geometry 80x25+$XPOS+$YPOS &
done
---------------------------------------

The trick is to move the mouse fast between the screen/GPU
borders while the windows are being opened.

We got the root window id via "xdpyinfio" and then
started xev -id ROOT-ID. The mouse events all go
to the root window instead of the applications
when the bug occurs. Huh?

Revision history for this message
Gavin van Lelyveld (mdcore+launchpad) wrote :

Me too.

 I'm running dual monitor with xinerama on my laptop. Except I have an SIS chipset / drivers and not an NVidia. Definitely not only an NVidia problem.

I'm running Xubuntu. The keyboard also stops working as soon as I alt-tab to another program. The workarounds don't work either.

Revision history for this message
In , Zaai (zaai) wrote :

Nice work Thomas.
Peter, its not related to evdev as it also happens when evdev is not used (on my box).

The script doesn't reproduce the problem for me, but then again, after switching from kde4 to xfce4 a few weeks ago the problem has disappeared.

Maybe the slow nvidia performance on kde4 makes it worse. Missing events or something along those lines. After switching to xfce4 I'm running the same xorg, kmail and other software as before, but things are snappy and fast, and the problem no longer appears.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

I _think_ the cause is a race condition in WindowsRestructured() which calls
CheckMotion(). CheckMotion in turn sets the wrong screen, if the mouse already
moved into a position on the other screen. Not sure yet though, but that's a
path to look at if you have time.

Revision history for this message
In , xianthax (xianthax) wrote :

some further information for yall:

setup:
2 x nvidia 8600gts vid cards
3 x screens, all separate X screens, merged with xinerama
Arranged as GPU0S0 - GPU1S0 - GPU1S1
ubuntu 8.10, gnome, metacity

I've setup a xev process in the same location on each screen (so 3 xev instances), when i trigger the bug using the GPU0S0/GPU1S0 boundary moving the mouse in the xev session on screen GPU0S0(left) triggers events in the xev process running on screen GPU1S0(middle). moving the mouse within xev processes on the other 2 screens (middle and right) causes no events to be registered anywhere.

The frequency of the bug's occurrence is definitely tied to system / graphical load. With nvidia cards a few firefox windows (or anything with heavy xrender use) and/or a few open windowed opengl apps and the bug happens about 50% of the time when changing screens and happens much more frequently when moving over the boundary between GPU's than it does moving over the boundary between x sessions that are running on the same GPU.

To "reset" the bug without rebooting the x server you can do the following:

alt-tab to a window (firefox is the one i usually use)
alt-space to bring up the window options menu (metacity)
select move (this binds the cursor to the center of the window)
use the arrow keys to move the window to another X session window
move the mouse
the bug should now be gone

i'm happy to run some other tests if theres anything that would be useful

cheers,

x

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

Adding upstream bug reference.

Edward: please run xdpyinfo | grep root to get the the root window ID, then run xev -id <root id> when the problem occurs. Do you see events?

(In reply to comment #22)
> psmouse.c: GlidePoint at isa0060/serio1/input0 lost synchronization, throwing 3
> bytes away.
> psmouse.c: resync failed, issuing reconnect request

If that happens, the mouse should only stop for a second or so and then come back (unless it never came back of course).

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

An update on my end:

After a week of running xorg from 8.04 (hardy), I'm still seeing the problem. It's not as frequent as it was, but it's still happening.

With that, I have been able to apply the fix described above (using the keyboard to move a window across the screens & back), which generally seems to work. At some point, however, X seems to really freak out after a few days of use - I've had to restart X twice in the last week on a desktop session that is supposed to remain up.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

OK, I finally reproduced the problem, but the behavior was a little different from before. From when I booted up, the mouse failed to do anything. xev gave nothing. Looking at /proc/bus/input/devices, I noticed that my two mouse devices were missing, and everything else was identical except for a few device numbers that of course changed with a few devices in the middle going away. The following devices went missing:

I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="PS/2 Mouse"
P: Phys=isa0060/serio1/input1
S: Sysfs=/devices/platform/i8042/serio1/input/input5
U: Uniq=
H: Handlers=mouse1 event5
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0002 Product=0008 Version=6337
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse2 event6
B: EV=f
B: KEY=420 0 70000 0 0 0 0 0 0 0 0
B: REL=3
B: ABS=1000003

I'll attach my demsg of my original boot tonight (where the mouse device was absent) and my 2nd boot tonight (where the mouse works as it should). Unlike before, nothing could fix the problem, including going to a console and then back to X, logging out and back in, killing X with Ctrl-Alt-Backspace. The only thing that helped was rebooting.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

That would indicate that you have a very different problem than Robert, and chances are that it's kernel in your case.
Do you mind cloning the bug and attach your xorg.log (next time it breaks) and dmesg to the cloned bug? Let's leave this one for the multi-screen problem. Thanks.

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Created attachment 327058
dmesg from bootup where the mouse was non-responsive

Revision history for this message
In , Edward (edward-redhat-bugs) wrote :

Created attachment 327059
dmesg from bootup where the mouse was responsive and normal

Revision history for this message
mtopro (matt-mtopro) wrote :

I can confirm most everyone elses issues with a new install of 8.10 (Intrepid) and the Nvidia Drivers. I have seen the problem in both the Nvidia driver versions 173 & 177.

Currently using an Nvidia GEForce 8800 GTS with (2) monitors setup on Xinerama. I continually have had issue with loss of mouse 'click' function while still maintaining the keyboard control. The problem seems to happen at various points throughout the day, and it is tough to duplicate. I have noticed a pattern where a program will open a second dialogue (especially when it opens on the second screen) and the mouse click functions quit working. It happens often with VLC, Firefox, DeVeDe, and switching back and forth across screens in Nautilus.

Have also tried to get 'out' of the issue without restarting the xserver with Kevin Brown's solution on 12/09, but this solution does not seem to work for me. The only way to get 'out' is to CTRL+ALT+BACKSPACE and login again.

The Nvidia driver version 173 does seem to happen a bit less often. Not too sure I want to mess with downgrading Xorg.

Please let me know if there is anything that can be posted or any way that I can help to resolve this issue.

Revision history for this message
mtopro (matt-mtopro) wrote :

I can confirm most everyone else's issues with a new install of 8.10 (Intrepid) and the Nvidia Drivers. I have seen the problem in both the Nvidia driver versions 173 & 177.

Currently using an Nvidia GEForce 8800 GTS with (2) monitors setup on Xinerama. I continually have had issue with loss of mouse 'click' function while still maintaining the keyboard control. The problem seems to happen at various points throughout the day, and it is tough to duplicate. I have noticed a pattern where a program will open a second dialogue (especially when it opens on the second screen) and the mouse click functions quit working. It happens often with VLC, Firefox, DeVeDe, and switching back and forth across screens in Nautilus.

Have also tried to get 'out' of the issue without restarting the xserver with Kevin Brown's solution on 12/09, but this solution does not seem to work for me. The only way to get 'out' is to CTRL+ALT+BACKSPACE and login again.

The Nvidia driver version 173 does seem to happen a bit less often. Not too sure I want to mess with downgrading Xorg.

Please let me know if there is anything that can be posted or any way that I can help to resolve this issue.

Revision history for this message
chimaster (spike-queenstown) wrote :

I'd recommend a downgrade of Xorg. It's taken my problem from once very hour (or more!!!!) to once every few days. I can now use virtualbox, firefox (with flash), and switch windows without holding my breath. I'd prefer a full solution, but if you don't want to downgrade to 8.04 then I reckon it's worth it (and painless).

Revision history for this message
mtopro (matt-mtopro) wrote :

Quick tip that I wanted to share to get out of the no-click mouse problem. Got this idea from trying variations of Kevin Brown's solution.

Keep holding down Alt+F7 while left clicking and moving the mouse around.. Works for me every time so far. Makes the glitch more livable for now.

Revision history for this message
Gavin van Lelyveld (mdcore+launchpad) wrote :

Can someone change the package? This is not just with nvidia-graphics-drivers, I have the problem with a SIS chipset.

Changed in nvidia-graphics-drivers-177:
status: Confirmed → Invalid
Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

My last comment was a wrong trail, I had a debugging session on that today and
it has nothing to do with WindowsRestructured. ATM, it looks like a scaling
issue, with the reporter in the Red Hat bugzilla saying it happens more often
on fast transitions than on slow ones.

Can you verify this?

Also, he has a triple monitor setup with two cards, and cannot reproduce it
by switching between the first two monitors (the ones on the same card).

> I've setup a xev process in the same location on each screen (so 3 xev
> instances), when i trigger the bug using the GPU0S0/GPU1S0 boundary moving the
> mouse in the xev session on screen GPU0S0(left) triggers events in the xev
> process running on screen GPU1S0(middle). moving the mouse within xev
> processes on the other 2 screens (middle and right) causes no events to be
> registered anywhere.

these events are probably sent to the root window of one of the screens. Try
to get the root window id with xdpyinfo | grep root and then run xev -id <root
window id>

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

*** Bug 475945 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

*** Bug 18127 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Tobias-kaminsky (tobias-kaminsky) wrote :

(In reply to comment #10)

> these events are probably sent to the root window of one of the screens. Try
> to get the root window id with xdpyinfo | grep root and then run xev -id <root
> window id>
>

I can confirm that xev shows then the mouse again. Even the button events are displayed in konsole. :)

Thanks!
Tobi

Revision history for this message
In , SteveA (steve-encoremusic) wrote :

In response to comment 10, I have a three head machine (2 on an mga dual head card and 1 on a usbvga adaptor using the sis chipset) and can confirm that the problem does occur when switching between the two mga heads.

I have not been able to confirm it, but a co-worker with a similar setup says he had the problem happen once without actually switching between heads. We both have the symptom occur several times a day, but so far the quick fix of moving a window from head to head fixes the issue.

The problem does seem to be limited to xinerama as I have another setup with an ATI card using randr in xorg.conf but otherwise identical software (all machines mentioned are running from an LTSP server with the same image, just different xorg.confs) that does not have the problem.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

Peter and I worked on this problem some more.

My configuration is proprietary nvidia driver, two GEForce cards
and three screens (screen0=card0,0. screen1=card0,1. screen2=card1,0.)
All screens are running at 1280x1024 resolution, and I've got xinarama.

I can recreate the problem easily by dragging my mouse from screen1 to
screen2, which spans between the two nvidia cards. During a gdb
debugging session, during which every slowed down, my mouse cursor
intermittently jumped from its current location (call it x,y) on screen1
to the same (x,y) on screen2, and back.

I tried to recreate the problem between screen0 and screen1 (staying
within the same video card) and was unable. However, this morning the
problem recreated "by accident" between screen0 and screen1, and my
mouse cursor was no where near screen2. So the problem is easily
recreated when switching between card screens and difficult (but still
possible) to recreate when switching between screens on the same card.

Yesterday, I was able to recreate the problem, even with auto-raise
turned off. I just had to move the cursor from screen to screen and
click on windows instead of having auto-raise bring them to the top.

Peter seemed to think this is a scaling issue.

Again, once the mouse stops responding, the problem can be corrected
by using <alt-tab> to select a window, then <alt-f7> to move the window
to screen0 (and only screen0). Once the mouse cursor is moved back to
screen0 via the keyboard arrow keys, the mouse starts working again.

Edward: This does seem like a different issue from the original problem
so maybe you should create a clone bug record.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

I just recreated the problem again between screen0 and screen1.
All I did was drag my mouse cursor slowly from screen0 to screen1.
When it got to screen1, the cursor still moved, but all other
functionality (auto-raise and button clicks) stopped working.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

We may have narrowed it down to .... wait for it.... Animated Cursors!

Looks like if an animated cursor is active and the pointer crosses the screen,
at least one of the calls to update the cursor image has the wrong screen
information. This actually results in the cursor jumping back to the original
screen and then immediately back again (only visible if you happen to have a
breakpoint at the right posision).
Once that happens, the screen info is out of sync, with the pointer image
having a different target screen than the event delivery.

To verify this, I'd need you to install a cursor theme that does not use
animated cursors (don't ask me which one or how to install it...) and try to
reproduce the bug.

Revision history for this message
In , xianthax (xianthax) wrote :

(In reply to comment #14)
> We may have narrowed it down to .... wait for it.... Animated Cursors!
>
> Looks like if an animated cursor is active and the pointer crosses the screen,
> at least one of the calls to update the cursor image has the wrong screen
> information. This actually results in the cursor jumping back to the original
> screen and then immediately back again (only visible if you happen to have a
> breakpoint at the right posision).
> Once that happens, the screen info is out of sync, with the pointer image
> having a different target screen than the event delivery.
>
> To verify this, I'd need you to install a cursor theme that does not use
> animated cursors (don't ask me which one or how to install it...) and try to
> reproduce the bug.
>

I can see this as the bug does relate to graphics load for me...ie if i move my cursor away from an app with an animated cursor the likely hood of it not changing before reaching the X session border would increase (i would think) thus causing the bug to appear more often under load. If this is true i would imagine that the bug appears much more for those that keep apps full screened on each session (as i do with VM's at times, and do see an increase in frequency). I'll test this by keeping windows away from the boarders, thus giving the cursor more time to move to a non animated state before crossing the boarder.

cheers,

x

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

(In reply to comment #14)
> We may have narrowed it down to .... wait for it.... Animated Cursors!
>
> Looks like if an animated cursor is active and the pointer crosses the screen,
> at least one of the calls to update the cursor image has the wrong screen
> information. This actually results in the cursor jumping back to the original
> screen and then immediately back again (only visible if you happen to have a
> breakpoint at the right posision).
> Once that happens, the screen info is out of sync, with the pointer image
> having a different target screen than the event delivery.

Thanks for looking into this Peter, it's really appreciated.

I'm not 100% sure if it's related to animated cursors as I found a new way to trigger the bug: There are some posts in various bug trackers that mention if you assign a short-cut to your window manager to move a window via keyboard to another screen, the problem can be worked around.

For me, the opposite happens: I have a working mouse and press the keyboard short-cut to move the window from one screen to another. As soon as the mouse cursor in the middle of the moving window crosses the screen border, the window stops moving -> the keyboard events go somewhere else, too. Also the short-cut for moving the window stops working. Luckily I can still press CTRL+ALT+DEL for properly shutting down my KDE session :-)

While moving the window, the mouse cursor changes it's shape to a cross.
Does that somehow also qualify as animated cursor/execute the same code path?

btw: A coworker just phoned me to report that the problem happened to him while he was working on one screen only. Huh?

Revision history for this message
In , xianthax (xianthax) wrote :

(In reply to comment #16)
>
> I'm not 100% sure if it's related to animated cursors as I found a new way to
> trigger the bug: There are some posts in various bug trackers that mention if
> you assign a short-cut to your window manager to move a window via keyboard to
> another screen, the problem can be worked around.
>
> For me, the opposite happens: I have a working mouse and press the keyboard
> short-cut to move the window from one screen to another. As soon as the mouse
> cursor in the middle of the moving window crosses the screen border, the window
> stops moving -> the keyboard events go somewhere else, too. Also the short-cut
> for moving the window stops working. Luckily I can still press CTRL+ALT+DEL for
> properly shutting down my KDE session :-)
>
> While moving the window, the mouse cursor changes it's shape to a cross.
> Does that somehow also qualify as animated cursor/execute the same code path?
>
> btw: A coworker just phoned me to report that the problem happened to him while
> he was working on one screen only. Huh?
>

interesting tried this and confirmed basically the same thing, test cases:

select window on left screen (GPU0,S0), use move window command, use keyboard to move the window to the middle or right screen (GPU1,S0 or S1) this triggers the bug, mouse no longer registers events properly. Moving the window (or any window) back to the left screen GPU0,S0 fixes the bug. Also, ONLY moving something onto the left GPU0.S0 screen will fix the bug, moving something onto either of the other 2 screens will not fix the bug. Each of my screens is a separate X session.

I don't get the cross icon, on the left and middle screens i get the normal gnome/metacity closed hand icon (that icon does have an open and close hand position it other instances, so it may be using the animated cursor code path). Moving the window to the right screen gives the standard system arrow cursor.

Interested it knowing if the left screen is special because its on a separate GPU or because it is Xsession / Xscreen 0

cheers,
x

Revision history for this message
Jedediah Smith (jedediah) wrote :

Matrox G450, Ibex, Xinerama, dual-head, using mga module with same patch as Nelson (#292214)

Exact same problem.. move and click events register one screen to the right of where the pointer appears, but nothing responds to the events except for xev, even if you correct for the shift.

I'm also getting lots of these messages from X on stdout or stderr as I move the mouse around:

Badness: Expose event on a client frame which shouldn't be visible: 0x#######

I'm also using wmii, if that matters

Revision history for this message
Gavin van Lelyveld (mdcore+launchpad) wrote :

Since the SIS chipset also supports MergedFB I switched to that. Not only is it faster but this bug has gone away. The bug definitely has something to do with xinerama.

Revision history for this message
In , josef (josef-redhat-bugs-1) wrote :

exactly what happens with my system. and the "fix" works, too.

(In reply to comment #29)

> Again, once the mouse stops responding, the problem can be corrected
> by using <alt-tab> to select a window, then <alt-f7> to move the window
> to screen0 (and only screen0). Once the mouse cursor is moved back to
> screen0 via the keyboard arrow keys, the mouse starts working again.
>
> Edward: This does seem like a different issue from the original problem
> so maybe you should create a clone bug record.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

We had another debugging session and it looks like the cursor rendering for animated cursors is at fault. If you step through it in gdb, the cursors actually jump back to the old screen for a fraction of a second. This confuses the internal screen variables and triggers the bug.

Can you try to recreate the bug by switching the cursor theme to something without animated cursors?

mtopro (matt-mtopro)
Changed in xorg:
status: Invalid → Confirmed
Revision history for this message
eko (mail4eko) wrote :

Same issue on my side:
-----
Hi there,
I am running Ubuntu 8.10 on an x86 64 bit architecture without anz other OS hosted on it.
So, sometimes, my mouse decides to not respond to any clicking anymore: the system is still usable via keyb and the pointer is still there, movable, but I can not use the buttons anymore. There is not any specific event triggering this behaviour and this is happening to me with both a logitech and a microsoft mouse and both with a cable usb-attached one and a radio one.
This is also happening to me both in KDE and Gnome.. and without any specific application opened. I mean everytime it is happening in a different working situation.
-----
1 Nvidia card-2 monitors.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

I spent some time looking around for a non-animated cursor theme.
I didn't have much luck. It's difficult to even tell which themes
are animated and which are not. Also, I'm using gnome and it seems
as if most of the features for doing this seem to be kde-related.

Over the course of last week, I pulled both of my slow PCI nvidia
geforce fx5200 video cards out of the system and added a faster
9600GT pci-express card. (So now I'm down to two displays rather
than three). So far I haven't seen the problem with the faster
card. If necessary, I can go back to the older config for debugging
purposes. If not necessary, I'd rather keep my current configuration.
The problem is easy to recreate, given the other configuration, so
perhaps you can recreate the problem there with slower hardware.

I'll post again if the problem occurs with the fast video card.

Revision history for this message
Jared Bunting (jared-bunting) wrote :

Adding another "me too". Two nvidia 8600 GT cards with four monitors on 8.10 with everything updated and using Xinerama. I generally run a couple instances of firefox, thunderbird, pidgin, intellij, and a couple of terminal sessions. It seems to usually happen when I'm entering or leaving either firefox or thunderbird. I'd be happy to provide any other information if needed.

Revision history for this message
Reuben Firmin (reubenf) wrote :

Same issue here. Xinerama / KDE / Nividia 8800GT.

The "workaround" doesn't appear to work under KDE; however, trying the workaround _causes_ the bug to happen.

Haven't yet tried the downgrade of X, but will attempt. Please fix this soon, this is killing my productivity.

Revision history for this message
eko (mail4eko) wrote :

I'd like to post a positive feedback on the Twinview workaround for enviroments working with two monitors. I have adopted it 3 days ago, the problem has not happened anymore.

Revision history for this message
Reuben Firmin (reubenf) wrote :

Please stop switching this to nvidia. If you read the thread you'll see that the problem happens for people with Matrox, ATI, etc.

Revision history for this message
In , Robert (robert-redhat-bugs-1) wrote :

I did manage to recreate the failure once on my faster video card
yesterday, but it's not easy to do.

Revision history for this message
dan_linder (dan-linder) wrote :

@Reuben Firmin (and other fellow KDE users).

I found a work-around for us, but it's a pain and only works if you have both Gnome and KDE available on the system.

1: Switch to a text console (Control-Alt-F1) and login as your user.
2: Run "killall kwin" to kill the KDE Window manager.
3: Run "DISPLAY=:0.0 metacity" to run the Gnome window manager.
4: Switch back to the XWindows screen (Alt-F7), and follow the steps Kevin Browne posted to this thread on 2008-12-09.
5: Switch to the text console again, and press Ctrl-C to kill metacity.
6: Run "DISPLAY=:0.0 kwin" to run the KDE window manager again.
7: Switch back to the XWindows screen and you should be working again.

Now, can someone show me how to map Alt-Spacebar to the window pop-up screen like Gnome has?

Thanks,
Dan

Revision history for this message
In , Gareth Bult (gareth-encryptec) wrote :

Hi,

Just to clarify, this issue popped up in Ubuntu 8.10 and is affecting people with multi-screen systems (typically 3+) with Xinerama switched on. It's been ongoing since October 2008.

Bottom line is that the people affected are "power users" so this bug is hitting pro-Linux people and developers VERY hard .. without pointing any fingers, nobody is coming up with a fix.

As this bug was "introduced" into what was commonly thought to be a stable system (and hence relied upon for critical business systems) and given the scale of the problem, it would be rather nice is *someone* backed out of the problem. I've heard reports for example from Ubuntu users that selectively downgrading X.org components to 8.04 solves the problem for them.

Please please please can someone either;
a. Produce a fix (ok, this may not be possible ..)
b. Backout of whatever changes caused the issue
c. Issue a recommendation to packagers that they backout / downgrade to a known working version

For my part I'm about to go downgrade my X components after the 10th lockup today.

Revision history for this message
timmy (timmy-cc) wrote :

This bug is affecting me also. Ubuntu 8.10. amd64. latest nvidia (177?). xinerama enabled quad-head. I was able to get out of it by pressing alt-f7 and clicking. i also confirm that xev wasn't processing any mouse events when moving the mouse around and clicking on the xev window.

root@timmy-desktop:~# lsusb
Bus 002 Device 005: ID 04fc:0c25 Sunplus Technology Co., Ltd
Bus 002 Device 004: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f9:0028 Brother Industries, Ltd Printer
Bus 001 Device 003: ID 046d:c043 Logitech, Inc. MX320 Laser Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

AutoAddDevices -> false and setting a udev macintosh emulation ignore .fig file didn't help.

Revision history for this message
chimaster (spike-queenstown) wrote :

Potentially fixed for me.

Upgraded to latest kernel 2.6.27-11-generic
Tried to install Latest Nvidia 180.22 but had hassles with kernel module so I removed using the nvidia install script
re-installed nvidia-glx-180 and nvidia-glx-180-dev
Also installed latest Xserver from repositories. (not the Hardy version, but Intrepid)

commented out Load "glx" from xorg.conf

No hanging, no crashes. Yet to try it with GLX turned on. However, I was having random freezes during gaming sessions with sauerbraten and warzone 2100, I can now play full screen (xinerama, 3 screens) with no hangs / freezes.

Will try with GLX extension turned on when I get a chance.

Nvidia 9500GT x 2
3 Screens.

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

(In reply to comment #14)
> We may have narrowed it down to .... wait for it.... Animated Cursors!

Happy new year everyone! I really appreciated the work on this bug
and wanted to ask if there is any short news concerning the issue?

Revision history for this message
Pascal R (pascal-cykod) wrote :

Has anyone else been able to confirm what chimaster wrote? (with or without glx)

I finally got my box up, running, & stable with a downgraded X someone linked to above, but it's unfortunately slow as sin and I'm hoping maybe the newer drivers would provide better 2D support under Xinerama.

Revision history for this message
JPHein (jp-jphein) wrote :

Ubuntu 8.10
2.6.27-9-generic
Xinerama 4-screens
Installed nvidia-glx-180
glx is enabled

With the upgrade of the video card drivers the freezing hasn't happened yet and the performance problems I was experiencing are mostly gone.

I'll let you know if I experience to freezing again.

Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

Pascal R wrote:
> Has anyone else been able to confirm what chimaster wrote? (with or
> without glx)
>
> I finally got my box up, running, & stable with a downgraded X someone
> linked to above, but it's unfortunately slow as sin and I'm hoping maybe
> the newer drivers would provide better 2D support under Xinerama.
>
>
Slow as sin can be corrected. See:
http://www.nvnews.net/vbulletin/showthread.php?t=118088

Revision history for this message
m0sia (m0sia) wrote :
Revision history for this message
Travis Hegner (thegner) wrote :

Hi All!
I don't believe that GLX is the exact issue. I have a different machine that I described above, with an nVidia 8600 GT, and it only has two 1280x1024 monitors connected. I am running xinerama, and intrepid on that box as well, but I have never had the mouse lock up. Both machines that I use very regularly (one at work, the smaller one at home) have GLX enabled. The only difference in the xorg.confs of each machine is that the one affected by the bug has "Composite" "Enable" under the "Extensions" section. I don't believe this is a key trigger either, as other people who have posted, and are affected, do not have this option enabled.

After reading through this thread again, I am beginning to think that the bug is definitely performance related. It seams that I am able to manually trigger it by creating a heavy graphics load. I open several windows, mostly firefox, and also vmware workstation with a windows guest, and then grab a small firefox window and drag it around and across monitors as fast as I can. As long as I have many windows open that X has to re-draw when the window is dragged across them, the bug is triggered. If I do the same technique with an empty desktop, and one firefox window, I can not get it to happen.

All that being said, the article that WolphFang linked to explains the performance tweaks for the 177 drivers. It also mentions that those tweaks are the default settings for the 180 drivers, and may explain why people are having better luck with the 180 drivers. I will introduce the performance tweaks described in the article to my 177 drivers, and then report back my findings.

Thanks,
Travis Hegner

Revision history for this message
chimaster (spike-queenstown) wrote :

Hi,

I don't believe GLX is the issue either... I just didn't get a chance to switch it back on, will test further today. Performance is CRAP currently with 180 Drivers, I'll look into those tweaks added by default today also as I would like my screen to refresh.

I'm tentatively agreeing with load. I haven't been 100% stable with my suggestions above, when I run Virtualbox (with previously downgraded version of X it was ok) now it crashes after two changes in and out of the virtual window. I had 14 windows open last night doing some network work, Freemind, The Dude (Wine), OpenOffice, Virtual Box, Firefox and as soon as Virtualbox was used I crashed.

This really is getting frustrating though, every time it's tested it takes 2 hours out of our days. Anyways there is enough of us playing, hopefully one of us strikes gold or the maintainers find a solution.

Revision history for this message
Travis Hegner (thegner) wrote :

Since my last post, I updated the performance settings and have not had the bug triggered since. I have also noticed a very significant 2d performance boost, which I have been very happy with. I can even run opengl games in windowed mode and the bug is no long triggered. This used to trigger the bug every single time. opengl apps in full screen still seem to have an issue, but the pretty much always have with xinerama. I've always just ran a secondary x server on one screen to run opengl apps.

If anyone would like any info or logs or anything from my machine... let me know...

Travis

Revision history for this message
chimaster (spike-queenstown) wrote :

Hi Travis,

Please post performance improvements that you implemented, I'd love to get a little more performance out of my Nvidia 9500GT. I can run games fine in Windowed mode, however, if I've been up and running for a while the performance gets a little choppy, if I restart X it settles down.

Nvidia 9500GT
AMD64
2.6.27-11-generic
nvidia-glx-180, -dev (180.11)

Still hanging when using virtualbox, no issues thus far with Flash and firefox, or other apps (aside from games getting choppy).

Cheers

Revision history for this message
Kevin Browne (kbrowne-deactivatedaccount) wrote :

GLX is not the cause of this problem. I disabled it in my configuration weeks ago and still encounter this problem daily.

Based on reports here and in other bug trackers, and my own experience with this problem, I agree that it is most likely related to load in some way. Xinerama itself can be rather resource intensive, and the 2D performance of the Nvidia drivers is notoriously poor. This probably accounts for the fact that it is most often Nvidia users who report this problem, and that upgrading to a newer, better performing driver appears to 'fix' the problem.

The upstream report at http://bugs.freedesktop.org/show_bug.cgi?id=18668 (previously linked by Thomas Jarosch) suggests a problem with animated cursors may be at the root of this. This may be worth testing, if anybody has the time and inclination.

Revision history for this message
dan_linder (dan-linder) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

On Fri, Jan 16, 2009 at 1:48 PM, chimaster <email address hidden> wrote:

> Please post performance improvements that you implemented, I'd love to
> get a little more performance out of my Nvidia 9500GT.

Lets keep this trouble ticket on track and not post speed improvments.

Travis: Can you tell us if you're using the Ubuntu supplied restricted
NVidia binaries, or if you downloaded the install image from NVidia and
installed manually.

Thanks,

Dan

--
"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the
Satires of Juvenal
"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)
** *** ***** ******* *********** *************

Revision history for this message
Travis Hegner (thegner) wrote :

Chimaster,

The performance tweaks are located here: http://www.nvnews.net/vbulletin/showthread.php?t=118088. I believe these are geared for improving 2d performance, so running games, you may not see a benefit. The article also mentions that the 180 drivers already have these settings by default, so you may already be covered.

Dan,

Yes, I am running the ubuntu restricted drivers package for 177.

Revision history for this message
geekfreak (davey-geekfreak) wrote :

:-(

I have 3 monitors, 1 rotated, and using Xinerama to get single desktop, cards are 2x8600GT nvidia, running ubuntu 8.10 with the nvidia 180.22 drivers.

I have identical work and home machines, at home I was getting the problem every couple of hours, at work i changed from a wireless mouse to a usb cable attached one, and the problem is mitigated to about once a day. It is still a complete nightmare to have to close all my work and restart X.

seems this issue should be getting some higher profile, as it essentially makes Intrepid a completely useless platform for triple monitor users (8.04 had horrid performance so i never migrated to that)

I can confirm the mtopro workaround re-attaches the mouse to X on my system.

Revision history for this message
JPHein (jp-jphein) wrote :

Well I'm still experiencing the problem with the nvidia-glx-180 drivers.
The upstream bug report (https://bugs.freedesktop.org/show_bug.cgi?id=18668) said something about it maybe being due to the use of animated cursors.
I tried to test this out by installing a cursor theme without animations, but I could not find any.
Let me know if anyone tests that theory.

Revision history for this message
In , xianthax (xianthax) wrote :

waring: out of context.

i'm purchase this: http://www.newegg.com/Product/Product.aspx?Item=N82E16815106011

3d frame rates have jump ~25% in all apps

i can use compiz (note above 25% jump is with compiz enabled)

it may cost a bit more but it destroys xinerama performance in ever way.

cheers,

x

Revision history for this message
In , geekfreak (davey-geekfreak) wrote :

launchpad thread has directions for workaround. and easy reproduction for debugging. It is very sad a bug as severe as this can lie around assigned for such a long time. not even an assignee to take point on the issue.

https://bugs.launchpad.net/ubuntu/+bug/296167

Revision history for this message
geekfreak (davey-geekfreak) wrote :

Well I've came up with a decent workaround (at least i think so), you can force the mouse and xserver back in sync by using a simple command from the xautomation package. simply forcing the mouse pos to the origin of the desktop forces them back in sync.

I've written up a short guide http://www.gen-x-design.com/archives/workaround-for-ubuntu-810-mouse-bug/ that shows the steps and how to wire it into a single keypress under gnome. This means when the mouse locks the fix is simply hitting a single key combo.

This has moved the problem to a minor annoyance for me.

it should be easy enough, to adapt this to other setups.

Revision history for this message
Tessa Lau (tlau) wrote :

Geekfreak's fix makes me wonder if the cause is related to cursor position.

One of the common triggers mentioned by folks on this thread is virtual machines or virtual desktop software such as vnc, synergy, and vmware. Those often work by moving the mouse pointer offscreen (for example, when you use synergy to control a remote desktop, the pointer is hidden on the local desktop by moving it to a point outside of view).

Can anyone reliably trigger the bug by using a similar xautomation command to move the pointer to a location offscreen?

Revision history for this message
In , Zaai (zaai) wrote :

Don't know if it helps, but I've set severity to critical.

Its good to see a second workaround, for those for whom it might work.

Since switching to XFCE the frequence has lessened for me but once every two days it still happens. Unfortunately, lately the keyboard also seems to become unresponsive.

Revision history for this message
geekfreak (davey-geekfreak) wrote :

tried 'xte mousemove 4000 4000' the pointer disappears but comes back as soon as I move it.

not conclusive, but i couldn't force the problem using this technique.

Revision history for this message
Reuben Firmin (reubenf) wrote :

I can confirm that geekfreak's workaround works. Very nice!

Revision history for this message
Reuben Firmin (reubenf) wrote :

I can force the issue by forcing it to the edge of each screen one after the other:

Here's a shell script that'll do it, assuming your screens are 1680 wide (the first column on screen 0 is 0, so the last column on that screen is 1679.)

---------------------------
#!/bin/bash

xte "mousemove 1679 5"
xte "mousemove 1680 5"
---------------------------

Revision history for this message
mtopro (matt-mtopro) wrote :

geekfreak. thank you for your efforts in documenting a fix. I have it ready for the next time and it sounds much easier! I have not had as many issues as long as I don't copy from one screen and paste to the other. I try to limit the carrying any data across screens and it has helped a lot as well.

When implementing geekfreak's idea on my machine I came across an issue that I have not paid much attention to in the past but this could be linked.

When typing 'gconf-editor' in terminal, it opens fine, however I get an error in terminal as follows:
Xlib: extension "RANDR" missing on display ":0.0".

This can also be duplicated with xrandr -v.

Google searches show this is a common error when upgrading from 8.04 to 8.10. In fact the first computer I tried 8.10 on, failed to install due to the RANDR extension. This computer is freshly installed but has the same file issue apparently.

Does anyone else have the same issue, or think it could be linked to this issue?

Revision history for this message
geekfreak (davey-geekfreak) wrote :

Awsome, Reuben's script can 100% force the error. my script can 100% fix it, I think this means we are near the end, as if the problem is easily reproducible it should be easily debuggable/fixable.

good thinking Tessa, good work Reubin.

now how about getting the darn problem fixed core dudes ;-)

I hadn't had the problem show up for a couple of days, and though maybe a recent update had fixed something, but as Reuben's script show the issue is very much alive.

Revision history for this message
geekfreak (davey-geekfreak) wrote :

The RANDR missing error may be the problem, you get this because it's not supported in xinerama, I was just ignoring it (doh!) but I definately see the issue moving from the GPU0-GPU1 boundary which just happens to be onto or off of my rotated screen. i think everyone with the triple monitor/xinerama combo will see that when opening X apps. I see it every time i gedit a file for example.

So maybe this will end up being an 'unsupported configuration' but at least we can now unlock with ease.

Revision history for this message
geekfreak (davey-geekfreak) wrote :

Interesting, using Reubens approach i can break it moving the mouse to the first pixel on the last screen

xte "mousemove 2880 5"

I'm assuming here my config of 1280x1024,1600x1200,1024x1280 results in 2880 being the first column of pixels on the last screen (as the count starts at 0, the rightmost pixel is resolution-1)

Revision history for this message
Robstarusa (rob-naseca) wrote :

My screen resolution is 1280x1024 (on each of 4 monitors)

If I do:

xte "mousemove 1279 5" && xte "mousemove 1280 5"

it breaks the mouse every time
to get it back, I need to do an xte mousemove which relocates the cursor on the "first" display.

for me, xte "mousemove 800 800" always fixes it.

Revision history for this message
mtopro (matt-mtopro) wrote :

Well Reuben's break is confirmed for my system. However geekfreak's fix will not work for me.

The only fix found on two screens with different resolutions, is to 'alt+tab' to a window on screen 1. Attempt to move that window on screen 1 with 'alt+F7'. This first attempt fails, so I alt+tab back to screen 0 (primary display) and alt+F7 to move a window and the mouse click will start working again.

It does seem RANDR is linked and the cause of some deeper issues in 8.10 that was non-existant in 8.04.

Will post again when I find a 'mousemove' number that works.

Revision history for this message
Robstarusa (rob-naseca) wrote :

Actually, my mousemove doesn't work if any application is already on the primary monitor.

a double xte "mousemove" moving the cursor to an "off the primary, onto the primary" works.

For example, "xte mousemove 1300 1300" && xte mousemove "800 800" fixes it.

Rob

Revision history for this message
mtopro (matt-mtopro) wrote :

Robstarusa, that seems to do the trick for me as well. Moving anywhere on secondary display then back to the primary display.

The quotes were also part of why it wouldn't work for me. If you try this make sure there are quotes around the command similar to this:
-----------------

xte "mousemove 1980 0"
xte "mousemove 0 0"

-----------------

Revision history for this message
geekfreak (davey-geekfreak) wrote :

maybe the fix is to force move the mouse from a different screen to the primary, i'm usually on the second or third screen when it happens, and my script pushes it to the first.

I've just confirmed, if my mouse is displayed on the first screen and i break it, it mousemouse 0 0 wont fix it, but moving the mouse to the second screen and mousemove 0 0 will fix it.

sounds to me like there is different code being executed if the mouse is on the current screen (which makes perfect sense) and you need to force X to move the mouse to a different screen.

so it may just be as simple as moving the mouse to a different screen.

this jives with my initial investigation as originally i wanted to have the hotkey center the mouse in the display but this didn't work (no doubt as my cursor was on that screen when I tried).

so that would make the current fix

either
 change the script to move the mouse to two screens.
or
 just move the mouse to the other screen before hitting the hotkey.

i'd be interested to know if those can be shown as a consistent fix. and i'll update my blog post.

Revision history for this message
mtopro (matt-mtopro) wrote :

confirmed geekfreak. your original fix works as long as the mouse is moved to a secondary display before running the script, even if the mouse 'breaks' in the primary display. I was working off the primary display when running the script and thus the original fix did not work. To me it is easier to add a line to the script instead of moving the mouse across before executing, but just personal preference. Thanks again for the patch, this will def make life easier.

Revision history for this message
David Klasinc (bigwhale) wrote :

Hm, a lot of people here is talking about this bug being a problem with dual card setups. I'm having this problem with single card, dual head setup. Two screens and xinerama. Two card setup I can't even get to work. I'm using latest ubuntu nvidia driver and I have 8800 GTS and 7800 GT card. If I run Xorg with -config parameter where I use three screens all works fine. But if I run xinit with the same config, then xinit will segfault.

Revision history for this message
Kevin Browne (kbrowne-deactivatedaccount) wrote :

I don't think animated cursors are the cause. I installed and switched to a non-animated cursor theme, and the problem still occurs with roughly the same frequency.

If I read it correctly, the upstream bug report suggests that the problem occurs where the system needs to update the cursor image, but the cursor crosses the boundary from one screen to another before the update can occur. I suspect that any change of cursor image, not just cursor animation, invokes the same function calls, and is likely to trigger the bug.

I most often encounter the problem when using a Windows application running under WINE, then moving the cursor to another screen. When the cursor is over the WINE application its image switches to a Windows-like pointer (the app doesn't even need to have focus for this to happen). I suspect that when the system is under heavy load, and I move the cursor off the WINE app, a call is made to update the cursor image to the regular X pointer but by the time the call executes the cursor has already crossed the screen boundary, triggering the bug.

A similar change in cursor image occurs with VirtualBox and VNC (again, the window doesn't need to have focus), which may account for the number of VM and VNC users encountering this problem.

Of course, as I'm not familiar with the internals of X, this is all only a guess.

Revision history for this message
Reuben Firmin (reubenf) wrote :

I've been doing more debugging. First, I couldn't find any jumps between the two screens that _won't_ cause the mouse "detachment". For example (assuming screen width of 1680):

------------
#!/bin/bash

xte "mousemove 1479 5"
xte "mousemove 1900 5"
------------

------------
#!/bin/bash

xte "mousemove 1200 5"
xte "mousemove 2100 5"
------------

Also, this (apparently) isn't time related. Making sure not to move your mouse, try (again, adjusted for your resolution):

------------
#!/bin/bash

xte "mousemove 1200 5"
sleep 1
xte "mousemove 2100 5"
-------------

After messing with that, I was curious about where the cursor ostensibly was during "detachment". So, I dug around for applications to detect the cursor position and found a QT3 script on some forum, which I've attached. I don't know if this will work for everybody on Gnome, but it works under KDE4 and I assume also under KDE3. (See readme.txt in the zip).

The upshot: the cursor is registered as being stuck at 0,0 during "detachment"; despite me seeing the cursor moving on screen, the coordinates stay registered as being at 0,0.

Revision history for this message
Travis Hegner (thegner) wrote :

Nice work narrowing this down everyone!

I wanted to comment that even though I can no longer trigger the bug through "normal" usage (with the exception of opengl games), I CAN still trigger the bug with the xte "mousemove" commands. As is true for everyone else, You must move the cursor off of the screen you jump to in order to trigger the bug, and to re-sync the cursor, you must move it off of screen 0, then 'jump' it somewhere on to screen 0.

I have also noticed that when the mouse becomes disconnected by jumping it to another screen, the cursor goes where I initially put it, but when I begin moving it from it's new location, it jumps itself to the coordinates on the new screen, which were the coordinates on the old screen before I manually jumped it. I hope that makes sense.

For Instance:
I (manually) move the cursor to 1670, 1000 on screen1, then run xte to jump it to -1000, 10 (which is roughly 680, 10 on screen2). The cursor shows up at the coordinates that I told xte to put it, but when I begin to move the mouse, it jumps again on it's own to 1670, 1000 on screen2, and the bug is triggered. Now if I run xte to jump it to 10, 10 on screen0, it goes there, and when I begin to move the mouse, it jumps on it's own back to 1670, 1000 on screen0, and the cursor is restored to normal.

It seems that somewhere a function is not updating the new location information of the cursor, and the program with the old location is not multi-screen aware, it only knows the relative coordinates at "this" screen and puts the cursor back to that location when called. So long as the cursor doesn't leave the screen with a jump, the bug is not triggered.

Another oddity about my system, which is perhaps normal as I've never used xte before, my server layout is:
Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 1680 0
    Screen 1 "Screen1" 3360 0
    Screen 2 "Screen2" 0 0
    Screen 3 "Screen3" 5040 13
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
EndSection
(I have added a fourth screen to my original specs way, way above)
so you would expect xte "mousemove 1680 0" to put the cursor at upper left on screen0 but it does not. xte says 0, 0 is at upper left on screen0, and screen2's (left of screen0) upper left is at -1680, 0. This may be normal, i don't know.

Thanks again everyone!

Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

Potentially use information when attempting to implement the "FIX":

My shell script:

<------------------
#!/bin/sh

ORIG="$(xmousepos | cut -f 1,2 -d ' ')"
xte "mousemove 4000 4000"
xte "mousemove $ORIG"
<------------------

Instead of xmousepos returning mouse coordinates after the bug has been
triggered, I instead get:

mjoyner@mjoyner-x64b:~$ fix
X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 38 (X_QueryPointer)
  Resource id in failed request: 0x0
  Serial number of failed request: 8
  Current serial number in output stream: 8

Revision history for this message
WolphFang (mjoyner-vbservices) wrote :

Updated fix script:

#!/bin/sh

ORIG="$(xmousepos 2> /dev/null | cut -f 1,2 -d ' ')"
xte "mousemove -1 -1"
if [ x"$ORIG" = x"" ]; then ORIG="0 0"; fi
xte "mousemove $ORIG"

On Fri, Jan 23, 2009 at 9:45 AM, Michael Joyner <email address hidden>wrote:

>
> Potentially use information when attempting to implement the "FIX":
>
> My shell script:
>
>
> <------------------
> #!/bin/sh
>
> ORIG="$(xmousepos | cut -f 1,2 -d ' ')"
> xte "mousemove 4000 4000"
> xte "mousemove $ORIG"
> <------------------
>
> Instead of xmousepos returning mouse coordinates after the bug has been
> triggered, I instead get:
>
> mjoyner@mjoyner-x64b:~$ fix
> X Error of failed request: BadWindow (invalid Window parameter)
> Major opcode of failed request: 38 (X_QueryPointer)
> Resource id in failed request: 0x0
> Serial number of failed request: 8
> Current serial number in output stream: 8
>
>
>
>

Revision history for this message
Reuben Firmin (reubenf) wrote :

I didn't know about xmousepos; good find. Confirmed:

reubenf@fridge:~$ ~/xbug
reubenf@fridge:~$ xmousepos
X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 38 (X_QueryPointer)
  Resource id in failed request: 0x0
  Serial number of failed request: 8
  Current serial number in output stream: 8
reubenf@fridge:~$ ~/resetmouse
reubenf@fridge:~$ xmousepos
687 621 442 562

Revision history for this message
geekfreak (davey-geekfreak) wrote :

That error may just indicate a generic xmousepos error, for example I get a very similar message with an invalid param to xmousepos.

davey@cylon:$ xmousepos --help
X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 38 (X_QueryPointer)
  Resource id in failed request: 0xa
  Serial number of failed request: 7
  Current serial number in output stream: 7

this might be interesting a perhaps we could use it to have a cron job doing an xmousepos every second and autofixing the pointer if an error is reported, although I'm happy enough with the mousefix script attached to a hotkey.

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

-Any- news, please?

Revision history for this message
Reuben Firmin (reubenf) wrote :

KDE 4.2 seems to prevent the xte / reset workaround from succeeding. I have a powerful machine (quad CPU, plenty of memory, good GPU) so it's not as if things should be overloaded by the UI; and yet, running firefox / amarok / eclipse is enough to cause frequent occurrences of this bug that cannot be xte'd around.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Here's a braindump of what I know so far.
I have not been able to reproduce the bug yet and since everything so far indicates a race condition, this is not an easy one to track down. This information is from a (very) remote ssh debugging session.

The server has two screen pointers around the Event Queue (EQ). One is miEventQueue.pEnqueueScreen, the other miEventQueue.pDequeueScreen. Enqueue is used during signal handling to shove new events into the EQ, Dequeue during event processing to take them out and process them further.
Both are modified through mieqSwitchScreen(), with Dequeue being conditional on a parameter.

Other interesting variables are miPointer.pScreen (the screen of the rendered sprite) and sprite.screen (the screen as seen during event processing).

The usual order of updates to these four variables is:
pEnqueueScreen -> miPointer.pScreen -> miEventQueue.pDequeueScreen -> sprite.screen

When the screwup happens, I noticed the order isn't 1,2,3,4 as above, but instead 1,2,1,2,3,4. From then on, the first two always have different values than the other two.

The question is how the screens get out of sync. I looked at the code and I can't explain it.
One remote guess is XineramaCheckMotion(), where the root x/y coordinates are used. I think by then they should be in per-screen coordinates already, so that would give us the wrong screen, possibly triggering that. Although this should happen all the time, not just sometimes.
Without being able to run gdb on a busted server, I can't really say more.

Revision history for this message
In , Zaai (zaai) wrote :

Peter, thanks for picking this up.
Two questions come to mind:
1. what is the trigger for the deQueue to happen?
2. what happens if an enqueue interrupts a dequeue?

The event order suggests that the dequeue never happens, or does not complete, or the next enqueue doesn't wait for an associated dequeue to complete. This type of problem looks like a missing semaphore or something like it.

I don't know the code, but maybe asking some questions might help find a lead.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

> 1. what is the trigger for the deQueue to happen?

dequeuing events is part of the main loop.

> 2. what happens if an enqueue interrupts a dequeue?

nothing, in theory those two should be independent.

> The event order suggests that the dequeue never happens, or does not complete,
> or the next enqueue doesn't wait for an associated dequeue to complete. This
> type of problem looks like a missing semaphore or something like it.

Reports that the bug occurs more frequently under load indicate that too.
The one lead I have is that mi/mipointer.c stuff is being called both during
SIGIO handling and during event processing, but I haven't found any
significant overlap yet.

Changed in xorg:
importance: Undecided → High
Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

Thanks for the update Peter, it's highly appreciated!

> Here's a braindump of what I know so far.
> I have not been able to reproduce the bug yet and since everything so far
> indicates a race condition, this is not an easy one to track down. This
> information is from a (very) remote ssh debugging session.

I'm still able to reproduce it 100% of the time by using a keyboard shortcut in KDE to move a window from one screen to another. As soon as the mouse
cursor in the middle of the moving window crosses the screen border,
the window stops moving -> the keyboard events go somewhere else, too.

Would it help if I set you up a box with two graphic cards and full root access to reproduce the thing? We have an IP ready KVM switch so you could access it from the outside like a normal user. Though reconfiguring all this stuff and putting it in a DMZ will require some time...

> Reports that the bug occurs more frequently under load indicate that too.
> The one lead I have is that mi/mipointer.c stuff is being called both during
> SIGIO handling and during event processing, but I haven't found any
> significant overlap yet.

Hmm, also smells like an -EAGAIN error code issue. Suppose some code is in the middle of a read/write and a signal fires, you're read/write call will be interrupted with -EAGAIN. Even without a signal firing, if a box is under load the kernel can issue -EAGAIN for IO operations f.e. on sockets.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Created an attachment (id=22373)
0001-mi-don-t-call-UpdateSpriteForScreen-if-we-have-Xine.patch

This patch seems to fix the issue.

mi: don't call UpdateSpriteForScreen if we have Xinerama enabled. #18668

In Xinerama all windows hang off the first root window. Crossing the screens
must not reset the spriteTrace, otherwise picking fails and events are sent to
the root window.

Revision history for this message
In , geekfreak (davey-geekfreak) wrote :

I would be happy to test the patch. if you could explain how I go about it.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Fedora 10 users can get a scratch build, see
https://bugzilla.redhat.com/show_bug.cgi?id=473825#c35

Otherwise, you need to get the server sources from your respective distribution and apply the patch (or get your distribution to do it for you). Then build and install the patched server.
Alternatively you can check out the git repository, more on
http://wiki.x.org/wiki/JhBuildInstructions

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

Finally tracked it down. Caused by a WarpPointer request that would reset the root window of the sprite. In Xinerama, there's only one protocol root window (but more in the server), so suddenly the sprite ends up on a root window that doesn't have any actual windows.

Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1092389
RPMS available from: http://koji.fedoraproject.org/scratch/whot/task_1092389/

Revision history for this message
In , Thomas Jarosch (thomas-jarosch) wrote :

(In reply to comment #28)
> Created an attachment (id=22373) [details]
> 0001-mi-don-t-call-UpdateSpriteForScreen-if-we-have-Xine.patch
>
> This patch seems to fix the issue.

Peter, you're my hero! Patch is working fine on Fedora 9. Tested on my box and a triple head one. Congratulations also from my co-workers.

Have a nice weekend!

Revision history for this message
timmy (timmy-cc) wrote :

There was a patch submitted upstream which may fix the issue. See https://bugs.freedesktop.org/show_bug.cgi?id=18668

Revision history for this message
geekfreak (davey-geekfreak) wrote :

Very happy to see this. I poked that bug to SEVERE last week, and it got pulled from the group queue and assigned to a dev, the work from this thread to make it reproducible seems to have helped.

So hopefully we'll see an update soon and the problem will be gone!

awsome.

Revision history for this message
geekfreak (davey-geekfreak) wrote :

for those that are comfortable with building the patched server

http://bugs.freedesktop.org/show_bug.cgi?id=18668

--- Comment #30 from Peter Hutterer <email address hidden> 2009-01-29 22:34:20 PST ---
Fedora 10 users can get a scratch build, see
https://bugzilla.redhat.com/show_bug.cgi?id=473825#c35

Otherwise, you need to get the server sources from your respective distribution
and apply the patch (or get your distribution to do it for you). Then build and
install the patched server.
Alternatively you can check out the git repository, more on
http://wiki.x.org/wiki/JhBuildInstructions

Revision history for this message
In , Zaai (zaai) wrote :

Thank you Peter this is a great find. I've reported your patch on the Gentoo Bug forum as well. (https://bugs.gentoo.org/show_bug.cgi?id=243496)

As soon as I can confirm this works I'll close this bug.

Thanks on behalf of the Gentoo users :)

Revision history for this message
NoconaGeek (noconageek) wrote :

Hi all, I've got this same problem also - although, from reading through all of these posts, have the (temporary) work around for it. It's fairly simply and can get you back up and running with in a few seconds. When ever it occurs (I've noticed that heavy graphics use will trigger it easily, although I've triggered it with just Firefox and terminals open), simply hit ALT-F7 (or ALT-SPACE and with cursor keys scroll down to move) - this is for moving the active window. If it doesn't move via the mouse cursor (it should) use the cursor keys - move the window from one desktop to the other and back - and whala! mouse back and functional! (after you stop moving the window of course) :-) Many thanks for Mr Kevin Browne who figured out the way around this annoying bug ;-)

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :
Revision history for this message
Tom Davidson (tomdavidson) wrote :

ditto. Nvidia card, dual displays... the mouse issue. switch to twinview from xinerama and no problems yet. would rather use xinerama.

trouble shooting mouse files (as described here: https://wiki.ubuntu.com/DebuggingMouseDetection) attached should they be helpful...

Revision history for this message
messinwu (lynn-konz) wrote :

Okay, I don't think we need anymore "Hey, I have this problem too!" posts. This bug has been fixed. You need to upgrade your Xorg Server and associated files. At least that's what I did with my Fedora 10 system. Bug is gone, working perfectly with two Nvidia dual-head cards with 180.22 drivers and four monitors in Xinerama. Thank you to all who have contributed.

Revision history for this message
Tom Davidson (tomdavidson) wrote :

messinwu: sorry. Im a bit green... I thought one of the big advantages of such a large open source community was the diversity in testing and reporting of the user experience. It took me a few min to gather the info as directed on the wiki page... I didnt do it for my own self satisfaction - I truly thought this type of participation was/could be helpful.

Its not as though all of these "this problem too" posters filed separate bug reports. I think we just wanted to help in any way we can. It was from several of these such post that I found my workaround via twin veiw, otherwise i was going back to 8.04.... Thanks for the help everyone.

Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

What version of Xorg ?
Using UBUNTU, still have bug with latest updates.

messinwu wrote:
> Okay, I don't think we need anymore "Hey, I have this problem too!"
> posts. This bug has been fixed. You need to upgrade your Xorg Server
> and associated files. At least that's what I did with my Fedora 10
> system. Bug is gone, working perfectly with two Nvidia dual-head cards
> with 180.22 drivers and four monitors in Xinerama. Thank you to all who
> have contributed.
>
>

Revision history for this message
chimaster (spike-queenstown) wrote :

messinwu, I'm still buggin too. Can you please validate your "fixed" with references to versions that you are using include Xorg. Bearing in mind of course that Ubuntu might not be using the same versions / patches / time frames as Fedora.

P.S. Me Too, and this problem sucks. The more the better, if it wasn't for so many me too's then we'd all probably still be saying this is an Nvidia specific issue and not related to Xinerama or Xorg.

Revision history for this message
messinwu (lynn-konz) wrote :

The latest patch is probably not in the Ubuntu updates yet. You have to patch your Xorg server, as suggested in Post #130 of this thread. Unfortunately, I have Fedora 10 and not Ubuntu, so my upgrade was simpler because they already had .rpm's made for the new Xorg that I installed with yum. If someone else has done this with Ubuntu already, please chime in and help those folks out. I'm guessing you just download the patched source code and compile it and install it as root... ?

Revision history for this message
messinwu (lynn-konz) wrote :

X -version

X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.18.el5 i686
Current Operating System: Linux localhost.localdomain 2.6.27.12-170.2.5.fc10.i686 #1 SMP Wed Jan 21 02:09:37 EST 2009 i686
Build Date: 29 January 2009 08:40:04PM
Build ID: xorg-x11-server 1.5.3-10.fc10
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.

I got the latest rpm's from the link from post #35 of the following thread:
https://bugzilla.redhat.com/show_bug.cgi?id=473825#c35

If you follow that thread, the specific cause of the problem was identified and fixed with the latest patch. A simple 'yum update' will not do it, I had to download and manually install the 'i386' rpm's from the link above.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Pushed as 9fe9b6e4ef669b192ee349e3290db5d2aeea273c and nominated for 1.6.
Thanks for testing.

Revision history for this message
In , Zaai (zaai) wrote :

Thanks for fixing it Peter

Revision history for this message
In , Steven Harms (sharms) wrote :

I tested the fix against Ubuntu Intrepid and it works great. System stable, thanks so much Peter!

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

xorg-x11-server-1.5.3-10.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with
 su -c 'yum --enablerepo=updates-testing update xorg-x11-server'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-1308

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

xorg-x11-server-1.5.3-11.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with
 su -c 'yum --enablerepo=updates-testing update xorg-x11-server'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-1390

Revision history for this message
Bryce Harrington (bryce) wrote :

Can someone extract the fedora patch? Perhaps this is a dupe of 41301, of which a patch was just uploaded to jaunty.

Changed in xorg:
status: Confirmed → Triaged
Changed in xorg-server:
status: Unknown → Fix Committed
Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Is there any ETA for when this fix is going to get into the normal Ubuntu update channels? Patching/recompiling X isn't really an option for some of us.

Revision history for this message
Reuben Firmin (reubenf) wrote :

FWIW, I switched to Twinview and (obviously) the problem hasn't reoccurred. I had an aversion to Twinview in the past (based on instability last time I tried it, years ago, I think) but it's stable (and, bonus, gives me full KDE4 bling, which xinerama was somehow blocking.)

Revision history for this message
dan_linder (dan-linder) wrote :

Unfortunately "TwinView" doesn't work for those of us with three+ monitors ("TripletView" anyone?).

Dan

(Or am I missing something with TwinView to make it work with my two NVidia cards -- GeForce 8600 GT, and older GeForce2 MX/MX 400? I'm using the NVidia driver for the 8600, and the opensource "nv" driver for the 400 IIRC...)

Revision history for this message
mati (mati-wroc) wrote :

> Unfortunately "TwinView" doesn't work for those of us with three+ monitors ("TripletView" anyone?).
Or just one monitor...

This should classify for a SRU, in my humble opinion.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

xorg-x11-server-1.5.3-13.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
Bryce Harrington (bryce) wrote :

> Is there any ETA for when this fix is going to get into the normal Ubuntu update channels?

No ETA until there is a patch identified and tested in Jaunty. So if anyone is anxious to see this fixed, you can help by extracting the patch from the fedora package (I poked around but didn't spot it offhand.)

> This should classify for a SRU, in my humble opinion.

If you'd like to see it as an SRU, you can lay the groundwork by updating the description of this bug and fill in the information specified in the procedure https://wiki.ubuntu.com/StableReleaseUpdates . If this is done, and a regression-free patch is identified and validated on Jaunty, I wouldn't be opposed to putting in an SRU on it.

Revision history for this message
Albert Damen (albrt) wrote :

This seems to be http://bugs.freedesktop.org/show_bug.cgi?id=18668
Both this LP bug and the Redhat bug are referenced in that bug.
Fix was pushed as 9fe9b6e4ef669b192ee349e3290db5d2aeea273c and nominated for 1.6
Steven Harms reports the fix works on Intrepid.

Changed in xorg-server:
status: Fix Committed → Fix Released
Revision history for this message
m0sia (m0sia) wrote :

I patched xorg-server with patch from http://bugs.freedesktop.org/show_bug.cgi?id=18668

You can find updated xorg packages in my PPA, while ubuntu developers update official package.
https://launchpad.net/~m0sia/+archive/ppa

Revision history for this message
Gareth Brown (gaz-gbmail) wrote :

After patching xserver with the patch from http://bugs.freedesktop.org/show_bug.cgi?id=18668 we have had no further problems.

We are using TwinView across 3 monitors (2 GPUs). xorg.conf attached.

Changed in xorg-server:
status: Unknown → Fix Released
Revision history for this message
In , Chris (chris-redhat-bugs) wrote :

I'm hoping this also fixes bug 460793 as well, which has been bugging me since I upgraded to Fedora 9 over 6 months ago,

Revision history for this message
Kris Willis (w-launchpad-kriswillis-com) wrote :

I can confirm that the patch fixes the bug on my machine. Updated xorg via m0sias PPA - Thanks m0sia.

Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Re: [Bug 296167] Re: X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.

Also fixes it here at work, Quad Display Nvidia.

On Fri, Feb 27, 2009 at 6:49 AM, Kris Willis <email address hidden>wrote:

> I can confirm that the patch fixes the bug on my machine. Updated xorg
> via m0sias PPA - Thanks m0sia.
>
>

Revision history for this message
In , Maxim (maxim-redhat-bugs) wrote :

(In reply to comment #38)
> xorg-x11-server-1.5.3-13.fc10 has been pushed to the Fedora 10 stable
> repository. If problems still persist, please make note of it in this bug
> report.

I've been experiencing the same problem. The problem still persists with xorg-x11-server-Xorg-1.5.3-13.fc10.x86_64.

Can provide more info if necessary.

Revision history for this message
In , Peter (peter-redhat-bugs) wrote :

Maxim:
open a window, press alt+f7 to move it (if you're running metacity), then move the window with the cursor keys to the second screen. press enter to release the pointer - does the pointer work now? (same way to restore it, btw, just move the window back)

If not, this is the same problem (although I thought it'd been fixed). If it works, then what you are seeing is a different problem, please open a new bugreport for that.

Revision history for this message
In , Stephen (stephen-redhat-bugs) wrote :

I had been seeing this occur once every 2 or 3 days since updating to F10, but am now at 10 days without issue using xorg-x11-server-Xorg-1.5.3-13.fc10.i386. I'm using Xinerama over two DVI displays on a single card. Looks good so far, I'll followup here if I see it occur again.

Revision history for this message
In , Maxim (maxim-redhat-bugs) wrote :

(In reply to comment #41)
> Maxim:
> open a window, press alt+f7 to move it (if you're running metacity), then move
> the window with the cursor keys to the second screen. press enter to release
> the pointer - does the pointer work now? (same way to restore it, btw, just
> move the window back)

This test works as expected.

> If not, this is the same problem (although I thought it'd been fixed). If it
> works, then what you are seeing is a different problem, please open a new
> bugreport for that.

Okay.

Revision history for this message
In , josef (josef-redhat-bugs-1) wrote :

seems to be fixed, as i no longer have that problem. thanks.

Revision history for this message
In , Chris (chris-redhat-bugs) wrote :

As per my comment #39, this is now fixed for my setup - Hooray :-)

Revision history for this message
Bryce Harrington (bryce) wrote :

For Jaunty, this fix is confirmed present in the 1.6.0 code currently queued in the ubuntu xserver git tree, which should be uploaded some time this week.

Changed in xorg-server:
status: Triaged → Fix Committed
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
description: updated
description: updated
Changed in xorg-server:
importance: Undecided → High
status: New → In Progress
Revision history for this message
chimaster (spike-queenstown) wrote :

Confirm. Fix works. 3 Screens. System (X) up for 4 days. not a single freeze. Yay. Thanks everyone for your input and to whichever guru made the pain stop. :-)

Revision history for this message
Bryce Harrington (bryce) wrote :

Uploaded to intrepid-proposed, updated description for an SRU, and subscribed SRU team. After reviewing the patch and based on all of the testing feedback I think this is very appropriate for an SRU so give it my ack.

Changed in xorg-server:
status: In Progress → Fix Committed
Bryce Harrington (bryce)
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

I'm closing the Ubuntu task since the bug report is affecting the right package now and doesn't belong in the no package section.

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

This bug was fixed in the package xorg-server - 2:1.6.0-0ubuntu1

---------------
xorg-server (2:1.6.0-0ubuntu1) jaunty; urgency=low

  [ Bryce Harrington ]
  * New upstream release
    - Fixes segfault during X startup for drivers with RANDR < 1.2
      (LP: #319210)
    - Fixes EDID for monitors that incorrectly report aspect ratio instead
      of resolution (LP: #311485)
    - Fixes issue where X stops responding to mouse clicks after some time
      if using Xinerama. (LP: #296167)
  * Add 162_null_crtc_in_rotation.patch: Fixes crash when two displays on
    separate cards are attached. X doesn't work with multiple cards yet,
    but crashing is not an appropriate way to handle such a situation.
    (LP: #139990)

  [ Timo Aaltonen ]
  * 159_xinerama_focus.patch,
    161_force_paired_kbd_device.patch:
    - Dropped, applied upstream

 -- Bryce Harrington <email address hidden> Fri, 06 Mar 2009 14:44:31 -0800

Changed in xorg-server:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted xorg-server into intrepid-proposed; please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
mtopro (matt-mtopro) wrote :

Well the fix works great for me after a reboot. Thanks for all the support everyone!

I will report back if other issues develop, but all seams well. : )

Revision history for this message
mtopro (matt-mtopro) wrote :

Another comment that may help other GUI users test, you can enable the fix through System>Administration>Synaptic Package Manager. Then go to Settings>Repositories and under the 'Updates' tab check the box under Pre-released updates. Close out of that box and Synaptic, then do a System>Administration>Update Manager. 'Check' for new updates and you will get a list of the active updates. Uncheck all of them except the xorg-server and the xorg-common. After that updates, go back into the Synaptic Package Manager and uncheck the box for Pre-released updates. You're all set. Reboot and you should hopefully have a fix.

Revision history for this message
Petur Ingi Egilsson (petur-unix) wrote : thanks
Download full text (5.1 KiB)

thank you :)

On Tue, 2009-03-10 at 21:20 +0000, mtopro wrote:
> Another comment that may help other GUI users test, you can enable the
> fix through System>Administration>Synaptic Package Manager. Then go to
> Settings>Repositories and under the 'Updates' tab check the box under
> Pre-released updates. Close out of that box and Synaptic, then do a
> System>Administration>Update Manager. 'Check' for new updates and you
> will get a list of the active updates. Uncheck all of them except the
> xorg-server and the xorg-common. After that updates, go back into the
> Synaptic Package Manager and uncheck the box for Pre-released updates.
> You're all set. Reboot and you should hopefully have a fix.
>
> --
> X.org will stop responding to mouse clicks on Ibex with Xinerama. Occurs frequently, Fatal Error.
> https://bugs.launchpad.net/bugs/296167
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in X.Org X server: Fix Released
> Status in Ubuntu: Invalid
> Status in “xorg-server” source package in Ubuntu: Fix Released
> Status in The Intrepid Ibex: Invalid
> Status in xorg-server in Ubuntu Intrepid: Fix Committed
> Status in “xorg-server” source package in Fedora: Fix Released
>
> Bug description:
> [Problem]
> When using Xinerama (such as with multiple video cards), if using an animated cursor, after some time X will stop responding to mouse events. All mouse events are being sent to the root window instead of client applications.
>
> [SRU]
> Confirmed fix is released upstream in xserver 1.6.0 and present in Jaunty (as of xserver 1.6.0)
>
> Impact: Severe regression for users of -nvidia and other drivers which still rely on Xinerama, resulting in mouse cursor (and thus much of the GUI) becoming unusable. No reliable workaround known.
>
> Fix: Avoid calling UpdateSpriteForScreen() if the Xinerama extension is loaded
>
> Patch: https://bugs.freedesktop.org/attachment.cgi?id=22373
>
> Test Case: Configure a Xinerama multi-head (3+) layout using -nvidia. Configure the mouse to use an animated cursor; this is optional but makes it easier to reproduce the problem. Move windows around, from one screen to another until the bug is triggered (may take a few tries). Mouse clicking will become disabled, while keyboard and mouse movement continues to work correctly.
>
> Regression Potential: The fix is extremely trivial and highly tied to Xinerama. The net effect is to prevent code from being executed rather than enable it. For non-Xinerama users, there is no chance for regression. For Xinerama users, give the huge number that have reported this as an issue, this bug probably affects all users; furthermore we already have numerous confirmations of the fix and zero reports of side effects. So I think the chance of regression is close to nil.
>
> [Original Report]
> After upgrading to Ibex a problem has appeared where after some activity (10-15 minutes), X will suddenly stop responding to any mouse events - the cursor is still there and will move around, but windows won't change focus and clicking the mouse buttons have no effect (in both the focused and unfocused windows). Key...

Read more...

Revision history for this message
mati (mati-wroc) wrote :

Be also sure to use the main repositories. I used the the ones in my country, but they still didn't contain the update.

Revision history for this message
In , Thomas (thomas-redhat-bugs) wrote :

The problem also affects Fedora 9 badly. We've been running Peter's patch for over a month now on five dual head workstations without trouble.

Would be nice if the patch would also be pushed out to other Fedora 9 users
as this really hurts productivity. Thanks!

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

xorg-x11-server-1.5.2-6.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/xorg-x11-server-1.5.2-6.fc9

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

This bug was fixed in the package xorg-server - 2:1.5.2-2ubuntu3.1

---------------
xorg-server (2:1.5.2-2ubuntu3.1) intrepid-proposed; urgency=low

  * 163_no_updatespriteforscreen_if_xinerama.patch: Fixes issue where
    mouse stops responding if using Xinerama.
    (LP: #296167)

 -- Bryce Harrington <email address hidden> Tue, 03 Mar 2009 17:49:38 -0800

Changed in xorg-server:
status: Fix Committed → Fix Released
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

xorg-x11-server-1.5.2-6.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
BlackenedSky (caffeine-lord) wrote :

I have reason to believe this issue has worked its way back in for Jaunty: see bug #374417

Revision history for this message
Peter Leonard (pete-peteleonard) wrote :

Agreeing with BlackenedSky - I'm seeing this as well in Jaunty (desktop upgraded from 8.10 to 9.04). Same workaround as described above (dragging window across screen border & back) works, suggesting the bug has resurfaced.

Revision history for this message
Philipp Sprunger (pspr) wrote :

I have this problem in 9.04 Jaunty and also in Karmic 9.10...

Revision history for this message
xteejx (xteejx) wrote :

@Philipp Spunger: In Karmic can you run "apport-collect -p xorg 296167" without quotes and let it grab all the information for the report. Then we can reset this to confirmed. Thank you.

Changed in xorg-server (Ubuntu):
status: Fix Released → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

Report new issues with these symptoms as new bugs please. Use 'ubuntu-bug xorg'. This bug report is for an issue believed fixed and in any case is stale with too many comments.

Changed in xorg-server (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
xteejx (xteejx) wrote :

Sorry about that Bryce, but thanks for a push in the right direction :)

Revision history for this message
In , Jrumpf (jrumpf) wrote :

*** Bug 20389 has been marked as a duplicate of this bug. ***

Changed in xorg-server:
importance: Unknown → Critical
Changed in xorg-server:
importance: Critical → Unknown
Changed in xorg-server:
importance: Unknown → Critical
Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Michael

Michael Joyner
Programmer at NewsRx
Greater Atlanta Area

Confirm that you know Michael Joyner:
https://www.linkedin.com/e/-7mly8z-hr9ijsis-6i/isd/19867556319/ccrPNB5w/?hs=false&tok=3wLo7WFrY1US41

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-7mly8z-hr9ijsis-6i/k3UsWeJkUvaCotwfHZFfSUMk1qzhI-F_m9bD6Iu/goo/296167%40bugs%2Elaunchpad%2Enet/20061/I6410444033_1/?hs=false&tok=2c-5GA1PY1US41

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

Changed in xorg-server (Fedora):
importance: Unknown → Medium
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.