[Résolu] Installation compiz-fusion sur Lenny

Bonjour à tous,

Je viens d’installer une Lenny depuis un netinstall sur un Thinkpad T61 avec Gnome comme environnement.

J’en suis à l’installation et au parmétrage de compiz-fusion

J’ai utilisé les dépôts de shame.tuxfamily.org et j’ai installé compiz-fusion-gnome.

Le driver nvidia propriétaire me semble correctement installé mais je rencontre le problème suivant lorsque je lance compiz-manager depuis la console administrateur :

lpe-tux:/home/marc# compiz-manager Checking for Xgl: not present. Detected PCI ID for VGA: 01:00.0 0300: 10de:040c (rev a1) (prog-if 00 [VGA controller]) Checking for texture_from_pixmap: present. Checking for non power of two support: present. Checking for Composite extension: present. Comparing resolution (1680x1050) to maximum 3D texture size (8192): Passed. Checking for nVidia: present. Checking for FBConfig: present. Checking for Xgl: not present. Starting emerald GConf backend: There is an unsupported value at path /apps/compiz/plugins/wobbly/screen0/options/friction. Settings from this path won't be read. Try to remove that value so that operation can continue properly. GConf backend: There is an unsupported value at path /apps/compiz/plugins/wobbly/screen0/options/spring_k. Settings from this path won't be read. Try to remove that value so that operation can continue properly. GConf backend: There is an unsupported value at path /apps/compiz/plugins/scale/allscreens/options/initiate_edge. Settings from this path won't be read. Try to remove that value so that operation can continue properly.

Malgré tout, j’obtiens des effets 3D de compiz mais bon…

Le xorg.conf un peu flou il est vrai :

[code]# xorg.conf (X.Org X Window System server configuration file)

This file was generated by dexconf, the Debian X Configuration tool, using

values from the debconf database.

Edit this file with caution, and see the xorg.conf manual page.

(Type “man xorg.conf” at the shell prompt.)

This file is automatically updated on xserver-xorg package upgrades only

if it has not been modified since the last upgrade of the xserver-xorg

package.

If you have edited this file but would like it to be automatically updated

again, run the following command:

sudo dpkg-reconfigure -phigh xserver-xorg

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option “XkbRules” "xorg"
Option “XkbModel” "pc105"
Option “XkbLayout” "fr"
Option “XkbVariant” "latin9"
EndSection

#Section “InputDevice”

Identifier “Configured Mouse”

Driver “mouse”

#EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option “Device” "/dev/input/mice"
Option “Protocol” "ExplorerPS/2"
Option “Emulate3Buttons” "on"
Option “Emulate3TimeOut” "50"
Option “EmulateWheel” "on"
Option “EmulateWheelTimeOut” "200"
Option “EmulateWheelButton” "2"
Option “YAxisMapping” "4 5"
Option “XAxisMapping” "6 7"
Option “ZAxisMapping” "4 5"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver “nvidia”
#Option “XAANoOffscreenPixmaps” "true"
Option “AddARGBGLXVisuals” "true"
Option “AllowGLXWithComposite” "true"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
#Option “AddARGBGLXVisuals” “True”
#Option “DisableGLXRootClipping” "true"
EndSection

Section “ServerLayout”
#Option “AIGLX” "true"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

#Section “DRI”

Mode 0666

#EndSection

Section "Extensions"
Option “Composite” "Enable"
EndSection
[/code]

Un petit coup de pouce serait le bienvenu, et merci d’avance.

xgl est-il installé?

Si ce n’est pas le cas, il ne sert à rien de le déclarer dans xorg.conf

Note bien que s’il est installé, ce n’est pas la peine de le déclarer non plus. Voici mon xorg.conf:

[code]# xorg.conf (X.Org X Window System server configuration file)

This file was generated by dexconf, the Debian X Configuration tool, using

values from the debconf database.

Edit this file with caution, and see the xorg.conf manual page.

