Bug 166446 - Black and White when turning on Desktop Effects (Catalyst)
Summary: Black and White when turning on Desktop Effects (Catalyst)
Status: CLOSED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-13 14:15 UTC by Marcel Wirth
Modified: 2008-09-04 11:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the problem (37.07 KB, image/jpeg)
2008-07-13 14:16 UTC, Marcel Wirth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Wirth 2008-07-13 14:15:36 UTC
Version:            (using KDE 4.0.83)
Installed from:    Unspecified Linux
OS:                Linux

Whenever I try to turn on Desktop Effects all I get is black and white windows... Take a look at the Screenshot. Using Arch with kdemod4 (kdemod4-4.0.98.1-1). Catalyst driver (8.6-1). Radeon HD (r600) chipset. xorg-server 1.4.2-1. Tried a lot of different xorg configuration without luck.
Comment 1 Marcel Wirth 2008-07-13 14:16:49 UTC
Created attachment 26080 [details]
Screenshot of the problem
Comment 2 Michael 2008-07-23 15:17:39 UTC
Try to downgrade catalyst driver to 8.5, 8.6+ causes some trouble on some configurations
Comment 3 Marcel Wirth 2008-07-23 22:37:05 UTC
I have this problem now for ages. So downgrading the driver will not do the trick!
Comment 5 Marcel Wirth 2008-07-24 15:48:18 UTC
I did try change my xorg-conf a thousend time. Also I tried to disable effects to see if a specific one causes the trouble. As you can guess nothing worked...
Comment 6 André Fettouhi 2008-08-06 19:18:57 UTC
I can confirm this bug with the stable KDE 4.1. I am also using catalyst 8.6 with Arch (32 bit, i686) (KDEmod4) and the same thing happens when I turn on the desktop effects. I have a ATI HD 2400XT card I use.

Here is my xorg.conf file

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option        "AIGLX" "true"
EndSection

Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "dri"
    Load  "record"
    Load  "dbe"
    Load  "glx"
    Load  "extmod"
    Load  "xtrap"
    Load  "freetype"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
    Option        "XkbLayout" "dk"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
    HorizSync    28.0 - 72.0
    VertRefresh  43.0 - 60.0
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "fglrx"
    VendorName  "ATI Technologies Inc"
    BoardName   "Unknown Board"
    Option        "VideoOverlay" "on"
    Option        "OpenGLOverlay" "off"
    Option        "XaaNoOffscreenPixmaps" "true"
    Option        "UseFastTLS" "2"
    Option        "TexturedVideo" "true"
    Option        "TexturedVideoSync" "true"
    Option        "Textured2D" "on"
    Option        "TexturedXrender" "on"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1440x900"
    EndSubSection
EndSection

Section "DRI"
    Group        0
    Mode         0666
EndSection

Section "Extensions"
    Option        "Composite" "Enable"
    Option        "RENDER" "Enable"
    Option        "DAMAGE" "Enable"
    Option        "XVideo" "Enable"
EndSection
Comment 7 Vladimir V. Varankin 2008-08-06 20:34:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Martin Flöser 2008-08-06 22:14:48 UTC
Have you tried to use XRender instead of OpenGL as compositing mode? If yes, how does it look like?

Have you tried Compiz? Does that work?
Comment 9 André Fettouhi 2008-08-06 23:00:33 UTC
Compiz works. Xrender works also but it is slow as hell, for example wobbly windows aren't wobbly at all with xrender turned on.

Regards

André
Comment 10 Anton Statutov 2008-08-14 18:33:44 UTC
The same problem also presents on Intel 865G videocard. 

kde-4.1
xf86-video-intel-2.4.0
xorg-7.3

As I see videocard model is no matter, so please remove "catalyst" from bug title.
Comment 11 Anton Statutov 2008-08-14 18:35:03 UTC
Forgot to say. FreeBSD 7.0.
Comment 12 André Fettouhi 2008-08-15 15:13:42 UTC
So only people with nvidia cards can get the compositing thing (OpenGL) running then? Or are any nvidia people having issues with the desktop effects?

Regards

André
Comment 13 Markus Strobl 2008-08-15 15:26:13 UTC
Be sure to remove this line from your Xorg.conf:

Option        "XaaNoOffscreenPixmaps" "true" 

I had the exact same problem and after I removed that line desktop effect do work. I'm using an ATI X850, fglrx, Gentoo AMD64 and KDE4.1.

Comment 14 André Fettouhi 2008-08-15 15:45:48 UTC
Are you running the effects with opengl or xrender?

Regards

André
Comment 15 Anton Statutov 2008-08-15 15:51:07 UTC
> Option        "XaaNoOffscreenPixmaps" "true" 
I had this problem before I added this line, and after adding it nothing had changed.
Comment 16 Markus Strobl 2008-08-15 16:00:39 UTC
Andre: I'm running OpenGL. Relevant sections from my xorg.conf:

