mouse usage causes Xorg CPU usage to spike, and mouse pointer becomes less responsive

Bug #558657 reported by Karl Fogel
86
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
High
Unassigned
Lucid
Invalid
High
Unassigned
xserver-xorg-video-nouveau (Fedora)
Won't Fix
Medium

Bug Description

Binary package hint: xorg

Over time, my mouse pointer becomes more and more erratic and unresponsive. It never becomes unusable, but it gets jerky and hard to use. If I run 'top', I can watch Xorg CPU usage spike in direct correlation to how much I move the mouse around (and the mouse performance gets worse while I'm doing this). If I wave the mouse pointer around a lot, CPU will reliably hit 100%, and the pointer will be far behind my physical gestures with the mouse (and will continue to move for a while after I stop moving the mouse). CPU climbs back down after I stop moving the mouse.

When I first log in, everything is fine. This problem gets worse the longer I stay in the same X Session. I haven't tried logging out back to GDM and logging back in; if you need me to I can try that.

Switching between windows / desktops is also increasingly sluggish.

This is all on Ubuntu lucid (development branch).

I don't know if this is related to any of these bugs:

  bug #439138
  bug #433802

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xorg 1:7.5+3ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic i686
NonfreeKernelModules: wl
Architecture: i386
CheckboxSubmission: 5e7a695a9deba63c8a14a741c27a2f28
CheckboxSystem: d00f84de8a555815fa1c4660280da308
Date: Thu Apr 8 15:08:28 2010
DkmsStatus:
 bcmwl, 5.60.48.36+bdcom, 2.6.31-20-generic, i686: installed
 bcmwl, 5.60.48.36+bdcom, 2.6.32-19-generic, i686: installed
 bcmwl, 5.60.48.36+bdcom, 2.6.32-17-generic, i686: installed
 bcmwl, 5.60.48.36+bdcom, 2.6.32-18-generic, i686: installed
MachineType: Dell Inc. XPS M1330
ProcCmdLine: root=UUID=2eed5674-1b11-4434-85be-b09c3986a095 ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: xorg
Symptom: display
dmi.bios.date: 11/19/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A14
dmi.board.name: 0U8042
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA14:bd11/19/2008:svnDellInc.:pnXPSM1330:pvr:rvnDellInc.:rn0U8042:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: XPS M1330
dmi.sys.vendor: Dell Inc.
system:
 distro: Ubuntu
 codename: lucid
 architecture: i686
 kernel: 2.6.32-19-generic

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 0c)
 Subsystem: Dell Device [1028:0209]
01:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M GS] [10de:0427] (rev a1)
 Subsystem: Dell Device [1028:0209]

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

RAOF - Karl is one of the Canonical launchpad developers, mind helping him with this bug?

affects: xorg (Ubuntu) → xserver-xorg-video-nouveau (Ubuntu)
Changed in xserver-xorg-video-nouveau (Ubuntu):
assignee: nobody → Chris Halse Rogers (raof)
importance: Undecided → High
milestone: none → ubuntu-10.04
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

This error in dmesg appears pertinent:

[101728.482742] [drm] nouveau 0000:01:00.0: no space while unhiding cursor

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

From the glxinfo it seems you don't have hw acceleration, which can cause performance problems and cpu loads (since rendering is done in sw). Make sure desktop effects is not enabled (it shouldn't even be possible to enable them). Also, check if you are running any 3D programs or anything which uses compositing.

OpenGL renderer string: Software Rasterizer

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

Looks like this and lp #542929 are dupes although symptoms are slightly different.

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

Well, maybe not dupes, but they both have the same errors in dmesg. Might be related.

Revision history for this message
Karl Fogel (kfogel) wrote :

Thanks for all the help, Bryce. No desktop effects enabled, AFAIK, and no 3D graphics either (I mostly live in Emacs and Firefox).

FWIW, I was using an external monitor setup then (mirrored screens, w/ laptop screen and one external screen). Now I'm using just the laptop screen, after rebooting. So far, the bug has not come back. If it does, I'll leave a note here.

Revision history for this message
Chris Halse Rogers (raof) wrote :

I suspect that adding an xorg.conf with

Section "Device"
    Driver "nouveau"
    Identifier "nouveau"
    Option "HWCursor" "false"
EndSection

will resolve this for you by just not using the hardware cursor. Does that fix it?

Changed in xserver-xorg-video-nouveau (Ubuntu Lucid):
status: Triaged → Incomplete
Revision history for this message
Chris Halse Rogers (raof) wrote :

Hm. Following the cryptic references in the RH bug, it's possible that there's a kernel commit that would fix this:

commit 1cfa49c2f1f3f42cf166438c17dafac577610836
Author: Ben Skeggs <email address hidden>
Date: Tue Feb 9 16:59:26 2010 +1000

    drm/nv50: EVO uses a real ring buffer, not jumps back to start like PFIFO

    Tested on NV84GL and NV96 with cursor state caching disabled to force
    lots of EVO use, no problems seen.

    There's been some reports of EVO randomly dying and reporting an error
    during cursor state changes for some people, I've been unable to
    reproduce on my hardware but hopefully this is the culprit.

    Signed-off-by: Ben Skeggs <email address hidden>

