New: Double mouse cursor on nv4
http://bugs.freedesktop.org/show_bug.cgi?id=14820
Summary: Double mouse cursor on nv4
Product: xorg
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Created an attachment (id=14833)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14833)
Xorg log file
With Randr1.2 enabled, I get two mouse cursors after a few mode changes. One that moves (sw emulated cursor) and one that doesn't (presumably the hw cursor sitting there).
01:00.0 0300: 10de:002d (rev 15)
01:00.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #1 from Stephane Marchesin <[email protected]> 2008-03-04 15:10:20 PST --- Same on this card:
00:08.0 0300: 10de:002c (rev 15)
00:08.0 VGA compatible controller: nVidia Corporation NV6 [Vanta/Vanta LT] (rev
15)
The 2nd cursor seems to appear after the first mode change, i.e. after xrandr -s 1 for example. The hw cursor is the default X cursor (X shaped) and the sw cursor is my normal gnome cursor and works fine.
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #2 from Stephane Marchesin <[email protected]> 2008-03-04 15:11:52 PST --- Created an attachment (id=14834)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14834)
Log file on the 2nd card
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #3 from Stephane Marchesin <[email protected]> 2008-03-04 15:43:29 PST --- I also get this on an nv10. On that card, the hardware cursor is wrong, but
that's for another bug.
01:00.0 0300: 10de:0101 (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV10DDR [GeForce 256 DDR] (rev 10)
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #4 from Stephane Marchesin <[email protected]> 2008-03-04 15:44:06 PST --- Created an attachment (id=14838)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14838)
Log file with the nv10
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #5 from Maarten Maathuis <[email protected]> 2008-03-04 15:45:41 PST --- Do you also get this when forcing a SWCursor on a NV11+ card?
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #6 from Stephane Marchesin <[email protected]> 2008-03-05 11:11:52 PST --- (In reply to comment #5)
Quoted 2 lines
Do you also get this when forcing a SWCursor on a NV11+ card?
No I don't.
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #7 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-03-06 14:17:01 PST --- Created an attachment (id=14896)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14896)
1st option
First of two possible fixes. This one definitely does the right thing, but is probably overkill.
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] Double mouse cursor on nv4
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
--- Comment #8 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-03-06 14:18:36 PST --- Created an attachment (id=14897)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14897)
2nd option
A less heavyweight solution, but I don't know for sure that GetSpriteCursor is always going to do the right thing. This stuff really wants fixing in the xserver.
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 14820] randr 1.2 always shows the hwcursor after a mode change
In reply to a message not in the archivehttp://bugs.freedesktop.org/show_bug.cgi?id=14820
Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|nouveau-PD4FTy7X32lNgt0PjOBp9/[email protected]|[email protected] |g | Component|Driver/nouveau |Server/general Summary|Double mouse cursor on nv4 |randr 1.2 always shows the | |hwcursor after a mode change Version|unspecified |git
--- Comment #9 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-03-06 14:47:20 PST --- Original nouveau bug repurposed for xserver issue.
After an xrandr mode change, drivers tend to call xf86_reload_cursors in the commit function. This in turn will show a hw cursor, if configured. This is not the correct behaviour for hardware that cannot do alpha cursors natively, if the cursor is an alpha cursor at the time; two cursors (one hardware (2 colour), one software (alpha)) show up, when the hardware cursor should be hidden.
In the nouveau case, the 1st option in comment 7 has been applied to the driver as a work-around which takes a trip through xf86CursorSetCursor which sorts things out.
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.