Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 27/10/2007, à 22:51

personal

Effets visuels > < plante

Bonjours tout le monde,

Voilà j'ai un problème avec mes effets visuels, je ne peut pas les activer... J'ai déjà vu beacoup de post suf ce sujet, sur différents forums, mais j'ai jamais réussi a les activer  (tout ce que j'ai réussi à faire c'est devoir réinstaller mon Ubuntu) hmm

   Donc je revient à mes Effets ...  Quand je veut activer mes effets, (système >  préférences > Apparence > Effetts visuels)  j'ai un message d'erreur : 

"The Composite extension is not available"

Voilà ça s'arrête là.

Pour préciser j'ai   Ubuntu 7.10 ,   une carte video  ATI X1600 , une carte mère Asrock P4VM800    et un proc INTEL P4  3Ghz.

Merci d'avance !!

Hors ligne

#2 Le 27/10/2007, à 23:33

personal

Re : Effets visuels > < plante

sivouplai hmm

Hors ligne

#3 Le 28/10/2007, à 02:21

Cyberconfort66

Re : Effets visuels > < plante

Salut,
Peux-tu faire un copier/coller ton xorg.conf --> /etc/X11/xorg.conf

@ +


Vente d'ordinateurs sous systèmes Linux : http://www.cyberconfort-linux.com

Hors ligne

#4 Le 29/10/2007, à 09:40

bugman59

Re : Effets visuels > < plante

Hello,
J'ai un portable asus z92..avec une ati x1600,et j'ai le même probléme que personal,donc je me permet de poster mon petit message et je vais vous faire un petit copier/coller de mon xorg.conf,ce soir.

Parce que je dois réinstaller ubuntu 7.10,parce qu'en faite j'ai voulu mettre la résolution de mon écran 1280*800 et j'ai coché écran wide...et au redémarrage j'ai eu la suprise d'avoir mon écran divisé en 3 et avec les menu illisible du coup pas moyen de remettre les paramétre par defaut .donc je supprime les partition ubuntu sous window et là au redemarrage ...error 22 Grub ,mon pc ne boot même plus sur windows....lol du coup j'ai du tout formaté....
enfin c'est le bordel mais là ce soir je remet ubuntu et je fais un copier/coller de xorg.conf.voili voilou.Afin de rendre compatible les effet visuels sur mon pc.
Merçi d'avance et a ce soir!!


PS:je suis nouveau utilisateur de ubuntu wink

#5 Le 10/11/2007, à 21:55

BugMan 59

Re : Effets visuels > < plante

voici ma copie du fichier xconf(avec un peu de retard désolé):

# xorg.conf (xorg 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 "Files"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizEdgeScroll"	"0"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"vesa"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	30-70
	VertRefresh	50-160
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"
	DefaultDepth	24
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"

# Uncomment if you have a wacom tablet
#	InputDevice     "stylus"	"SendCoreEvents"
#	InputDevice     "cursor"	"SendCoreEvents"
#	InputDevice     "eraser"	"SendCoreEvents"
	InputDevice	"Synaptics Touchpad"
EndSection

#6 Le 10/11/2007, à 23:20

Manu_95

Re : Effets visuels > < plante

Bonsoir.

Section "Device"
    Identifier    "Generic Video Card"
    Driver        "vesa"
    BusID        "PCI:1:0:0"
EndSection

Tu tournes avec le driver VGA de base. Donc pas d'accélération 3D dispo et ... pas d'effets 3D.

Il faut que tu installes les drivers proprio de ta carte graphique. Soit en utilisant le gestionnaire (Système->Administration->Gestionnaire de pilotes propriétaires), soit en utilisant envy (je te recommande la 1ère solution).

Cordialement.


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#7 Le 11/11/2007, à 21:17

BugMan 59

Re : Effets visuels > < plante

Bonsoir,
j'ai fait une mise a jour de l'accélération 3d ,j'ai du redemarré et par mirable ma résolution est nickel avant c'était en 1024*728 mais il s'est mis avec m'a résolution
Mais par contre je n'arrive toujour pas a accéder au effet visuel,il dit ça:

-----The Composite extension is not available-----

voici le message que j'ai en faisant un glxinfo | grep rendering:


-------direct rendering: Yes-------


et pour finir voici mon fichier xorg.conf aprés la MAJ:

# xorg.conf (xorg 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 "Files"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/mice"
	Option		"Protocol"	"ImPS/2"
	Option		"ZAxisMapping"	"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"	"/dev/psaux"
	Option		"Protocol"	"auto-dev"
	Option		"HorizEdgeScroll"	"0"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"stylus"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"eraser"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"cursor"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"fglrx"
	Busid		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	Horizsync	30-70
	Vertrefresh	50-160
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"
	Defaultdepth	24
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  screen "Default Screen"
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
	
	# Uncomment if you have a wacom tablet
	#	InputDevice     "stylus"	"SendCoreEvents"
	#	InputDevice     "cursor"	"SendCoreEvents"
	#	InputDevice     "eraser"	"SendCoreEvents"
	Inputdevice	"Synaptics Touchpad"
EndSection
Section "Module"
	Load		"glx"
EndSection
Section "Extensions"
	Option		"Composite"	"0"
EndSection

Pouvez vous m'aider à  avoir mes effets visuels???

#8 Le 11/11/2007, à 22:02

Manu_95

Re : Effets visuels > < plante

Bonsoir.

-------direct rendering: Yes-------

C'est tout bon l'accélération matérielle est dispo wink

Section "Device"
    Identifier    "Generic Video Card"
    Driver        "fglrx"
    Busid        "PCI:1:0:0"
EndSection

OK donc à priori le driver ATI est bien chargé.

Section "Extensions"
    Option        "Composite"    "0"
EndSection

Donc c'est logique que tu ais le message "-----The Composite extension is not available-----" : il faut activer l'extension Composite !

Donc remplacer par :

Section "Extensions"
    Option        "Composite"    "true"
EndSection

Redémarrer le serveur X et là ca doit être bon.

Cordialement.


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#9 Le 11/11/2007, à 22:17

BugMan 59

Re : Effets visuels > < plante

je n'arrive pas a modifier le 0 en true car quand je veux l'enregistrer il dit que je n'ai pas les droits...
Comment faire?
et Comment faire pour redemarrer le Serveur X(c'est quoi le serveur X?)...
Merçi wink

#10 Le 11/11/2007, à 22:24

Manu_95

Re : Effets visuels > < plante

Il faut utiliser la commande sudo qui donne les droits root. Cette commande te demandera la 1ère fois ton mot de passe.

d'abord par sécurité faire une copie du fichier :

sudo cp  /etc/X11/xorg.conf  /etc/X11/xorg.conf.bak

Ensuite éditer le fichier en root :

sudo gedit  /etc/X11/xorg.conf

Cette fois la modif devrait être acceptée.

Pour redémarrer le serveur X 2 possibilités :
- la plus simple : le reboot smile
- la plus rapide : fermer toutes les applis puis CTRL+ALT+BACK

Dernière modification par Manu_95 (Le 11/11/2007, à 22:24)


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#11 Le 11/11/2007, à 22:37

Manu_95

Re : Effets visuels > < plante

Toutes mes excuses : je poste à la volée sans autres explications alors que manifestement tu cherches à comprendre ce qui est une TRES bonne idée.

Je te recommande avant tout la documentation du site qui est une vraie mine d'or :
http://doc.ubuntu-fr.org/

Entre autre des infos sur le fichier xorg.conf :
http://doc.ubuntu-fr.org/xorg

Le principe de la commande sudo :
http://doc.ubuntu-fr.org/sudo

La définition du serveur X : je n'ai pas trouvé de tuto clair mais wikipédia fournit un bon article pour comprendre le principe de 'IHM sur Linux :
http://fr.wikipedia.org/wiki/X_Window_System

Bonne lecture ! wink


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#12 Le 11/11/2007, à 22:49

BugMan 59

Re : Effets visuels > < plante

Je vais lire tout ça demain et je te tiens au courant.
Merçi pour tout à  demain;)

#13 Le 11/11/2007, à 22:59

BugMan 59

Re : Effets visuels > < plante

j'ai changer le 0 en true et j'ai rebooter,est je n'est toujours pas accés au effet visuels....:(

---Desktop effects could not be enabled---(en cliquant sur extra)

Comment faire?

Au passage pas mal les tuto qui explique je comprend mieu la commande sudo....

smile

#14 Le 11/11/2007, à 23:13

Manu_95

Re : Effets visuels > < plante

Argh ... sad