I thought we had that in our tree, but it seems that we don't.

affects: xserver-xorg-video-nouveau (Ubuntu Lucid) → linux (Ubuntu Lucid)
Changed in linux (Ubuntu Lucid):
assignee: Chris Halse Rogers (raof) → nobody
Revision history for this message
Andy Whitcroft (apw) wrote :

I have pulled this patch back to Lucid and have build kernels for testing. If those of you who are seeing this issue could test these kernels and report back here that would be helpful. Kernels are at the URL below:

   http://people.canonical.com/~apw/lp558657-lucid/

Thanks.

Steve Langasek (vorlon)
Changed in linux (Ubuntu Lucid):
milestone: ubuntu-10.04 → lucid-updates
Revision history for this message
Karl Fogel (kfogel) wrote :

Chris, Andy, et al,

Sorry for the late response. It turns out I only see this issue when configured with dual monitors, and (for logistical reasons) I haven't been able to set things up that way the last few days. Would you like me to test this with the new kernel before the end of this week? (I assume I install the kernel with 'dpkg' and it Just Works after reboot? I've built kernels from source... years and years ago :-) ... but never actually installed one from a .deb.)

I will be away from my external monitor on Wednesday, unfortunately, but I could do the testing Thursday...

Revision history for this message
Michael Orlitzky (michael-orlitzky) wrote :

Here are two videos demonstrating the problem, both with and without that last kernel patch. It's the same 64-bit KVM image in both videos, using the latest packages from the repos.

In the first video, I 'cat' the KVM script I'm using. I'm not terribly attached to the disk image if it would be useful for testing.

1. http://michael.orlitzky.com/video/ll-xorg_cpu_usage_bug.ogv

2. http://michael.orlitzky.com/video/ll-xorg_cpu_usage_bug-lp558657.ogv

Revision history for this message
Karl Fogel (kfogel) wrote :

Michael,

So you're saying it still reproduces for you even with Andy's new kernels?

Revision history for this message
Michael Orlitzky (michael-orlitzky) wrote :

Yes, and in my case, it's most certainly not a nouveau problem.

tags: added: kernel-input kernel-reviewed
Revision history for this message
Vishal Telangre (vishaltelangre) wrote :

My friend also had faced the problem of stucking or freezing of keyboard and mouse after login as he did the upgrade to 10.04 from 9.10! But we found that that was 'cause of his devices such as mouse and keyboard wasn't added in the file /usr/lib/X11/xorg.conf.d/05-evdev.conf. For this we had added this devices manually and the problem resolved for us!

All step-by-step instructions regarding this "mouse/keyboard stucking issue" are available at link given below:

http://blog.ichinmay.com/2010/05/03/ubuntu-10-04-upgrade-from-9-10-usb-keyboard-mouse-problem/

Thanks (cc Chinmay Inamdar)

Changed in linux (Ubuntu Lucid):
status: Incomplete → Fix Committed
Revision history for this message
TylerMD (manuelmorales) wrote :

Does any of you have easystroke running. I'm starting to think that that might be the cause.

Revision history for this message
Michael Orlitzky (michael-orlitzky) wrote :

This is a clean install, not an upgrade. And the mouse works, it just causes the CPU usage to go crazy. I don't even have an xorg.conf (a configuration which works fine in a fresh install of, well, anything else).

Not running easystroke either.

And most importantly, it ain't fixed.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Vishal Telangre,
    Please do not change the state of bugs without explanation, especially those bugs of a serious nature like this. Doing so could potentially cause a bug to be overlooked inadvertently. Marked back to triaged.

Thanks!

~JFo

Changed in linux (Ubuntu Lucid):
status: Fix Committed → Triaged
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
devender (devender-gollapally) wrote :
Revision history for this message
jammen33 (jammen) wrote :

@devender, thanks that fixed it me.
before xorg was idling at about 90%, but now it idles around 10%.

Revision history for this message
jammen33 (jammen) wrote :

ok my bad for posting so soon... after a few days xorg is spiking again.

Revision history for this message
Phurter (johnmckinzie) wrote :

@jammen33, same thing here. The fix worked for a day and now the bug is back. My computer is getting down right unusable at times.

Revision history for this message
Daniel Holm (danielholm) wrote :

This drives my crazy. xorg spikes almost all the time! And the nvidia-driver fix att comment #19 didn't do anything to it.

74 comments hidden view all 137 comments
Revision history for this message
In , David (david-redhat-bugs) wrote :

I get the same message as David in comment #36, then the stream of no space messages with jerky window and cursor behaviour.

Fully up-to-date F13,

kernel-2.6.33.5-124.fc13.x86_64
xorg-x11-drv-nouveau-0.0.16-6.20100423git13c1043.fc13.x86_64
xorg-x11-server-Xorg-1.8.0-17.fc13.x86_64

