#1 Le 19/06/2006, à 11:18
- inuptia
Problème avec application 3d sous Xgl
Je précise que je suis sur une ATI que j'ai donc fait les reglages sur le display: 1.
Xgl marche à merveille mis a part les application 3d.
Je vais prendre ici l'exemple de ppracer:
quand je l'execute (en ligne de commande) j'obtiens ceci:
*** ppracer error: Couldn't initialize video: Couldn't find matching GLX visual (Success)
bon j'ai lu sur le forum qu'il fallait faire en sorte que l'appli soit lancé sur le display 0
Je fait donc un script toujours trouvé sur le forum:
#!/bin/bash
export DISPLAY=:0
cd /usr/games/ && ./ppracer
J'execute le script la ça cherche pdt 10 sec et ça m'affiche ceci:
*** ppracer error: Couldn't initialize SDL: Unable to open a console terminal
Essayons avec une autre Appli 3d:
Avec torcs
le jeu se lance mais un message apparait dans la console en même temps:
Compatibility mode, properties unknown.
freeglut (/usr/lib/torcs/torcs-bin): Unable to create direct context rendering for window '/usr/lib/torcs/torcs-bin'
This may hurt performance.
Xlib: extension "XFree86-DRI" missing on display ":1.0".
WARNING: ssgLoadTexture: Cannot determine file type for './(null)'
GfParmCheckHandle: parameter "Rear Right Suspension/packers" out of bounds: min:0 max:0.01 val:0.02 in ("Tanhoj" - "drivers/tanhoj/tracksdata/car_g-track-3.xml")
GfParmCheckHandle: parameter "Rear Left Suspension/packers" out of bounds: min:0 max:0.01 val:0.02 in ("Tanhoj" - "drivers/tanhoj/tracksdata/car_g-track-3.xml")OpenAL backend info:
Vendor: OpenAL Community
Renderer: Software
Version: 1.1
Available sources: 1024 or more
Available buffers: 1024 or more
Dynamic Sources: requested: 1003, created: 1003
#static sources: 21
#dyn sources : 1003
inuptia@ubuntu:/usr/games$ torcs
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
freeglut (/usr/lib/torcs/torcs-bin): Unable to create direct context rendering for window '/usr/lib/torcs/torcs-bin'
This may hurt performance.
Xlib: extension "XFree86-DRI" missing on display ":1.0".
le jeu marcherait donc en software d'ou le manque de texture..
avec le script cité plus haut j'obient ceci:
freeglut (/usr/lib/torcs/torcs-bin): failed to open display ':0'
cette fois ci le jeu ne se lance pas..
Je peut donner mon gdm.conf-custom
[servers]
# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX).
1=Xgl
[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:pbuffer
flexible=true
[greeter]
[daemon]
RemoteGreeter=/usr/lib/gdm/gdmgreeter
[xdmcp]
Enable=true
edit: et mon xorg.conf en passant
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection
Section "Files"
# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/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 "type1"
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" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
# /dev/input/event
# for USB
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
# /dev/input/event
# for USB
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
# /dev/input/event
# for USB
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "Monitor"
Identifier "Écran générique"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "ATI Technologies, Inc. ATI Default Card"
Driver "vesa"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. ATI Default Card"
Monitor "Écran générique"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Peut être y a t'il quelques chose a changer dans mon xorg.conf au niveau du display..
Dernière modification par inuptia (Le 19/06/2006, à 11:22)
Hors ligne
#2 Le 20/06/2006, à 14:07
- inuptia
Re : Problème avec application 3d sous Xgl
En attendant ..j'aimerais pouvoir installer le dual screen (ati drivers libre) en mode Xgl, j'ai essayé avec la commande aticonfig --initial..et les options qui vont bien, et aucun affichage un bel ecran noir sur mon second ecran..
Hors ligne