(Type “man xorg.conf” at the shell prompt.)

This file is automatically updated on xserver-xorg package upgrades only

if it has not been modified since the last upgrade of the xserver-xorg

package.

If you have edited this file but would like it to be automatically updated

again, run the following command:

sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option “XkbRules” "xorg"
Option “XkbModel” "pc105"
Option “XkbLayout” "fr"
Option “XkbVariant” "latin9"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
EndSection[/code]

Très minimaliste comme tu peux voir, mais tout fonctionne, y compris xgl.

Attention ! Tu confonds XGL et GLX.

XGL est un serveur X conçu, développé par Novell, pour prendre avantage des technologies comme l’OpenGL. [1].
Son développement est arrêté en faveur d’AIGLX [2].

GLX est une extension du serveur X qui permet la communication entre X et l’OpenGL [3].
nvidia-glx est simplement un paquet Debian contenant les bibliothèques (OpenGL, extension GLX, etc.) nécessaires au bon fonctionnement du pilote NVIDIA.

[1] http://fr.wikipedia.org/wiki/Xgl
[2] http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=d15b3790307053587df8daed1936ff6923881b63
[3] http://fr.wikipedia.org/wiki/GLX

Je ne comprends pas très bien.

Xgl n’est à priori pas installé puisque j’ai le retour suivant dans la console où je lance compiz-manager à présent :

marc@lpe-tux:~$ compiz-manager Checking for Xgl: not present. Detected PCI ID for VGA: 01:00.0 0300: 10de:040c (rev a1) (prog-if 00 [VGA controller]) Checking for texture_from_pixmap: present. Checking for non power of two support: present. Checking for Composite extension: present. Comparing resolution (1680x1050) to maximum 3D texture size (8192): Passed. Checking for nVidia: present. Checking for FBConfig: present. Checking for Xgl: not present. Starting emerald

Pourtant :

lpe-tux:/home/marc# apt-get install nvidia-glx -s Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait nvidia-glx est déjà la plus récente version disponible. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

J’ai installé le driver nvidia via module-assistant au départ.

j’ai modifié mon xorg.conf comme suit :

[code]Section “Module”
#Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option “XkbRules” "xorg"
Option “XkbModel” "pc105"
Option “XkbLayout” "fr"
Option “XkbVariant” "latin9"
EndSection

#Section “InputDevice”

Identifier “Configured Mouse”

Driver “mouse”

#EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option “Device” "/dev/input/mice"
Option “Protocol” "ExplorerPS/2"
Option “Emulate3Buttons” "on"
Option “Emulate3TimeOut” "50"
Option “EmulateWheel” "on"
Option “EmulateWheelTimeOut” "200"
Option “EmulateWheelButton” "2"
Option “YAxisMapping” "4 5"
Option “XAxisMapping” "6 7"
Option “ZAxisMapping” "4 5"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver “nvidia”
#Option “XAANoOffscreenPixmaps” “true”
#Option “AddARGBGLXVisuals” “true”
#Option “AllowGLXWithComposite” "true"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor “Configured Monitor”
#DefaultDepth 24
#Option “AddARGBGLXVisuals” “True”
#Option “DisableGLXRootClipping” "true"
EndSection

Section “ServerLayout”
#Option “AIGLX” "true"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

#Section “DRI”

Mode 0666

#EndSection

#Section “Extensions”

Option “Composite” “Enable”

#EndSection
[/code]

Les effets 3D fonctionnent, mais le terminal ou je lance compiz-manager ne se referme pas.
Est-ce normal ?

@Desintegr

Désolé, on a posté en même temps.

Comment activer AIGLX ?

Il est activé par défaut.

Le problème vient de ta configuration GConf.
Je te conseille de la réinitialiser (pour ce qui concerne Compiz) comme indiqué (au moins les entrées qui posent problème) avec l’éditeur gconf : gconf-editor