nVidia Corporation G84M [Quadro NVS 140M] (rev a1)

Revision history for this message
In , Donald (donald-redhat-bugs) wrote :

I started getting these messages yesterday, I suspect it was when I experienced a sudden very high load and non-responsiveness - I was running a windows machine inside virtualbox so that I could run gotomeeting, and I was given control of the meeting. When I would click on something in the vm nothing would happen until I moved the mouse out of the virtualbox.
But I've continued to get the messages at a lower rate even after suspending the windows machine.
kernel= 2.6.32.14-127.fc12.x86_64

Revision history for this message
In , Andrew (andrew-redhat-bugs) wrote :

I had this problem a while ago and rolled back nouveau and the problem went away (well it didn't happen again - but of course that's no certainty that the bug was not present in the earlier versions)

The old nouveau that appears to be OK is:
xorg-x11-drv-nouveau-0.0.15-17.20091105gite1c2ef
(that's the one I rolled back to when the mouse problem first showed itself)

5 days ago I did a full update that included:
kernel-2.6.32.16-141.fc12.x86_64 and
xorg-x11-drv-nouveau-0.0.15-21.20091105gite1c2efd.fc12.x86_64
and the problem has happened again today (for the first time since the rollback)

Xorg.0.log info:

First nVidia message is:
nVidia Corporation GeForce 8600 GTS rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf4000000/33554432, I/O @ 0x0000b000/128, BIOS @ 0x????????/131072

I use a USB mouse, log says:
Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)

