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 21/10/2006, à 18:52

c-tex

xgl + beryl + fglrx

Bonjour à tous. Je possède un portable Aopen 1557-GLS avec une carte graphique ATI Radeon 9700 Mobility.
J'ai installé les drivers fglrx et ils sont fonctionnels

fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 2.0.6065 (8.29.6)

Cependant, je ne parviens pas à faire fonctionner Xgl. lorsque je le lance à l'aide du script ci dessous, j'ai un affichage extremement lent, et sans bordure aux fenêtres.

cat /usr/bin/startxgl
export KDEWM=/usr/bin/compiz-start
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:fbo & sleep 2 && DISPLAY=:1 exec startkde

J'essaye malgré tout de lancer beryl pour avoir le gestionnaire de fenêtre et j'obtiens le message suivant ;

XGL Present
GLX_EXT_texture_from_pixmap is missing
Failed to manage screen: 0
No manageable screens found on display: 0

Dans mon fichier xorg.conf, si j'active l'option composite, je n'ai plus les fonctions 3d de ma carte. J'ai lu sur un forum que cette option n'était pas nécessaire car intégrée à la couche xgl. J'ai lu aussi qu'il était possible d'utiliser xgl avec le driver libre radeon mais je ne suis arrivé à aucun résultat.

pour info, voici mon fichier xorg.conf

# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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     "Default Layout"
        Screen      0  "screen1" 0 0
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
        InputDevice    "stylus" "SendCoreEvents"
        InputDevice    "cursor" "SendCoreEvents"
        InputDevice    "eraser" "SendCoreEvents"
        InputDevice    "Synaptics Touchpad"
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"
        SubSection "extmod"
                Option      "omit xfree86-dga"
        EndSubSection
        Load  "freetype"
        Load  "glx"
        Load  "int10"
        Load  "type1"
        Load  "vbe"
        Load  "glx"
        Load  "dbe"
EndSection

Section "InputDevice"
        Identifier  "Generic Keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "be"
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"
        Identifier  "Synaptics Touchpad"
        Driver      "synaptics"
        Option      "SendCoreEvents" "true"
        Option      "Device" "/dev/psaux"
        Option      "Protocol" "auto-dev"
        Option      "HorizScrollDelta" "0"
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   "TFT-SXGAp"
        Option      "VendorName" "Aopen"
        Option      "ModelName" "15.4' 1400x1050"
        Option      "DPMS" "true"
EndSection

Section "Monitor"
        Identifier   "VGA-ext"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "dev1"
        Driver      "fglrx"
        Option      "DesktopSetup" "clone"
        BusID       "PCI:1:0:0"
        ##Ajout pour accélérer Xgl (driver fglrx)
        Option       "no_accel" "no"
        Option       "no_dri" "no"
        Option       "DynamicClocks" "on"
        Option       "mtrr" "on"
        #Option       "DesktopSetup" "Single"
        Option       "ScreenOverlap" "0"
        Option       "Capabilities" "0x00000000"
        Option       "CapabilitiesEx" "0x00000000"
        Option       "VideoOverlay" "on"
        Option       "OpenGLOverlay" "off"
        Option       "CenterMode" "off"
        Option       "PseudoColorVisuals" "off"
        Option       "Stereo" "off"
        Option       "StereoSyncEnable" "1"
        Option       "FSAAEnable" "no"
        Option       "FSAAScale" "1"
        Option       "FSAADisableGamma" "no"
        Option       "FSAACustomizeMSPos" "no"
        Option       "FSAAMSPosX0" "0.000000"
        Option       "FSAAMSPosY0" "0.000000"
        Option       "FSAAMSPosX1" "0.000000"
        Option       "FSAAMSPosY1" "0.000000"
        Option       "FSAAMSPosX2" "0.000000"
        Option       "FSAAMSPosY2" "0.000000"
        Option       "FSAAMSPosX3" "0.000000"
        Option       "FSAAMSPosY3" "0.000000"
        Option       "FSAAMSPosX4" "0.000000"
        Option       "FSAAMSPosY4" "0.000000"
        Option       "FSAAMSPosX5" "0.000000"
        Option       "FSAAMSPosY5" "0.000000"
        Option       "UseFastTLS" "0"
        Option       "BlockSignalsOnLock" "on"
        Option       "UseInternalAGPGART" "no"
        Option       "ForceGenericCPU" "no"
        ##Option importante
        Option       "KernelModuleParm" "agplock=0"
        Option       "PowerState" "1"
EndSection

Section "Device"
        Identifier "dev0"
        Driver "radeon"
        ##Option driver radeon
        Option              "AGPMode" "4" # AGP 4x
        Option              "AGPSize" "128" # AGP aperture size
        Option              "RingSize" "8"
        Option              "BufferSize" "2"
        Option              "UseFBDev" "false"
        Option              "AccelMethod" "XAA" # Use XFree86 Acceleration Architecture
        Option              "XaaNoOffscreenPixmaps" "false" # Faster RENDER acceleration
        Option              "RenderAccel" "true" # Enable the hardware render acceleration
        Option              "BackingStore" "true" # Faster double buffering
        Option              "EnablePageFlip" "true" # Enable page flipping for 3D apps
        Option              "ColorTiling" "true"
        Option              "SubPixelOrder" "none"
        Option              "DynamicClocks" "on"
        Option              "mtrr" "on"
        Option              "VideoOverlay" "on"
        Option              "OpenGLOverlay" "off"
        Option              "DPMS"
EndSection