J’ai bien regardé avec gfconf-editor, mais je ne vois rien de particulier.
J’ai lancé compiz brute d’installation, je n’ai pas touché aux paramètres.

Quelqu’un aurait-il une piste ?

Perso, je sèche…

Comme l’a très bien expliqué Desintegr :

[quote=“Desintegr”]XGL est un serveur X conçu, développé par Novell, pour prendre avantage des technologies comme l’OpenGL. [1].
Son développement est arrêté en faveur d’AIGLX [2].[/quote]

Expliqué autrement :

Avant, pour pouvoir utiliser compiz, beryl et cie (cube + effet 3D), il fallait ajouter au serveur X un composant appelé XGL. C’était lourd car c’est comme si il y avait 2 serveurs d’affichage qui tournaient.
Les développeurs de xorg ont intégré au serveur d’affichage AIGLX ce qui rend inutile XGL.
Pour avoir AIGLX, il faut utiliser les drivers inclus dans le serveur d’affichage Xorg comme par exemple les drivers libres d’ATI ou ceux d’Intel intégrés dans Xorg.

Impossible d’utiliser AIGLX avec des drivers proprios. Ce n’est plus le cas avec les nouvelles ATI, mais avec certaines anciennes cartes, il faut encore utiliser XGL si on utilise le driver proprio d’ATI.

Toi, tu as une carte nVidia. Pas d’AIGLX non plus mais ce n’est pas grave car le driver proprio nVidia intègre nativement tout ce qu’il faut pour avoir les effets 3D.

[quote=“Aboulafia”]/home/marc# compiz-manager
Checking for Xgl: not present.
Detected PCI ID for VGA: 01:00.0 0300: 10de:040c (rev a1) (prog-if 00 [VGA controller])
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1680x1050) to maximum 3D texture size (8192): Passed.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present. [/quote]

Comme tu as nVidia, le fait qu’xgl soit absent, on s’en fout.

Concernant cette erreur :

[quote=“Aboulafia”]GConf backend: There is an unsupported value at path /apps/compiz/plugins/wobbly/screen0/options/friction. Settings from this path won’t be read. Try to remove that value so that operation can continue properly.
GConf backend: There is an unsupported value at path /apps/compiz/plugins/wobbly/screen0/options/spring_k. Settings from this path won’t be read. Try to remove that value so that operation can continue properly.
GConf backend: There is an unsupported value at path /apps/compiz/plugins/scale/allscreens/options/initiate_edge. Settings from this path won’t be read. Try to remove that value so that operation can continue properly.[/quote]

Fait comme Desintegr t’a dit, tu ouvre gconf-editor et tu modifies les sections qui posent problème. Encore que, comme les effets 3D fonctionnent selon tes dires, ces messages ne sont pas très importants AMA.

Par contre, un truc qui me chagrine :

NON !!! On n’ouvre jamais d’applications graphiques en root !!!

Oups, c’est vrai que j’avais oublié cette règle d’or

Finalement j’ai trouvé le problème qui venait de ma configuration xorg.conf

En modifiant comme suit :

[code]Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option “XkbRules” "xorg"
Option “XkbModel” "pc105"
Option “XkbLayout” "fr"
Option “XkbVariant” "latin9"
EndSection

#Section “InputDevice”

Identifier “Configured Mouse”

Driver “mouse”

#EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option “Device” "/dev/input/mice"
Option “Protocol” "ExplorerPS/2"
Option “Emulate3Buttons” "on"
Option “Emulate3TimeOut” "50"
Option “EmulateWheel” "on"
Option “EmulateWheelTimeOut” "200"
Option “EmulateWheelButton” "2"
Option “YAxisMapping” "4 5"
Option “XAxisMapping” "6 7"
Option “ZAxisMapping” "4 5"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option “AddARGBGLXVisuals” "true"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
[/code]

Ça fontionne très bien et j’ai les effets 3D et aucun message d’erreur.

Encore un grand merci, je ne savais pas que Xgl n’était pas nécessaire.