You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Oxyd

Beginner

  • "Oxyd" started this thread

Posts: 4

Location: Czech Republic

  • Send private message

1

Friday, July 25th 2008, 5:53pm

[KDE4] OpenGL desktop compositing won't work

Hi,

I just installed KDE 4.1 on my desktop -- so far it's been working fine, except I can't get OpenGL desktop effects to work.

When I try to enable OpenGL compositing, I get no effects -- as in, the screen looks exactly as with effects disabled. On the tty from which I started X I can see:

Source code

1
2
3
kwin(3108): Couldn't find framebuffer configuration for depth 32 (no ARGB GLX visual)!
kwin(3108): Failed to initialize compositing, compositing disabled
kwin(3108): Consult http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up


Googling for this output didn't help me any -- I only found a page or two listing the KWin source file that produces this output. Following the link from the output, it seems that I have my driver set-up properly.

I've tried playing with the options in the Screen section of my xorg.conf, but with no
success. Other OpenGL apps work fine as well as other compositors,
including the KDE 3.5's one. XRender compositing works too, and I'm
using that right now -- but I'd love to get OpenGL working. :)

I'm using NVidia GeForce 7300 GT with NVidia driver version 173.14.09 on an x86_64 ArchLinux box. My xorg.conf contains this (removed things like font paths and input devices):

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Section "Module"
	Load       	"dbe"
	Load       	"extmod"
	Load       	"freetype"
	Load       	"glx"
EndSection

Section "Device"
	Identifier 	"Device0"
	Driver     	"nvidia"
	VendorName 	"NVIDIA Corporation"
EndSection

Section "Screen"
	Identifier 	"Screen0"
	Device     	"Device0"
	Monitor    	"Monitor0"
	DefaultDepth	24
	Option     	"NoLogo" "True"
	Option     	"AddARGBGLXVisuals" "True"
	Option     	"DamageEvents" "True"
	Option     	"TripleBuffer" "True"
	Option     	"HWCursor" "True"
	Option     	"AllowGLXWithComposite" "True"
	Option     	"UseEdidDpi" "False"
	Option     	"DPI" "96 x 96"
	SubSection 	"Display"
	Depth   	24
	Modes  	"1152x864"
	EndSubSection
EndSection

Section "Extensions"
	Option     	"Composite" "Enable"
	Option     	"Damage" "Enable"
	Option     	"Render" "Enable"
EndSection


2

Sunday, July 27th 2008, 10:22pm

According to your output of kwin, that seem's to want to load a configuration for 32 bit depth. And that doesn't work. Could you maybe post the output of ~/kde4/share/config/kwinrc ?
To make composite work it needs a depth of 24.

Oxyd

Beginner

  • "Oxyd" started this thread

Posts: 4

Location: Czech Republic

  • Send private message

3

Tuesday, July 29th 2008, 2:06pm

My kwinrc contains this:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[Compositing]
Enabled=true

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[Plugins]
kwin4_effect_blurEnabled=false
kwin4_effect_boxswitchEnabled=true
kwin4_effect_coverswitchEnabled=false
kwin4_effect_desktopgridEnabled=true
kwin4_effect_dialogparentEnabled=true
kwin4_effect_diminactiveEnabled=false
kwin4_effect_dimscreenEnabled=false
kwin4_effect_explosionEnabled=false
kwin4_effect_fadeEnabled=true
kwin4_effect_fallapartEnabled=false
kwin4_effect_flipswitchEnabled=false
kwin4_effect_invertEnabled=false
kwin4_effect_loginEnabled=true
kwin4_effect_logoutEnabled=true
kwin4_effect_lookingglassEnabled=false
kwin4_effect_magnifierEnabled=false
kwin4_effect_maketransparentEnabled=true
kwin4_effect_minimizeanimationEnabled=true
kwin4_effect_mousemarkEnabled=false
kwin4_effect_presentwindowsEnabled=true
kwin4_effect_scaleinEnabled=false
kwin4_effect_shadowEnabled=true
kwin4_effect_sharpenEnabled=false
kwin4_effect_showfpsEnabled=false
kwin4_effect_showpaintEnabled=false
kwin4_effect_snowEnabled=false
kwin4_effect_thumbnailasideEnabled=false
kwin4_effect_trackmouseEnabled=true
kwin4_effect_videorecordEnabled=false
kwin4_effect_wobblywindowsEnabled=false
kwin4_effect_zoomEnabled=true

4

Tuesday, July 29th 2008, 2:25pm

no, pretty useless, sry. Hmm. I hear much people complaining about Nvidia and Compositing, but since i don't use Nvidia nor Compositing, i can't say more.
Maybe someone else here can step up?

Oxyd

Beginner

  • "Oxyd" started this thread

Posts: 4

Location: Czech Republic

  • Send private message

5

Tuesday, July 29th 2008, 2:44pm

Yeah, I've heard people complaining about NVidia and compositing as well, but from what I gathered, the complains are about crappy drivers giving them unusable performance while compositing, which isn't my case. Well, thanks for your effort anyway. x)

Oxyd

Beginner

  • "Oxyd" started this thread

Posts: 4

Location: Czech Republic

  • Send private message

6

Tuesday, August 12th 2008, 12:47am

Okay, I fixed it. The problem was that I had XLIB_SKIP_ARGB_VISUALS environment variable set to "1". Unsetting it fixed the problem and now I get working OpenGL compositing with KDE 4.1.

7

Tuesday, April 7th 2009, 9:05am

I started having this problem when upgraded from 4.2.1 to 4.2.2
What could be wrong. also my keyboard/mouse didnt work at start but i had to start hald. i don´t know why

8

Tuesday, April 7th 2009, 10:28am

Upgraded Xorg with portupgrade and then i got problems with nvidia-legacy driver (173), Fetched update from nvidia´s site as there was no upgrade in ports tree. now everything works again.

Similar threads