Skip to contentSkip to conversation

New: Getting inverted colors after having launched Virtualbox with Nouveau driver

Bug 23792 [email protected] 1 participant 12 messages Sep 8, 2009 – Sep 27, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Summary: Getting inverted colors after having launched Virtualbox
with Nouveau driver
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]

Hello,

Lauching Virtualbox on my computer makes the screen get inverted/negative colors when i open new qt/kde applications. If i focus on an older windows (launched before Virtualbox), the screen goes back to normal colors, and vice versa. When the colors are inverted, my screen looks like this :
http://bbs.archlinux.org/viewtopic.php?id=77040 (it's not my thread). Restarting X solves the problem. ;)

The kernel (master branch), mesa, libdrm, xf86-video-nouveau were compiled this morming from the git repos. ;)

I got this problem for the first time about 1 month ago but I didn't really know whether this problem was related to nouveau or not...

I use KDE with compositing (via Xrender) and toggling off compositing doesn't solve the problem.

This morning i tried the NV driver, and this problem didn't occur.

My graphic card : 05:00.0 VGA compatible controller: nVidia Corporation NV41.1 [GeForce 6800] (rev a2)

Feel free to ask if you have any further questions.

Regards

Thank you in advance!

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.

A message that is not in the archive (sent off-list or not yet received): bug-23792-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

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

--- Comment #1 from Thomas PEGEOT <[email protected]> 2009-09-12 03:36:16 PST --- How can i find out where this problem comes from ? How can i debug this bad
behaviour ?

Thank you.

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.
#3 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #2 from Maarten Maathuis <[email protected]> 2009-09-12 04:03:11 PST --- At the very least give some kernel and xorg logs.

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.
#4 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #3 from Thomas PEGEOT <[email protected]> 2009-09-18 04:59:49 PST --- Created an attachment (id=29663)
--> (http://bugs.freedesktop.org/attachment.cgi?id=29663)
Dmesg before launching Virtualbox

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.
#5 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #4 from Thomas PEGEOT <[email protected]> 2009-09-18 05:00:36 PST --- Created an attachment (id=29664)
--> (http://bugs.freedesktop.org/attachment.cgi?id=29664)
Kernel log before launching Virtualbox

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.
#6 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #5 from Thomas PEGEOT <[email protected]> 2009-09-18 05:01:38 PST --- Created an attachment (id=29665)
--> (http://bugs.freedesktop.org/attachment.cgi?id=29665)
Xorg log before launching Virtualbox

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.
#7 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #6 from Thomas PEGEOT <[email protected]> 2009-09-18 05:04:53 PST --- Here are the different logs you ask for. ;)

After having launched Virtualbox, the following lines are added to the kern.log :
gentoo thomas # diff kern.log /var/log/kern.log
8936a8937,8940

Quoted 4 lines
Sep 18 13:57:16 gentoo kernel: [  349.772788] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)
Sep 18 13:57:18 gentoo kernel: [  351.947281] nouveau 0000:05:00.0: Allocating FIFO number 2
Sep 18 13:57:18 gentoo kernel: [  351.948771] nouveau 0000:05:00.0: nouveau_channel_alloc: initialised FIFO 2
Sep 18 13:57:18 gentoo kernel: [  352.103528] nouveau 0000:05:00.0: nouveau_channel_free: freeing fifo 2

Thank you in advance! ;)

Regards.

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.
#8 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #7 from Thomas PEGEOT <[email protected]> 2009-09-26 04:55:34 PST --- Disabling opengl in Virtualbox solved the problem. ;) I even didn't know that
it was enabled ... :(

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.
#9 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #8 from Pekka Paalanen <[email protected]> 2009-09-26 07:04:12 PST --- (In reply to comment #7)

Quoted 2 lines

Disabling opengl in Virtualbox solved the problem. ;) I even didn't know that it was enabled ... :(

Were you using the Nouveau Gallium/DRI driver or swrast?

The description sounds like VirtualBox sets up a window palette, a feature from the dark ages. X desktop was 256-color so it used a palette. If an application set up its own palette, all other windows would draw with "bad" colors while the application had focus. IIRC.
Is you X in 256-color paletted mode? I don't know if we even support that, so all this is unlikely.

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.
#10 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #9 from Thomas PEGEOT <[email protected]> 2009-09-27 04:47:15 PST ---

Quoted 1 line

Were you using the Nouveau Gallium/DRI driver or swrast?

Actually, I've been using the Mesa ebuild from the X11 overlay for a while with gallium support enabled, as well as Nouveau (VIDEO_CARDS="nouveau)". What is swrast?

Quoted 1 line

Is you X in 256-color paletted mode? I don't know if we even support that, so

all this is unlikely.
According to xdpyinfo, the default number of colormap cells is 256. Is that what you want to know ? If i'm wrong, just tell me where i can find this and i'll tell you. ;)

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.
#11 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

Pekka Paalanen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #10 from Pekka Paalanen <[email protected]> 2009-09-27 05:13:38 PST --- (In reply to comment #9)

Quoted 2 lines

Actually, I've been using the Mesa ebuild from the X11 overlay for a while with gallium support enabled, as well as Nouveau (VIDEO_CARDS="nouveau)".

Okay, that is enough to make this report invalid. We do not take Gallium3D bugs yet.

Quoted 1 line

What is swrast?

The Mesa software rasterizer, the only supported OpenGL renderer for Nouveau at this time. glxinfo would say:
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer

Quoted 3 lines

According to xdpyinfo, the default number of colormap cells is 256. Is that what you want to know ? If i'm wrong, just tell me where i can find this and i'll tell you. ;)

"Depth of root window". I bet you would know if you were in 256-color mode. Ever looked at 256-color gifs? Not to mention that anything OpenGL would probably refuse to work.

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.
#12 lore raw

[Bug 23792] Getting inverted colors after having launched Virtualbox with Nouveau driver

In reply to a message not in the archive

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

--- Comment #11 from Thomas PEGEOT <[email protected]> 2009-09-27 12:34:19 PST ---

Quoted 2 lines

Okay, that is enough to make this report invalid. We do not take Gallium3D bugs yet

I think I had the same problem even when gallium was disabled ... but i'm not sure about it. If i've time, i'll try it again. ;)
Anyway, i don't need OpenGL support in Virtualbox, disabling it is fine for me. Even disabling Gallium is ok.

Quoted 3 lines

"Depth of root window". I bet you would know if you were in 256-color mode. Ever looked at 256-color gifs? Not to mention that anything OpenGL would probably refuse to work.

Because of my English, i definitely missed the point about the 256-color mode. You're right, i would have known if i were using this crappy mode. :p

depth of root window: 24 planes

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.