I also have a USB Bamboo that the log finds BEFORE the mouse:
Wacom BambooFun 6x8
(I don't use the pen)

The rest of the log looks like status dumps without any error messages.

In my case it's a dual display and acts even stranger when the problem occurs (randomly?):
The left display shows the mouse correctly (but jerky)
In the right display (which has the menu bar) the mouse works but it is invisible
More strange: the mouse image is partially still shown on the edge of the left screen while using the right screen

When the screen saver comes on the mouse is still visible in the left screen
It doesn't fix the problem when the screen comes back
(thought I'd mention that because I've seen it said elsewhere)

It maybe happens when mplayer is playing fullscreen
(so a fullscreen app may be needed to activate the bug)
Of course when the problem wasn't there I was using the current mplayer version constantly also

The first dmesg error was:
[drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x0000 Data 0x00000400 (0x0002 0x01)

followed by lots of the cursor messages (both 'hiding' and 'unhiding')

Revision history for this message
In , Andrew (andrew-redhat-bugs) wrote :

Minor updates on previous post:
I only boot runlevel 3 and thus always use startx
(as user "root")

Once the problem has occurred:
X menu System->"Log Out root..." fails to go back to the console
(the screen clears to just showing the backgrounds and then stops)

OS is of course unaffected by this - ssh login works fine
(I use that to "shutdown -r now")

I've rolled back to xorg-x11-drv-nouveau-0.0.15-17.20091105gite1c2ef
again (nothing else changed) and will report if it happens again with this
version

Logout messages of Xorg.0.log (before logout stops):

(II) AT Translated Set 2 keyboard: Close
(II) UnloadModule: "evdev"
(II) Macintosh mouse button emulation: Close
(II) UnloadModule: "evdev"
(II) UnloadModule: "wacom"
(II) UnloadModule: "wacom"
(II) UnloadModule: "wacom"
(II) Wacom BambooFun 6x8: removing automatically added devices.
(II) UnloadModule: "wacom"
(II) Microsoft Microsoft 5-Button Mouse with IntelliEye(TM): Close
(II) UnloadModule: "evdev"
(II) Power Button: Close
(II) UnloadModule: "evdev"
(II) Power Button: Close
(II) UnloadModule: "evdev"
(II) NOUVEAU(0): NVLeaveVT is called.
(II) NOUVEAU(0): Closed GPU channel 2

No errors seem to be reported in that log

Revision history for this message
In , Andrew (andrew-redhat-bugs) wrote :

Also now had the same problem occur with the older RPM:
xorg-x11-drv-nouveau-0.0.15-17.20091105gite1c2ef

Also, the fullscreen app (mplayer) was not running when it occurred.

Had the same messages for dmesg, /var/log/messages, /var/log/Xorg.0.log as before.
(except no cursor hide/unhide messages)

This time I also got the extra shutdown message (after trying to logout)
dmesg:
[drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2
/var/log/messages:
Jul 30 12:34:08 ... kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 2

However, I have found another problem with my system that may have something to do with the nouveau bug presenting itself.
My USB mouse is possibly failing and switches on and off sometimes ... easy for me to see while dragging windows around, because it sometimes lets go of a window but I haven't released the left mouse button
(I only realised what was going on after my previous comments)

77 comments hidden view all 137 comments
Revision history for this message
Dragos Vingarzan (vingarzan) wrote :

same here... got 11xAsus EeeBox 1012U doing this nasty thing, all the same. I tried many drivers, possible fixes like #19 and nothing - I don't think this is a driver problem. But the strange thing is that I also have 5xAsus EeePC 1201N which I think have the same Atom/ION combination, yet those are all snappy and nice, even with effects enabled.

The easiest way to replicate it to run top in a terminal and to set the delay low, so it will refresh it often. If I maximize the window on a 1920x1200 display, in some seconds the whole thing freezes.

78 comments hidden view all 137 comments
Revision history for this message
In , David (david-redhat-bugs) wrote :
Download full text (5.1 KiB)

Created attachment 451152
Provide info on the Evo channel in debugfs

I was able to do some debugging on this issue today, and have a mosly reproducible test case (~90-95%) on my laptop (also using an external monitor). Here's nouveau's spiel about the card on boot of the 2.6.34.7-56.fc13.x86_64 kernel.

[drm] nouveau 0000:01:00.0: Detected an NV50 generation card (0x086900a2)
[drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
[drm] nouveau 0000:01:00.0: ... appears to be valid
[drm] nouveau 0000:01:00.0: BIT BIOS found
[drm] nouveau 0000:01:00.0: Bios version 60.86.68.00
[drm] nouveau 0000:01:00.0: TMDS table revision 2.0 not currently supported
[drm] nouveau 0000:01:00.0: Found Display Configuration Block version 4.0
[drm] nouveau 0000:01:00.0: Raw DCB entry 0: 01000323 00010034
[drm] nouveau 0000:01:00.0: Raw DCB entry 1: 02011300 00000028
[drm] nouveau 0000:01:00.0: Raw DCB entry 2: 02022312 00010010
[drm] nouveau 0000:01:00.0: Raw DCB entry 3: 010333f1 00c0c070
[drm] nouveau 0000:01:00.0: Raw DCB entry 4: 0000000e 00000000
[drm] nouveau 0000:01:00.0: DCB connector table: VHER 0x40 5 14 2
[drm] nouveau 0000:01:00.0: 0: 0x00000041: type 0x41 idx 0 tag 0xff
[drm] nouveau 0000:01:00.0: unknown type, using 0x40
[drm] nouveau 0000:01:00.0: 1: 0x00000100: type 0x00 idx 1 tag 0xff
[drm] nouveau 0000:01:00.0: 2: 0x00001255: type 0x55 idx 2 tag 0x07
[drm] nouveau 0000:01:00.0: unknown type, using 0x31
[drm] nouveau 0000:01:00.0: 3: 0x00000310: type 0x10 idx 3 tag 0xff
[drm] nouveau 0000:01:00.0: 4: 0x00000311: type 0x11 idx 4 tag 0xff
[drm] nouveau 0000:01:00.0: 5: 0x00000313: type 0x13 idx 5 tag 0xff
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table 0 at offset 0xC11C
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table 1 at offset 0xC486
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table 2 at offset 0xD0C7
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table 3 at offset 0xD1B9
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table 4 at offset 0xD3B3
[drm] nouveau 0000:01:00.0: Parsing VBIOS init table at offset 0xD418
[drm] nouveau 0000:01:00.0: 0xD418: Condition still not met after 20ms, skipping following opcodes
[drm] nouveau 0000:01:00.0: 0xB1D6: parsing output script 0
[drm] nouveau 0000:01:00.0: 0xB34C: parsing output script 0
[drm] nouveau 0000:01:00.0: 0xA228: parsing output script 0
[drm] nouveau 0000:01:00.0: Detected 256MiB VRAM
[drm] nouveau 0000:01:00.0: 512 MiB GART (aperture)
[drm] nouveau 0000:01:00.0: DCB encoder 1 unknown
[drm] nouveau 0000:01:00.0: TV-1 has no encoders, removing
[drm] nouveau 0000:01:00.0: gpio tag 0xff not found
[drm] nouveau 0000:01:00.0: gpio tag 0xff not found
[drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[drm] nouveau 0000:01:00.0: allocated 1920x1200 fb: 0x40230000, bo ffff8800790a2400
fbcon: nouveaufb (fb0) is primary device
[drm] nouveau 0000:01:00.0: 0xB083: parsing clock script 0
fb0: nouveaufb frame buffer device
[drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on minor 0
[drm] nouveau 0000:01:00.0: 0xB199: parsing clock script 1
[drm] nouveau 0000:01:00.0: 0x1085: parsing clock s...

Read more...

Revision history for this message
In , Laurence (laurence-redhat-bugs) wrote :

Wow, I'm impressed, many thanks for getting that. FWIW I always have at least 10 xterms open and "xlock -mode blank" is my screensaver, so I always saw the issue after a couple of days at most.

Revision history for this message
In , Steve (steve-redhat-bugs) wrote :

I'm adding a 'me too' to this bug under F13.

Dual Screens, when manifested cursor has issues drawing on left hand screen, appears ok on right hand screen.

lspci;
01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)

Driver;
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.fc13.i686

happens with 2 hours of a reboot under kernel-PAE-2.6.34.7-56.fc13.i686, can take several days with kernel-PAE-2.6.34.6-54.fc13.i686.

/var/log/messages
Oct 18 11:09:00 cbr-sjw-dt kernel: [drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x0000 Data 0x00000400 (0x0002 0x01)

Happy to work with people on this one, it's making this workstation nearly unusable.

Revision history for this message
In , Gianluca (gianluca-redhat-bugs) wrote :

I have not seen the original behaviour I reported since long, but now that I switched to F14 I guess the best course of action is to close this report and let users on a different release (this was for F12, which is EOL in about one month anyway) or different cards from mine open more specific bug reports.

Revision history for this message
In , Stefan (stefan-redhat-bugs) wrote :

Same for me. Has not happened once in a very long time (more than 6 months).

Revision history for this message
In , Andrew (andrew-redhat-bugs) wrote :

Still happening every so often on F12
(I swapped the flaky mouse out long ago)

Current nouveau is:
xorg-x11-drv-nouveau-0.0.15-21.20091105gite1c2efd.fc12.x86_64

Really is annoying sometimes to have to kill everything and shut down to fix the problem

(I've ALWAYS booted 'init 3' on all Linux servers because I don't think graphics drivers should be needed to boot a server ... the drivers for a while now have been forced upon us even during an 'init 3' boot ... but I've also had 'init 3' on all my desktops too ... pity it doesn't help with this problem.
My other F12 desktop - dual screen LCD + TV connected - uses that 'other' driver - obviously due to TV-Out - and though I don't work on it much - just for playing DVD's or other videos - I've still never had this problem with it)

Revision history for this message
In , Jerry (jerry-redhat-bugs) wrote :

I still see the behavior I reported (see comment 35) on F-13 once in awhile. Steve Walsh (comment 44) appears to be seeing the same thing. I'll ask again: is this really the same bug? If not, perhaps bug 548545 should be revived.

83 comments hidden view all 137 comments
Revision history for this message
John Clemens (clemej) wrote :

I see similar problems on my work machine running an NV50-class (160M?) gpu with nouveau. not sure if this will help, but..

I think there are two bugs here. There is one bug in the nouveau driver and a hardware cursor where the hw cursor engine will eventually stop displaying the cursor, especially with two monitors (as each time you switch monitors it causes this cursor reset, or something). this is indicated by the "no space for cursor" type messages in the kernel log which eventually culminate in a message (from faded memoy) "[drm] EvtChg <blah>...", and after that, the cursor won't show on one of the monitors again until a reboot. .I -occasionally- saw this in Lucid with two monitors (maybe once a month), but with maverick it happened every few hours at least. I switched to a software cursor and stopped using my second monitor.

So, upshot is, you may want to try disabling the hardware cursor and see if you have better luck.

The second is that now, using the software cursor, depending on where on the screen I am, just hovering the mouse over a spot in a gtk app causes cpu usage to spike in Xorg, like it's constantly re-drawing the widget that's under the mouse. Hover the mouse over Xterm window and everything's fine. Open a nautilus window and hover over the sidebar, Xorg jumps to 100% and stays there until you move the mouse off, but if you hover over the file icons or the menu, you're fine. Firefox and Thunderbird also have "sensative areas" of the app which cause cpu usage spikes.

So, either we need to fix the hardware cursor in nouveau, or fix the software cursor cpu usage issues.

In general, nouveau was much more stable under Lucid and under Maverick, at least on my box. I have no such issues at home running the intel or OSS radeon drivers.

84 comments hidden view all 137 comments
Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 12 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Laurence (laurence-redhat-bugs) wrote :

I use Slackware, this has got nothing to do with Fedora 12, if this bug gets closed I'm giving up on this and switching to the closed nvidia driver.

Revision history for this message
In , Jóhann (jhann-redhat-bugs) wrote :

Please respect the maintainer and dont be rude.

You should be aware of the fact that this bugzilla instance is to be used with RHEL and Fedora only not for everydistro out there so please file your report either to slackware bugzilla instance if they have one or directly upstream with the nouveau maintainers.

However you are welcome to download the latest Fedora release ( 14 ) install it and try to see if you still experience this problem and if so you can make note of that on this bug.

Thank you.

Revision history for this message
In , Gianluca (gianluca-redhat-bugs) wrote :

As the original reporter, I need to note this was for a specific version of nuoveau (the one in F12) with my specific card (with ID in the summary) and that I did not experience anymore mouse movement issues (now I'm on F14, no issues there as well)

If you are running any other combo, I advice to open another, separate report

Revision history for this message
In , David (david-redhat-bugs) wrote :

Created attachment 457771
Band-aid patch that solves the problem for me

Continuing the work I started in comment 42, I was also seeing the "EvoCh 0 Mthd
0x0000 Data 0x00000400 (0x0002 0x01)" messages as everyone else. I did more investigation, and found that not using the last 32 bytes of the Evo ring buffer solved the issue for me -- I no longer get the EvoCh messages, which directly lead to the "no space" messages as seen by the original report and the jerky mouse movements reported by others. This bug is current as of F13, and is likely in F14 and rawhide, as the issue is not yet fixed upstream.

Prior to the patch, dma.max was getting the value 1022. &'ing with ~7 was equivalent to subtracting another 6 entries from that value. I also tried ~3, but that did not fix the issue. I was asked on IRC to try subtracting 5, 4 etc to narrow down the minimum value, and my testing confirmed that subtracting 6 (&= ~7) was minimal. I also tried changing some of the register settings above (NV50_PDISPLAY_CHANNEL_UNK2, etc) but was not successful in teasing out meaning or a fix using them. I have not tried playing with the RAMHT for Evo.

I don't like that my patch involves yet more magic numbers without explanation, but it has been stable for me for the past few weeks, and solves my cursor problem.

Revision history for this message
In , David (david-redhat-bugs) wrote :

Created attachment 457773
Test program that provokes the problem

This program hides/unhides the cursor for the number of cycles given on the command line, default 1. I use this to push the Evo channel's index through the rewind and expose the EvoCh messages. It's much easier than moving the cursor from window to window for a while until things wrap. With my patch, this survives thousands of iterations.

Revision history for this message
In , Gianluca (gianluca-redhat-bugs) wrote :

Reassigning to 13 as suggested by Ben on IRC; that will avoid the auto-close.

Revision history for this message
In , Matthew (matthew-redhat-bugs) wrote :

(In reply to comment #54)
> Created attachment 457773 [details]
> Test program that provokes the problem
>
> This program hides/unhides the cursor for the number of cycles given on the
> command line, default 1. I use this to push the Evo channel's index through the
> rewind and expose the EvoCh messages. It's much easier than moving the cursor
> from window to window for a while until things wrap. With my patch, this
> survives thousands of iterations.

Can you give the list of libs needed to build the program ?

Thanks.

Revision history for this message
In , David (david-redhat-bugs) wrote :

(In reply to comment #56)
> (In reply to comment #54)
> > This program hides/unhides the cursor for the number of cycles given on the
> > command line, default 1. I use this to push the Evo channel's index through the
> > rewind and expose the EvoCh messages. It's much easier than moving the cursor
> > from window to window for a while until things wrap. With my patch, this
> > survives thousands of iterations.
>
> Can you give the list of libs needed to build the program ?
>
> Thanks.

cc -o cycle_cursor -O3 -Wall cycle_cursor.c -lX11

Revision history for this message
In , Laurence (laurence-redhat-bugs) wrote :

David, I've been using your patch in comment 53 and it's resolved the issue for me too, thank you very much.

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

I experienced the same problem on Fedora 14: "no space while unhiding cursor".
This issue is very annoying because the system becomes so slow that I need to restart it.

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

I'd like to test the patch in comment 53, but I cannot find nv50_display.c.
I've installed the kernel sources (yum install kernel-devel) but the folder "/usr/src/kernels/2.6.35.6-48.fc14.x86_64/drivers/gpu/drm/nouveau" is empty.

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

I think that the Severity and Priority for this bug should be higher, because, when it occurs, the system becomes so slow that is almost unusable and on my laptop occurs every day.

My video card is:
01:00.0 VGA compatible controller: nVidia Corporation GT216 [Quadro FX 880M] (rev a2)

Revision history for this message
In , Matthew (matthew-redhat-bugs) wrote :

I'm having the invisible cursor issue and the cycle_cursor app doesn't help with that problem.

I'm not seeing ANY errors in either the .xsession_errors file or in /var/log/messages* .

00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev a2)

Revision history for this message
In , Ben (ben-redhat-bugs) wrote :

(In reply to comment #62)
> I'm having the invisible cursor issue and the cycle_cursor app doesn't help
> with that problem.
>
> I'm not seeing ANY errors in either the .xsession_errors file or in
> /var/log/messages* .
>
> 00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev
> a2)

This one is actually a hardware bug, and not related in any way.

Revision history for this message
In , Dario (dario-redhat-bugs) wrote :

I don't know if my issue is related to this bug, but on my laptop (Compal JFL92) with a 8600M GT card, kernel 2.6.35.8-60 killed my sound. Pulseaudio no more sees the sound card (HDA Intel) and falls back to dummy audio output. No problem at all with 2.6.35.8-59. I'm not sure if this is the right bug to report it, as the kernel changelog reads:

* Fri Nov 19 2010 Ben Skeggs <email address hidden> 2.6.35.8-60
- nouveau: add quirk for iMac G4 (rhbz#505161)
- nouveau: add workaround for display hang on GF8+ (rhbz#537065)
- nouveau: don't reject 3D object creation on NVAF (MBA3)

but this seems the only one related to my hardware.
dmesg doesn't report anything suspicious, but I'm available for any further testing on this issue.

This on F14 x86_64.

Revision history for this message
In , Matthew (matthew-redhat-bugs) wrote :

(In reply to comment #63)
> (In reply to comment #62)
> > I'm having the invisible cursor issue and the cycle_cursor app doesn't help
> > with that problem.
> >
> > I'm not seeing ANY errors in either the .xsession_errors file or in
> > /var/log/messages* .
> >
> > 00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev
> > a2)
>
> This one is actually a hardware bug, and not related in any way.

Odd, Since in Fedora 12 it worked fine (cursor showed up without any issues). It only seemed to happen after a certain point. Next time I have to reboot, I'll swap to an external card vs. the built in video).

Revision history for this message
In , Ben (ben-redhat-bugs) wrote :

(In reply to comment #64)
> I don't know if my issue is related to this bug, but on my laptop (Compal
> JFL92) with a 8600M GT card, kernel 2.6.35.8-60 killed my sound. Pulseaudio no
> more sees the sound card (HDA Intel) and falls back to dummy audio output. No
> problem at all with 2.6.35.8-59. I'm not sure if this is the right bug to
> report it, as the kernel changelog reads:
>
> * Fri Nov 19 2010 Ben Skeggs <email address hidden> 2.6.35.8-60
> - nouveau: add quirk for iMac G4 (rhbz#505161)
> - nouveau: add workaround for display hang on GF8+ (rhbz#537065)
> - nouveau: don't reject 3D object creation on NVAF (MBA3)
>
> but this seems the only one related to my hardware.
> dmesg doesn't report anything suspicious, but I'm available for any further
> testing on this issue.
>
> This on F14 x86_64.
What was your previous kernel? I don't see how these changes could possibly cause what you see.

Revision history for this message
In , Ben (ben-redhat-bugs) wrote :

(In reply to comment #65)
> (In reply to comment #63)
> > (In reply to comment #62)
> > > I'm having the invisible cursor issue and the cycle_cursor app doesn't help
> > > with that problem.
> > >
> > > I'm not seeing ANY errors in either the .xsession_errors file or in
> > > /var/log/messages* .
> > >
> > > 00:05.0 VGA compatible controller: nVidia Corporation C51G [GeForce 6100] (rev
> > > a2)
> >
> > This one is actually a hardware bug, and not related in any way.
>
> Odd, Since in Fedora 12 it worked fine (cursor showed up without any issues).
> It only seemed to happen after a certain point. Next time I have to reboot,
> I'll swap to an external card vs. the built in video).

I guess it's possible something in nouveau now triggers the hw bug more reliably. All previous reports indicate that it would usually come up find, and disappear randomly at some point until a reboot. I used to have the effected hardware (the machine has since died), and even the NVIDIA binary driver could not bring it back once it went.

Revision history for this message
In , Dario (dario-redhat-bugs) wrote :

(In reply to comment #66)
> (In reply to comment #64)
> > I don't know if my issue is related to this bug, but on my laptop (Compal
> > JFL92) with a 8600M GT card, kernel 2.6.35.8-60 killed my sound. Pulseaudio no
> > more sees the sound card (HDA Intel) and falls back to dummy audio output. No
> > problem at all with 2.6.35.8-59. I'm not sure if this is the right bug to
> > report it, as the kernel changelog reads:
> >
> > * Fri Nov 19 2010 Ben Skeggs <email address hidden> 2.6.35.8-60
> > - nouveau: add quirk for iMac G4 (rhbz#505161)
> > - nouveau: add workaround for display hang on GF8+ (rhbz#537065)
> > - nouveau: don't reject 3D object creation on NVAF (MBA3)
> >
> > but this seems the only one related to my hardware.
> > dmesg doesn't report anything suspicious, but I'm available for any further
> > testing on this issue.
> >
> > This on F14 x86_64.
> What was your previous kernel? I don't see how these changes could possibly
> cause what you see.

Previous kernel was 2.6.35-59, and audio still works if I boot it. Yeah I know, it's weird. I'm looking after getting some more info about it, but I doubt I'll have time today...

Revision history for this message
In , Dario (dario-redhat-bugs) wrote :

(In reply to comment #68)
> (In reply to comment #66)
> > (In reply to comment #64)
> > > I don't know if my issue is related to this bug, but on my laptop (Compal
> > > JFL92) with a 8600M GT card, kernel 2.6.35.8-60 killed my sound. Pulseaudio no
> > > more sees the sound card (HDA Intel) and falls back to dummy audio output. No
> > > problem at all with 2.6.35.8-59. I'm not sure if this is the right bug to
> > > report it, as the kernel changelog reads:
> > >
> > > * Fri Nov 19 2010 Ben Skeggs <email address hidden> 2.6.35.8-60
> > > - nouveau: add quirk for iMac G4 (rhbz#505161)
> > > - nouveau: add workaround for display hang on GF8+ (rhbz#537065)
> > > - nouveau: don't reject 3D object creation on NVAF (MBA3)
> > >
> > > but this seems the only one related to my hardware.
> > > dmesg doesn't report anything suspicious, but I'm available for any further
> > > testing on this issue.
> > >
> > > This on F14 x86_64.
> > What was your previous kernel? I don't see how these changes could possibly
> > cause what you see.
>
> Previous kernel was 2.6.35-59, and audio still works if I boot it. Yeah I know,
> it's weird. I'm looking after getting some more info about it, but I doubt I'll
> have time today...

Sorry disregard my bug report, I verified it's a problem with the new dracut update that triggers when a new initramfs is built, not a kernel problem. Coincidentally the two things overlapped on my system. Sorry for wasting your time.

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

As I already asked, how may I find nv50_display.c to try the patch in comment 53?

Revision history for this message
In , Ben (ben-redhat-bugs) wrote :

(In reply to comment #70)
> As I already asked, how may I find nv50_display.c to try the patch in comment
> 53?

You don't need to, it's in kernel-2.6.35.8-60.fc14 (http://koji.fedoraproject.org/koji/buildinfo?buildID=205566)

105 comments hidden view all 137 comments
Revision history for this message
John Clemens (clemej) wrote :

Ahh, this is the bug I meant.

The Fedora bug for this problem has a patch here: https://bugzilla.redhat.com/show_bug.cgi?id=537065#c53 . I've been running with the patch on my work machine which had the same problem for the past week and no problems with disappearing mouse pointers or "no space" kernel messages. Fedora is now including this patch in their kernel according to the last comment in that bug (however, the last time I checked upstream, they weren't yet).

Please consider applying this patch to the Ubuntu kernel.

106 comments hidden view all 137 comments
Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

Okay, thanks a lot!
I still have the kernel 2.6.35.6-48.fc14.x86_64.

The kernel-2.6.35.8-60 is still a release candidate. May I install it simple by downloading the rpm or it's better that I wait for the official release (is there already a date?) and then updating with yum?

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

I've now installed the newer kernel (2.6.35.8-60). I let you known, if the problem ("no space while unhiding cursor") occurs again.

Revision history for this message
In , Costantino (costantino-redhat-bugs) wrote :

I'm using the newer kernel (2.6.35.8-60) for about one month and I haven't experienced the problem above ("no space while unhiding cursor") any more.

In my opinion this problem is fixed. Thanks a lot!

Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 13 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

109 comments hidden view all 137 comments
Revision history for this message
Коренберг Марк (socketpair) wrote :

Natty, exactly the same issue.

P.S. Please update "Affects" field in this bug, I can not do that.

Revision history for this message
psypher (psypher246) wrote :

This issue is still persisting in precise pangolin. Is there any work being done on it? I have a dual screen setup. Have not yet tested it with one screen. X process idles at about 5% and spikes to 10-12% when I move the mouse.

tags: added: apport-collected precise running-unity staging
Revision history for this message
psypher (psypher246) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC665 Analog [ALC665 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ruald 2626 F.... pulseaudio
 /dev/snd/controlC0: ruald 2626 F.... pulseaudio
 /dev/snd/pcmC0D0p: ruald 2626 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0c00000 irq 57'
   Mixer name : 'Realtek ALC665'
   Components : 'HDA:10ec0665,1028046c,00100003'
   Controls : 22
   Simple ctrls : 12
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xcbefc000 irq 17'
   Mixer name : 'Nvidia GPU 11 HDMI/DP'
   Components : 'HDA:10de0011,10de0101,00100100'
   Controls : 20
   Simple ctrls : 4
DistroRelease: Ubuntu 12.04
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=d6fcab69-042c-49f7-9fb1-0f5e7f155650
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111129.1)
MachineType: Dell Inc. XPS L701X
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-generic root=UUID=4d02337e-4d2f-46d2-8ff7-6bfd4cd1fb0a ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-4.10-generic 3.2.0-rc5
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-4-generic N/A
 linux-backports-modules-3.2.0-4-generic N/A
 linux-firmware 1.62
StagingDrivers: mei
Tags: precise running-unity staging precise running-unity staging
Uname: Linux 3.2.0-4-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip kvm libvirtd lpadmin plugdev sambashare sudo
dmi.bios.date: 11/29/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.vendor: Dell Inc.
dmi.board.version: A06
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A06
dmi.modalias: dmi:bvnDellInc.:bvrA06:bd11/29/2010:svnDellInc.:pnXPSL701X:pvrA06:rvnDellInc.:rn:rvrA06:cvnDellInc.:ct8:cvrA06:
dmi.product.name: XPS L701X
dmi.product.version: A06
dmi.sys.vendor: Dell Inc.

Revision history for this message
psypher (psypher246) wrote : AcpiTables.txt

apport information

Revision history for this message
psypher (psypher246) wrote : AlsaDevices.txt

apport information

Revision history for this message
psypher (psypher246) wrote : AplayDevices.txt

apport information

Revision history for this message
psypher (psypher246) wrote : BootDmesg.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
psypher (psypher246) wrote : Card1.Codecs.codec.3.txt

apport information

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Triaged → Incomplete
tags: removed: apport-collected precise running-unity staging
penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in linux (Ubuntu Lucid):
status: Triaged → Invalid
Changed in xserver-xorg-video-nouveau (Fedora):
importance: Unknown → Medium
status: Unknown → Won't Fix
Displaying first 40 and last 40 comments. View all 137 comments or add a comment.
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.