Section "Device"
        Identifier  "dev1-ext"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "screen1"
        Device     "dev1"
        Monitor    "TFT-SXGAp"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1400x1050"
        EndSubSection
EndSection

#Section "Screen"
#       Identifier "screen1-ext"
#       Device     "dev1-ext"
#       Monitor    "VGA-ext"
#       DefaultDepth     24
#       SubSection "Display"
#               Viewport   0 0
#               Depth     24
#               Modes    "1280x1024"
#       EndSubSection
#EndSection

Section "DRI"
        Mode         0666
EndSection

Section "Extensions"
        Option      "Composite" "Disable"
EndSection

Si vous avez réussi à faire fonctionner xgl/beryl avec le driver fglrx sur une 9700 mobility, ça m'intéresse.
Merci d'avance

Hors ligne

#2 Le 23/10/2006, à 00:22

saintshakajin

Re : xgl + beryl + fglrx

Je sèche aussi...
carte Ati x1300

Hors ligne

#3 Le 23/10/2006, à 00:37

MattMagnus

Re : xgl + beryl + fglrx

il me semble que tu dois retirer la commande compiz-start la dedans:

cat /usr/bin/startxgl
export KDEWM=/usr/bin/compiz-start
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:fbo & sleep 2 && DISPLAY=:1 exec startkde

car il me semble que compiz n'est plus utilise, amsi en renche, remplace par beryl

a+

-M-

Hors ligne

#4 Le 23/10/2006, à 20:42

c-tex

Re : xgl + beryl + fglrx

Salut, merci pour ta réponse mais j'ai un autre moyen pour démarrer xgl qui me donne le même résultat :

Dans la section [X-:*-core] de mon fichier /etc/kde3/kdm/kdmrc, je remplace la commande de démarrage du serveur X par ceci :

ServerCmd=/usr/bin/Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer

Donc sans même démarrer beryl, le serveur Xgl est d'une lenteur effrayante.
Je continue à penser qu'il s'agit d'un problème lié au driver, c'est pourquoi j'ai indiqué bcp d'options dans la section device de mon /etc/X11/xorg.conf

++, c-tex

Hors ligne

#5 Le 23/10/2006, à 22:54

saintshakajin

Re : xgl + beryl + fglrx

Oops, j'avais pas vu qu'on parlait initialement de KDE... Perso, sous Gnome j'ai le même problème en suivant scrupuleusement le tuto sur beryl...

Hors ligne

#6 Le 24/10/2006, à 08:30

c-tex

Re : xgl + beryl + fglrx

Oui, le problème se situe au niveau de la couche inférieure. C'est Xgl et les drivers fglrx qui ont un problème.

Hors ligne

#7 Le 24/10/2006, à 21:30

saintshakajin

Re : xgl + beryl + fglrx

Voilà ce que j'ai fait:

sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri
sudo mkdir /usr/X11R6/lib/modules
sudo ln -s /usr/lib/dri /usr/X11R6/lib/modules

E là oh miracle ça marche et c'est fluide.

Hors ligne

#8 Le 25/10/2006, à 20:06

c-tex

Re : xgl + beryl + fglrx

Bonsoir, j'ai essayé cette manipulation, Les raccourcis existaient déja, il me manquait juste quelques raccourcis dans /usr/X11R6/lib/modules

J'ai constaté une lenteur moins forte avec xgl mais c'est toujours innutilisable.
Je continues à chercher...
++

Hors ligne

#9 Le 02/11/2006, à 01:49

xellio

Re : xgl + beryl + fglrx

slt,

j'ai le meme pc avec la meme carte graphique! j'ai reussi a faire tourner XGL/beryl en suivant le tuto :

http://lhansen.blogspot.com/2006/10/3d-desktop-beryl-and-xgl-on-ubuntu-edgy.html

je sais pas si sa va t'aider, mais c'est biens expliquer...

#10 Le 02/11/2006, à 23:15

c-tex

Re : xgl + beryl + fglrx

Bonsoir tout le monde. Merci xellio pour ton message, il m'a bien aidé. J'ai suivi à la lettre le tuto. Au début, ça n'a pas fonctionné. J'ai pensé que c'était peut être un problème lié à KDE et j'ai installé gnome.
Sous gnome, ça à fonctionné sans problèmes. J'ai cherché à reproduire la même chose pour kde. voici les fichiers que j'ai modifié :

cat /usr/bin/startxgl-kde
 export KDEWM=/usr/bin/beryl-xgl
 Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:fbo & sleep 2 && DISPLAY=:1 exec startkde
cat /usr/share/xsessions/xgl-kde.desktop
[Desktop Entry]
 Encoding=UTF-8
 Name=KDE-XGL
 Exec=/usr/bin/startxgl-kde
 TryExec=/usr/bin/startxgl-kde
 Icon=
 Type=Application

ensuite, je me suis rendu compte que la touche alt gr de mon clavier belge ne fonctionnait plus. j'ai donc modifié mon script de lancement automatique de beryl à l'ouverture de session

cat /usr/share/xsessions/xgl
xgl.desktop      xgl-kde.desktop
c-tex@JSS02K:~$ cat /usr/share/xsessions/xgl-kde.desktop
[Desktop Entry]
 Encoding=UTF-8
 Name=KDE-XGL
 Exec=/usr/bin/startxgl-kde
 TryExec=/usr/bin/startxgl-kde
 Icon=
 Type=Application

Enfin, j'ai retiré toutes les options du module fglrx dans mon fichier /etc/X11/xorg.conf

Merci à tous pour votre aide, je m'amuse beaucoup avec ces nouveaux effets 3D.

Hors ligne