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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
Compositing manager notes.
==========================
xfwm4 now features a compositing manager. This code is new and has received only
a moderate amount of testing, so it's disabled by default.
So, if you want to stay safe, keep the compositor disabled...
If you still want to try the compositor extensions with xfwm4, here follows how
to enable the compositing manager in xfwm4.
1) Enabling the compositor manager in xfwm4
-------------------------------------------
To enable the compositing manager in xfwm4, add --enable-compositor when running
the configure script.
eg:
sh configure --prefix=/usr --sysconfdir=/etc --enable-compositor
[...]
checking for xcomposite >= 1.0 xfixes xdamage xrender... yes
checking COMPOSITOR_CFLAGS... -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/X11R6/include
checking COMPOSITOR_LIBS... -L/usr/X11R6/lib -lXcomposite -lXdamage -lXfixes -lXrender -lX11 -lXext
[...]
2) Enabling the compositor extension in the Xserver
---------------------------------------------------
At this time, the compositor extensions are included in the X.org Xserver. I do
not know if there are any plan to include these extension in XFree86, nor when
it's planned.
The following tips apply to the X.org Xserver X11R6.8.x
- Edit the xorg.conf configure file (usually in /etc/X11/xorg.conf)
- Add the following section:
Section "Extensions"
Option "Composite" "Enable"
EndSection
- Save the configuration file and restart the Xserver.
3) Troubleshooting
------------------
The composite extensions in X.org look fairly new and there are several problems
that may arise when using the compositing manager in xfwm4:
- Windows aren't correctly refreshed
- Scrolling may leave glitches
- Xv and composite extension don't always play nice together
- Xinerama and composite extension have problems too
All this is not specifically related to the xfwm4's compositing manager. It's
not worth filling bugs in Xfce's bugzilla.
If you still think you have found a bug in xfwm4 compositing manager, here
are a few hints that could help categorizing the problem:
- Does it happen when xfwm4 compositor is disabled?
ie, when running "xfwm4 --compositor=off"
- Does it happen with xcompmgr?
ie, when running "xfwm4 --compositor=off; xcompmgr -c"
- Does it show with the Xserver embedded compositor manager?
ie, when running "xfwm4 --compositor=auto"
If the problem with xcompmgr and/or with the Xserver compositor, then there
is a good chance that the problem is not with xfwm4...
4) Tips
-------
The following tips are from my own experience. I am not connected to any graphic
card vendor.
If you have usefull tips to improve XRender performance for your favorite video
card, feel free to submit your own tips.
4.1) NVidia
~~~~~~~~~~~
The XRender extension can be very CPU consuming. The NVidia binary closed source
drivers are able to perform the rendering in hardware.
If you have an NVidia video card and the NVidia binary closed source drivers,
you can enable the XRender in hardwareby adding the following option to your
xorg.conf file:
Option "RenderAccel" "true"
in the device section:
eg:
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
Option "RenderAccel" "true"
EndSection
|