Bon ben (une fois n'est pas coutume) on va essayer d'utiliser la doc pour s'en sortir :
http://doc.ubuntu-fr.org/compiz_fusion

La doc cite le message que tu obtiens. Il faudrait déjà  avoir plus de précision. Taper :

compiz –replace

Et ensuite en fonction du cas o๠tu es (1-2-3) traiter le problème. Je n'invente rient tout est dans la doc smile


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#15 Le 11/11/2007, à 23:21

BugMan 59

Re : Effets visuels > < plante

Checking for Xgl: not present.
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity


c'est ce que j'obtiens en tapant la ligne de commande.....:/

#16 Le 11/11/2007, à 23:26

Manu_95

Re : Effets visuels > < plante

Bon et bien la doc est claire sur ce point :

Cas 2 - No whitelisted driver found

Cette erreur ne concerne que les utilisateurs de cartes ATI utilisant le tous dernier pilote (qui permet enfin l'utilisation de compiz sans XGL via la méthode ati propriétaire, n'effectuez pas la modification suivante dans le cas contraire.

(NB : cela semble bien être ton cas puisque Xgl est déclaré absent !)

Ouvrir le fichier /usr/bin/compiz

Repérer la ligne :

WHITELIST="nvidia intel etc ..."

et rajouter fglrx avant nvidia en laissant un espace entre les deux, puis redémarrer.

WHITELIST="fglrx nvidia intel etc ..."


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#17 Le 11/11/2007, à 23:33

BugMan 59

Re : Effets visuels > < plante

ça marche pas....:rolleyes:
J'ai toujours le même message d'erreur....:(

#18 Le 11/11/2007, à 23:40

Manu_95

Re : Effets visuels > < plante

Tu as bien rebooté ?


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#19 Le 11/11/2007, à 23:44

BugMan 59

Re : Effets visuels > < plante

oui j'ai fais redemarrer...

#20 Le 11/11/2007, à 23:48

Manu_95

Re : Effets visuels > < plante

Je suis en train de me demander si ton driver ATI est bien installé finalement sad Tu as fait comme je te l'avais dit (Gestionnaire de pilotes propriétaires) ?

Histoire d'être sur tu peux poster les 2 fichiers :
- /etc/X11/xorg.conf
- /usr/bin/compiz


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#21 Le 11/11/2007, à 23:54

BugMan 59

Re : Effets visuels > < plante

xorg.conf

# xorg.conf (xorg 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 "Files"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/mice"
	Option		"Protocol"	"ImPS/2"
	Option		"ZAxisMapping"	"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"	"/dev/psaux"
	Option		"Protocol"	"auto-dev"
	Option		"HorizEdgeScroll"	"0"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"stylus"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"eraser"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"cursor"
	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"fglrx"
	Busid		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	Horizsync	30-70
	Vertrefresh	50-160
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"
	Defaultdepth	24
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  screen "Default Screen"
	Inputdevice	"Generic Keyboard"
	Inputdevice	"Configured Mouse"
	
	# Uncomment if you have a wacom tablet
	#	InputDevice     "stylus"	"SendCoreEvents"
	#	InputDevice     "cursor"	"SendCoreEvents"
	#	InputDevice     "eraser"	"SendCoreEvents"
	Inputdevice	"Synaptics Touchpad"
EndSection
Section "Module"
	Load		"glx"
EndSection
Section "Extensions"
	Option		"Composite"	"1"
EndSection

et le fichier compiz

#!/bin/sh
# Compiz Manager wrapper script
# 
# Copyright (c) 2007 Kristian Lyngstà¸l <kristian@bohemians.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
#
# Contributions by: Trevià±o (3v1n0) <trevi55@gmail.com>, Ubuntu Packages
#
# Much of this code is based on Beryl code, also licensed under the GPL.
# This script will detect what options we need to pass to compiz to get it
# started, and start a default plugin and possibly window decorator.
# 


COMPIZ_BIN_PATH="/usr/local/bin/" # For window decorators and compiz
PLUGIN_PATH="/usr/local/lib/compiz/" 
GLXINFO="/usr/bin/glxinfo"
KWIN="/usr/bin/kwin"
METACITY="/usr/bin/metacity"
COMPIZ_NAME="compiz" # Final name for compiz (compiz.real) 

# For Xgl LD_PRELOAD
LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"

# Minimum amount of memory (in kilo bytes) that nVidia cards need
# to be allowed to start
# Set to 262144 to require 256MB
NVIDIA_MEMORY="65536" # 64MB
NVIDIA_SETTINGS="nvidia-settings" # Assume it's in the path by default

# For detecting what driver is in use, the + is for one or more /'s
XORG_DRIVER_PATH="/usr/lib/xorg/modules/drivers/+"

FALLBACKWM="${METACITY}"
FALLBACKWM_OPTIONS="--replace $@"

# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"

# blacklist based on the pci ids 
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
T="   1002:5954 1002:5854 1002:5955" # ati rs480
T="$T 1002:4153" # ATI Rv350
T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12"  # intel 965
T="$T 8086:2972" # i965 (x3000)
T="$T 1002:3152 1002:3150 1002:5462 1002:5653 " # ati X300 X600,X600 X700 
BLACKLIST_PCIIDS="$T"
unset T

COMPIZ_OPTIONS="--ignore-desktop-hints --replace"
COMPIZ_PLUGINS=""
ENV=""

# Use emerald by default if it exist
USE_EMERALD="yes"

# No indirect by default
INDIRECT="no"

# Set to yes to enable verbose
VERBOSE="yes"

# Echos the arguments if verbose
verbose()
{
	if [ "x$VERBOSE" = "xyes" ]; then
		printf "$*"
	fi
}

# abort script and run fallback windowmanager
abort_with_fallback_wm()
{
	if [ "x$SKIP_CHECKS" = "xyes" ]; then
		verbose "SKIP_CHECKS is yes, so continuing despite problems.\n"
		return 0;
	fi

	verbose "aborting and using fallback: $FALLBACKWM \n"

	if [ -x $FALLBACKWM ]; then
		exec $FALLBACKWM $FALLBACKWM_OPTIONS
	else
		printf "no $FALLBACKWM found, exiting\n"
		exit 1
	fi
}

# Check for non power of two texture support
check_npot_texture()
{
	verbose "Checking for non power of two support: "
	if glxinfo 2> /dev/null | egrep -q '(GL_ARB_texture_non_power_of_two|GL_NV_texture_rectangle|GL_EXT_texture_rectangle|GL_ARB_texture_rectangle)' ; then
		verbose "present. \n";
		return 0;
	else
		verbose "Not present. \n"
		return 1;
	fi

}

# Check for presence of FBConfig
check_fbconfig()
{
	verbose "Checking for FBConfig: "
	if [ "$INDIRECT" = "yes" ]; then
		$GLXINFO -i | grep -q GLX.*fbconfig 
		FB=$?
	else
		$GLXINFO | grep -q GLX.*fbconfig 
		FB=$?
	fi

	if [ $FB = "0" ]; then
		unset FB
		verbose "present. \n"
		return 0;
	else
		unset FB
		verbose "not present. \n"
		return 1;
	fi
}


# Check for TFP
check_tfp()
{
	verbose "Checking for texture_from_pixmap: "
	if [ $($GLXINFO 2>/dev/null | grep GLX_EXT_texture_from_pixmap -c) -gt 2 ] ; then
		verbose "present. \n"
		return 0;
	else
		verbose "not present. \n"
		if [ "$INDIRECT" = "yes" ]; then
			unset LIBGL_ALWAYS_INDIRECT
			INDIRECT="no"
			return 1;
		else
			verbose "Trying again with indirect rendering:\n";
			INDIRECT="yes"
			export LIBGL_ALWAYS_INDIRECT=1
			check_tfp;
			return $?
		fi
	fi
}

# Check wether the composite extension is present
check_composite()
{
	verbose "Checking for Composite extension: "
	if xdpyinfo -queryExtensions | grep -q Composite ; then
		verbose "present. \n";
		return 0;
	else
		verbose "not present. \n";
		return 1;
	fi
}

# Detects if Xgl is running
check_xgl()
{
	verbose "Checking for Xgl: "
	if xvinfo | grep -q Xgl ; then
		verbose "present. \n"
		return 0;
	else
		verbose "not present. \n"
		return 1;
	fi
}

# Check if the nVidia card has enough video ram to make sense
check_nvidia_memory()
{
	MEM=$(${NVIDIA_SETTINGS} -q VideoRam | egrep Attribute\ \'VideoRam\'\ .*: | cut -d: -f3 | sed 's/[^0-9]//g')
	if [ $MEM -lt $NVIDIA_MEMORY ]; then
		verbose "Less than ${NVIDIA_MEMORY}kb of memory and nVidia";
		return 1;
	fi
	return 0;
}

# Check for existence if NV-GLX
check_nvidia()
{
	if [ ! -z $NVIDIA_INTERNAL_TEST ]; then
		return $NVIDIA_INTERNAL_TEST;
	fi
	verbose "Checking for nVidia: "
	if xdpyinfo | grep -q NV-GLX ; then
		verbose "present. \n"
		NVIDIA_INTERNAL_TEST=0
		return 0;
	else
		verbose "not present. \n"
		NVIDIA_INTERNAL_TEST=1
		return 1;
	fi
}

# Check if the max texture size is large enough compared to the resolution
check_texture_size()
{
	TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | sed 's/.*=[^0-9]//g')
	RESOLUTION=$(xdpyinfo  | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
	VRES=$(echo $RESOLUTION | sed 's/.*x//')
	HRES=$(echo $RESOLUTION | sed 's/x.*//')
	verbose "Comparing resolution ($RESOLUTION) to maximum 3D texture size ($TEXTURE_LIMIT): ";
	if [ $VRES -gt $TEXTURE_LIMIT ] || [ $HRES -gt $TEXTURE_LIMIT ]; then
		verbose "Failed.\n"
		return 1;
	fi
	verbose "Passed.\n"
	return 0
}

# check driver whitelist
running_under_whitelisted_driver()
{
	LOG=$(xset q|grep "Log file"|awk '{print $3}')
	if [ -z "$LOG" ];then
		verbose "AIEEEEH, no Log file found \n"
		verbose "$(xset q) \n"
	return 0
	fi
	for DRV in ${WHITELIST}; do
		if egrep -q "Loading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG &&
		   ! egrep -q "Unloading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG; 
		then
			return 0
		fi
	done
	verbose "No whitelisted driver found\n"
	return 1
}

# check pciid blacklist
have_blacklisted_pciid()
{
	OUTPUT=$(lspci -n)
	for ID in ${BLACKLIST_PCIIDS}; do
		if echo "$OUTPUT" | egrep -q "$ID"; then
			verbose "Blacklisted PCIID '$ID' found \n"
			return 0
		fi
	done
	OUTPUT=$(lspci -vn | grep -i VGA)
	verbose "Detected PCI ID for VGA: $OUTPUT\n"
	return 1
}

build_env()
{
	if check_nvidia; then
		ENV="__GL_YIELD=NOTHING "
	fi
	if [ "$INDIRECT" = "yes" ]; then
		ENV="$ENV LIBGL_ALWAYS_INDIRECT=1 "
	fi
	if check_xgl; then
		if [ -f ${LIBGL_NVIDIA} ]; then
			ENV="$ENV LD_PRELOAD=${LIBGL_NVIDIA}"
			verbose "Enabling Xgl with nVidia drivers...\n"
		fi
		if [ -f ${LIBGL_FGLRX} ]; then
			ENV="$ENV LD_PRELOAD=${LIBGL_FGLRX}"
			verbose "Enabling Xgl with fglrx ATi drivers...\n"
		fi
	fi

	ENV="$ENV FROM_WRAPPER=yes"

	if [ -n "$ENV" ]; then
		export $ENV
	fi
}

build_args()
{
	if [ $INDIRECT = "yes" ]; then
		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --indirect-rendering "
	fi
	if check_nvidia; then
		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
	fi
}

####################
# Execution begins here.

# Read configuration from XDG paths
if [ -z "$XDG_CONFIG_DIRS" ]; then
	test -f /etc/xdg/compiz/compiz-manager && . /etc/xdg/compiz/compiz-manager
else
	test -f $XDG_CONFIG_DIRS/compiz/compiz-manager && . $XDG_CONFIG_DIRS/compiz/compiz-manager
fi

if [ -z "$XDG_CONFIG_HOME" ]; then
	test -f $HOME/.config/compiz/compiz-manager && . $HOME/.config/compiz/compiz-manager
else
	test -f $XDG_CONFIG_HOME/compiz/compiz-manager && .  $XDG_CONFIG_HOME/compiz/compiz-manager
fi

# Don't use compiz when running the failsafe session
if [ "x$GNOME_DESKTOP_SESSION_ID" = "xFailsafe" ]; then
	abort_with_fallback_wm
fi

if [ "x$LIBGL_ALWAYS_INDIRECT" = "x1" ]; then
	INDIRECT="yes";
fi

# if we run under Xgl, we can skip some tests here
if ! check_xgl; then
	# if vesa or vga are in use, do not even try glxinfo (LP#119341)
	if ! running_under_whitelisted_driver || have_blacklisted_pciid; then
		abort_with_fallback_wm
	fi
	# check if we have the required bits to run compiz and if not, 
	# fallback
	if ! check_tfp || ! check_npot_texture || ! check_composite || ! check_texture_size; then
		abort_with_fallback_wm
	fi

	if check_nvidia && ! check_nvidia_memory; then
		abort_with_fallback_wm
	fi

	if ! check_fbconfig; then
		abort_with_fallback_wm
	fi
fi

# load the ccp plugin if present and fallback to plain gconf if not
if [ -f ${PLUGIN_PATH}libccp.so ]; then
	COMPIZ_PLUGINS="$COMPIZ_PLUGINS ccp"
elif [ -f ${PLUGIN_PATH}libgconf.so ]; then
	COMPIZ_PLUGINS="$COMPIZ_PLUGINS glib gconf"
fi

# get environment
build_env
build_args

# start the gtk-window-decorator if present
if [ -x ${COMPIZ_BIN_PATH}emerald ] && [ "$USE_EMERALD" = "yes" ]; then
	verbose "Starting emerald\n"
	${COMPIZ_BIN_PATH}emerald --replace &
elif [ -x ${COMPIZ_BIN_PATH}gtk-window-decorator ] && [ -n "$GNOME_DESKTOP_SESSION_ID" ]; then
	verbose "Starting gtk-window-decorator\n"
	${COMPIZ_BIN_PATH}gtk-window-decorator --replace &
elif [ -x ${COMPIZ_BIN_PATH}kde-window-decorator ] && [ -n "$KDE_FULL_SESSION" ]; then
	verbose "Starting kde-window-decorator\n"
	${COMPIZ_BIN_PATH}kde-window-decorator --replace &
	FALLBACKWM="${KWIN}"
fi

${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

voilà ...je pense avoir tout bien fait

#22 Le 12/11/2007, à 00:16

Manu_95

Re : Effets visuels > < plante

Quant tu dis "j'ai le même message d'erreur" : c'est à  dire qu'avec la commande compiz –replace tu obtiens encore "No whitelisted driver found" ? Si non quel est le nouveau message ?


Manu.
XUbuntu 16.04  - 64bits / Asus P5N-E-SLI / Intel Core 2 Duo E6420 @2.13 GHz - 6Go DDR2 - NVIDIA GeForce GTS 450

Hors ligne

#23 Le 12/11/2007, à 06:26

ksiwuz

Re : Effets visuels > < plante

J'ai eu exactement la même suite de problèmes (avec une ATI Radeon 9600SE), mais il m'a suffit d'installer le paquet xserver-xgl et ça a marché smile

sudo apt-get install xserver-xgl

En espérant que ça résoudra ton problème aussi...

(pour plus d'infos sur xgl, voir le tutorial http://doc.ubuntu-fr.org/xgl_gnome, et la section problèmes s'il y en a, notamment pour le clavier après l'installation)

#24 Le 12/11/2007, à 08:01

BugMan 59

Re : Effets visuels > < plante

bonjour,
voilà  ce que j'ai quand je fais un compiz -replace

malik@PortableMalik:~$ compiz –replace
Checking for Xgl: not present. 
Detected PCI ID for VGA: 01:00.0 0300: 1002:71c5 (prog-if 00 [VGA])
Checking for texture_from_pixmap: not present. 
Trying again with indirect rendering:
Checking for texture_from_pixmap: not present. 
aborting and using fallback: /usr/bin/metacity

et mon message d'erreur quand j'eesaie d'accéder aux effets visuels reste le même c'est à  dire:

------Desktop effects could not be enabled--------

Voilà  ou j'en suis.
Et je n'ai pas eesayer le solution de ksiwuz....je vais essayer.

Merçi smile

#25 Le 12/11/2007, à 18:26

BugMan 59

Re : Effets visuels > < plante

C'est bon j'ai des effets visuels!!:)
Mais comment on fait pour configurés les effets?
j'ai un copain qui peut choisir les raccourci,les effets voulu(feu,eau,lumiére,un effet aléatoire a chaque ouverutre et fermeture de fenêtre,le cube 3d...) ça se trouve ou?

Et surtout merçi à  vous deux! ksiwuz et Manu_95 wink