Forum des développeurs  

Le forum de référence en programmation et développement. Articles, cours et tutoriels du débutant au chef de projet et DBA confirmé.
Précédent   Forum des développeurs > Hardware, Systèmes et Logiciels > Linux > Matériel

Matériel Vos questions relatives à la configuration optimale et au support matériel

Réponse
 
Outils de la discussion
Vieux 08/11/2008, 13h25   #1 (permalink)
Membre Confirmé
 
Date d'inscription: février 2007
Localisation: Rennes
Âge: 24
Messages: 256
Par défaut [debian lenny] Pas d'accélération 3d

Bonjour à tous,
J'ai une carte ati radeon mobility X1800 installée avec les drivers fglrx. J'ai voulu installer Compiz et j'ai donc vérifier que l'accélération graphique était activée :
Code :
glxinfo|grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect
Au passage :
Code :
fglrxinfo 
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.4)
J'ai donc fait :
Code :
LIBGL_DEBUG=verbose glxinfo
qui ne me donne aucune indication.
J'ai regardé:
Code :
 dmesg |grep fglrx
[   72.045580] fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[   72.091717] [fglrx] Maximum main memory to use for locked dma buffers: 1898 MBytes.
[   72.091717] [fglrx]   vendor: 1002 device: 7102 count: 1
[   72.094071] [fglrx] ioport: bar 1, base 0x2000, size: 0x100
[   72.095719] [fglrx] PAT is enabled successfully!
[   72.095719] [fglrx] module loaded - fglrx 8.54.3 [Oct  3 2008] with 1 minors
[   74.308526] [fglrx:__gart_init] *ERROR* Gps_GartInitialization failed.
[   74.308526] [fglrx:gal_init] *ERROR* Failed to initialize gal
[   74.308526] [fglrx:mc_heap_init] *ERROR* Fail to initialize GAL
[   74.308526] [fglrx:firegl_init_pcie] *ERROR* GAL initialization failure
Donc le problème vient de là, mais je ne sais pas comment l'interpéter. Si quelqu'un à une idée, ce serait top.
Ah oui, pour info :
Code :
cat /etc/X11/xorg.conf

# 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 "ServerLayout"
	Identifier     "aticonfig Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Files"
EndSection

Section "Module"
EndSection

Section "InputDevice"
	Identifier  "Generic Keyboard"
	Driver      "kbd"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "fr"
	Option	    "XkbVariant" "latin9"
	Option	    "XkbOptions" "lv3:ralt_switch"
EndSection

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

Section "Monitor"
	Identifier   "Configured Monitor"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Configured Video Device"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
EndSection

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

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Merci...
dahtah est déconnecté   Envoyer un message privé Réponse avec citation
Vieux 09/11/2008, 13h29   #2 (permalink)
Membre Confirmé
 
Date d'inscription: février 2007
Localisation: Rennes
Âge: 24
Messages: 256
Par défaut

Un petit message d'erreur en plus...
Code :
cat /var/log/Xorg.0.log|grep WW && cat /var/log/Xorg.0.log|grep EE
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(WW) fglrx(0): Only one display is connnected,so single mode is enabled
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *
(WW) fglrx(0): Textured Video not supported without DRI enabled.
(WW) fglrx(0): Option "VendorName" is not used
(WW) fglrx(0): Option "ModelName" is not used
(WW) Configured Mouse: No Device specified, looking for one...
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) fglrx(0): [pcie] Failed to gather memory of size 261120Kb for PCIe. Error (-1000)
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized. 
(EE) fglrx(0): XMM failed to open CMMQS connection.
ça viendrai pas du fait que ma carte est PCIe?
dahtah est déconnecté   Envoyer un message privé Réponse avec citation
Vieux 11/11/2008, 16h29   #3 (permalink)
Membre Confirmé
 
Date d'inscription: février 2007
Localisation: Rennes
Âge: 24
Messages: 256
Par défaut

Ok, c'est bon, j'ai trouvé.
ça devait être un conflit d'emplacement de librairie. J'ai effacé les libGL présent sous /usr/lib/xorg/ :
Avant :
Code :
 find /usr/lib/ -name libGL.so.*
/usr/lib/fglrx/diversions/libGL.so.1.2
/usr/lib/fglrx/diversions/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGL.so.1
/usr/lib/xorg/libGL.so.1.2
/usr/lib/xorg/libGL.so.1
Après :
Code :
 find /usr/lib/ -name libGL.so.*
/usr/lib/fglrx/diversions/libGL.so.1.2
/usr/lib/fglrx/diversions/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGL.so.1
Pour info, voici mon xorg.conf, avec les bonnes options ATI pour faire fonctionner compiz-fusion venant des dépôts tuxfamily (compiz des dépôts officiels ne fonctionnaient pas) : Les parties en rouge sont les parties importantes pour faire fonctionner compiz chez moi.
Code :
Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
	InputDevice    "Generic Keyboard"
	InputDevice    "Configured Mouse"
	InputDevice    "Synaptics Touchpad"
EndSection

Section "Files"

	# path to defoma fonts
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
	FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load  "i2c"
	Load  "bitmap"
	Load  "ddc"
	Load  "dri"
	Load  "extmod"
	Load  "freetype"
	Load  "glx"
	Load  "int10"
	Load  "vbe"
EndSection

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

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

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

Section "Monitor"
	Identifier   "Écran générique"
	Option	    "DPMS"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Carte vidéo générique"
	Driver      "vesa"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
		Option "XAANoOffscreenPixmaps" "true"
		Option "AddARGBGLXVisuals" "true"
		Option "AllowGLXWithComposite" "true"
		Option "TripleBuffer" "true"
EndSection

Section "Screen"
	Identifier "Default Screen"
	Device     "Carte vidéo générique"
	Monitor    "Écran générique"
	DefaultDepth     24
	SubSection "Display"
		Depth     1
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "aticonfig-Monitor[0]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection

Section "ServerFlags"
	Option "AIGLX" "on"
EndSection

Section "Extensions"
	Option "RENDER" "enable"
	Option "Composite" "on"
EndSection
Un dernier truc pour faire marcher la vidéo sous compiz, il faut forcer la sortie vidéo de VLC vers X11 (préférences -> vidéo -> cocher avancé -> modules de sortie -> choisir X11).
Quand je pense qu'il y a des gars qui n'ont eu aucun problème à installer tout ça à partir des dépôts ...
Peut-être que ça servira à quelqu'un...
dahtah est déconnecté   Envoyer un message privé Réponse avec citation
NEWS LINUX PROFESSIONNELFAQ LINUXTUTORIELS LINUXLIVRES LINUXLINUX TVUNIXGTK+QtAPACHE

Réponse

Précédent   Forum des développeurs > Hardware, Systèmes et Logiciels > Linux > Matériel



Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are non
Pingbacks are non
Refbacks are non
Navigation rapide