FS#11351 - KDE4 and desktop effects results in black screen

Attached to Project: Arch Linux
Opened by Bráulio Barros de Oliveira (brauliobo) - Saturday, 30 August 2008, 18:10 GMT
Last edited by Jan de Groot (JGC) - Sunday, 30 November 2008, 14:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity High
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

This bug was already reported at:
http://bbs.archlinux.org/viewtopic.php?id=53214
http://bbs.archlinux.org/viewtopic.php?id=54032

I've come with this bug report because I've (more or less) found the solution to it.
After trying tons of things I've decided to rebuild the xorg-server package.
Surprise! After disabling all the patches to it (ftp://ftp.archlinux.org/other/xorg-server/xorg-server-patches-1.4.2-1.tar.bz2) the problem disapear.

Now we must find which patch is causing the problem... The PKGBUILD is attached.
Anyone could give a sugestion on which patch I should disable?

System:
ArchLinux up-to-date packages
DELL XPS M1330 with intel GMA965
   PKGBUILD (6.5 KiB)
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 30 November 2008, 14:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed with latest xorg-server and related packages that moved to extra.
Comment by Bráulio Barros de Oliveira (brauliobo) - Saturday, 30 August 2008, 18:24 GMT
although I could fix the problem, KDE with desktop effects is very slow (e.g. firefox scrolling)
Comment by Maik Beckmann (Salamander1978) - Sunday, 31 August 2008, 17:46 GMT
The PKGBUILD I attached lists all patches which would be applied by quilt for xorg-server-1.4.2. Commenting out the very first patch xorg-mesa-source.diff makes the kde4 OpenGL backend happy.
   PKGBUILD (6.9 KiB)
Comment by Bráulio Barros de Oliveira (brauliobo) - Sunday, 31 August 2008, 21:18 GMT
great! without only this patch X is faster than before
Comment by Jan de Groot (JGC) - Sunday, 31 August 2008, 21:48 GMT
Could you test xorg-server from testing (only try when not using fglrx), I don't intend to fix anything in xorg-server 1.4.2 anymore because all work is done on xorg-server 1.5 now.
Comment by Bráulio Barros de Oliveira (brauliobo) - Sunday, 31 August 2008, 22:07 GMT
sure! i'm pretty anxious to use it.
Comment by Bráulio Barros de Oliveira (brauliobo) - Sunday, 31 August 2008, 22:13 GMT
could not find it on abs repository and neither on archlinux ftp mirror :(
Comment by Bráulio Barros de Oliveira (brauliobo) - Sunday, 31 August 2008, 22:17 GMT
just know why, I'm using arch64 :(
Comment by Jan de Groot (JGC) - Sunday, 31 August 2008, 22:19 GMT
amd64 packages will follow later this week. I haven't had time to build all these drivers for that architecture yet.
Comment by Maik Beckmann (Salamander1978) - Sunday, 31 August 2008, 22:34 GMT
I'm running x86-64 on my desktop box (ati card driven by fglrx) and i686 on my Laptop (intel chipset). I've updated abs but testing/xorg-server contains 1.4.2 right now. I'll try it tomorrow. Good Night.
Comment by Maik Beckmann (Salamander1978) - Sunday, 31 August 2008, 23:15 GMT
Via a sed one-liner.
   PKGBUILD (3.7 KiB)
Comment by Maik Beckmann (Salamander1978) - Sunday, 31 August 2008, 23:50 GMT
Argh, the sed line is wrong. Please ignore the privious PKGBUILD I've uploaded.
   PKGBUILD (3.7 KiB)
Comment by Maik Beckmann (Salamander1978) - Monday, 01 September 2008, 10:01 GMT
Unfortunately I'm not able to test the xorg-server-1.5, since it wants to pull a lot lib versions not in stable and a lack of time to setup a new partion for arch-testing right now. Sorry.

I promise to change this ASAP.
Comment by Bráulio Barros de Oliveira (brauliobo) - Monday, 01 September 2008, 20:23 GMT
just installed testing's packages. bad news: kwin* from kde 4.1.1 (arch's packages) got completely crazy, drawing crazy on the screen. kwin from kde-svn (built today) just ignored the option and kept with no effects; xrender effects worked fine on this kwin

also, could not make the touchpad work with the synaptics driver (tapping doesn't work anymore)

* with desktop effects
Comment by Bráulio Barros de Oliveira (brauliobo) - Monday, 01 September 2008, 20:28 GMT
also, glxgears give me this (and warning and low fps):
[braulio@brauliopresto ~]$ glxgears
Failed to initialize TTM buffer manager. Falling back to classic.
299 frames in 5.0 seconds = 59.757 FPS
310 frames in 5.0 seconds = 61.821 FPS
312 frames in 5.0 seconds = 62.225 FPS
Comment by Jan de Groot (JGC) - Monday, 01 September 2008, 21:17 GMT
glxgears performance is normal: you're seeing enabled vsync. Your TFT refresh rate is set to 60Hz, so your FPS is limited to 60fps. The warning is also not a problem. What videochip do you have? G965? I've got this working without problems on a 945GM (haven't tried G33 yet).
Comment by Bráulio Barros de Oliveira (brauliobo) - Monday, 01 September 2008, 21:31 GMT
uhm, great. no waste of energy.
yes, i'm using gma965.

also, do you know about the touchpad? i really miss tapping :(

thank you
Comment by Bráulio Barros de Oliveira (brauliobo) - Monday, 01 September 2008, 21:33 GMT
ah, just remembered. googleearth now doesn't work. it reports some problem with the graphics card, but don't say anything specifically
Comment by Bráulio Barros de Oliveira (brauliobo) - Tuesday, 02 September 2008, 11:54 GMT
youtube video playback is pretty strange too.
Comment by André Fettouhi (A.Fettouhi) - Wednesday, 03 September 2008, 14:09 GMT
I can confirm that desktops effect do work with the OpenGL engine on a HD 2400 XT ATI card using catalyst 8.8 and recompiled xorg-server 1.4.2 package where the mesa patch has been removed.

Regards

André
Comment by Bráulio Barros de Oliveira (brauliobo) - Wednesday, 03 September 2008, 21:27 GMT
incredible, X isn't getting better, it leaks more memory than 1.4
sometimes i wish to use xfree
Comment by Fabian Schölzel (Doc Angelo) - Sunday, 05 October 2008, 14:27 GMT
I can also confirm that removing the mesa patch let the desktop effects work with OpenGL.
Device: ATI Radeon HD 4850; Driver: Catalyst 8.8
Comment by Matthias Dienstbier (fs4000) - Wednesday, 22 October 2008, 20:22 GMT
With xorg-server upgrade 1.5.2-1 -> 1.5.2-3 the problem reappears.
Comment by Raul Silva (raul_nds) - Thursday, 23 October 2008, 12:31 GMT
^^

Confirmed
Comment by Raul Silva (raul_nds) - Friday, 24 October 2008, 15:31 GMT
Removing the patches from the PKGBUILD didn't work for me =(
Comment by Matthias Dienstbier (fs4000) - Saturday, 25 October 2008, 20:14 GMT
I was wrong, libdrm (2.3.1-1 -> 2.4.0-1) causes the problem now. xorg-server package is fine.
Comment by Jan de Groot (JGC) - Saturday, 25 October 2008, 20:28 GMT
Can you try to rebuild xorg-server against libdrm 2.4.0?
Comment by Matthias Dienstbier (fs4000) - Saturday, 25 October 2008, 22:05 GMT
Just tried it, but changed nothing.
Comment by Raul Silva (raul_nds) - Saturday, 25 October 2008, 22:38 GMT
Any dirty fixes? XRender is terribly slow
Comment by Jan de Groot (JGC) - Friday, 31 October 2008, 08:32 GMT
Does lib drm 2.4.1 fix this issue?
Comment by Matthias Dienstbier (fs4000) - Saturday, 01 November 2008, 17:28 GMT
On x86_64 it doesn't work at all:
X: symbol lookup error: /usr/lib/xorg/modules/drivers//intel_drv.so: undefined symbol: intel_bufmgr_fake_init

In everything.log the following message appears:
[drm:i915_getparam] *ERROR* Unknown parameter 5
Comment by Matthias Dienstbier (fs4000) - Saturday, 01 November 2008, 17:43 GMT
Sorry, needed to upgrade xf86-video-intel as well, but problem persists.
Comment by Marcel Ruegenberg (subw) - Saturday, 08 November 2008, 14:58 GMT
I can confirm that the PKGBUILD with the sed line works. Performance is not exactly good though.
Comment by Sagattarii (sagattarii) - Monday, 10 November 2008, 15:41 GMT
Please upload the new version of xorg 1.4 to the repository. I think most users dont like to recompile xorg on their own.

Loading...