Section "ServerLayout"
        Identifier     "Simple Layout"
        Screen      0  "ati" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"
        Option          "AIGLX"         "true"
EndSection

Section "ServerFlags"
        Option          "AIGLX"
EndSection

Section "Extensions"
        Option "Composite" "Enable"
         Option "DAMAGE" "true"
EndSection

Section "Device"
        Identifier  "X800"
        Driver      "fglrx"
        Option      "no_accel" "no"
        Option      "no_dri" "no"
        Option      "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
        Option      "Capabilities" "0x00000000"
        Option      "CapabilitiesEx" "0x00000000"
        # === Video Overlay for the Xv extension ===
        Option      "VideoOverlay" "on"
        # === OpenGL Overlay ===
        Option      "OpenGLOverlay" "on"
        # === Center Mode (Laptops only) ===
        Option      "CenterMode" "off"
        Option      "UseInternalAGPGART" "yes"
        Option      "ForceGenericCPU" "no"
        Option      "XAANoOffscreenPixmaps" "false"
EndSection
Comment 17 André Fettouhi 2008-08-16 09:39:03 UTC
I just tried your xorg.conf setup with my card and the minute I turn on the desktop effects I get the black and white screen. So this is still a no go for me :-(.

Regards

André
Comment 18 Markus Strobl 2008-08-16 16:44:00 UTC
Bummer.Can you try logging in as a new user and then turning effects on? I had problems after updating KDE4 (4.098-4.0.99, and again 4.0.99 to 4.1).My KDE4 user is "throw-away" so I deleted the ~.kde directory, logged in again and then effects worked.   
Comment 19 André Fettouhi 2008-08-16 16:59:07 UTC
Tried that also but it is a no go :(.

Regards

André
Comment 20 Markus Strobl 2008-08-16 18:27:51 UTC
I took some updated 4.1 packages recently and when I logged in to KDE4 the black screen problem was back. After that I did the following:

1) Logged in to 3.5 as another user. Deleted the KDE4 users .kde and .kde4.1 directories.

2) Back to KDE4, desktop appears normally. Right click the desktop and pull up desktop settings. Right click on window border and select configure windows. At this point the computer hard-locked, had to use reset button to reboot!

3) After re-boot, logged in again as KDE4. Same actions as in step 2, but this time configure window dialog appeared normally.

4) Turned on desktop effects which are working. No black screen. 

So something is definitely broken here. What I don't know.  
Comment 21 Marcel Wirth 2008-08-17 13:10:28 UTC
Since the release of kde4.1 the problem has changed somewhat... I do not get any black screen anymore. But to switch on the effects just do not take any effect. The system does not inform me that something went wrong. It even asks me if I want to keep the change. But there is no change no matter I have choosen XRender (which worked before more or less ) or OpenGL...

BTW I did try any suggestion here without result...
Comment 22 Franz 2008-08-23 16:40:15 UTC
Hi,
i have this issue on ARch's KDE 4.1, Radeon HD2600 Mobility. When i click apply on desktop effects page, i see the same effect and these lines appear in .xsession-errors:

kwin: X Error (error: GLXUnsupportedPrivateRequest[GLX+8], request: X_GLXVendorPrivateWithReply[GLX+17], resource: 0x1000a)
kwin: X Error (error: GLXUnsupportedPrivateRequest[GLX+8], request: X_GLXVendorPrivateWithReply[GLX+17], resource: 0x1000a)
Comment 23 André Fettouhi 2008-08-29 18:59:39 UTC
Has anyone tried the latest branch of KDE 4.1, i.e. 4.1.1? It should have been tagged yesterday.

Regards

André
Comment 24 André Fettouhi 2008-09-01 20:46:40 UTC
I just tested the desktop effects with the latest ATI fglrx drivers (8.8) and the new KDE 4.1.1 and OpenGL still gives a black screen when turning on the desktop effects. XRender works but not all effects work with XRender plus it is slower but not as slow as it was with KDE 4.1, so it is usuable. Still it is irritating as hell that the desktop effects don't work with OpenGL. It's the reason why I don't switch to KDE4 at the moment.
Comment 25 Marcel Wirth 2008-09-04 11:07:09 UTC
Ok it was not a KDE specific problem but a ARCH-Specific. Solution can be found here: http://bugs.archlinux.org/task/11351

Comment 26 Anton Statutov 2008-09-04 11:15:23 UTC
This problem still exists on FreeBSD 7.0. I don't think this (http://bugs.archlinux.org/task/11351) is solution. It don't give an answer to what this problem is related.
Comment 27 Marcel Wirth 2008-09-04 11:20:33 UTC
Of course it does: The problem is a patch applied to xorg-server
Applying xorg-mesa-source.diff is causing the troubles. Maybe it is the same problem for FreeBSD maybe it is not ;)