Kirjoittaja Aihe: XGL ongelma [ratkaistu]  (Luettu 1904 kertaa)

BBT

  • Käyttäjä
  • Viestejä: 352
    • Profiili
XGL ongelma [ratkaistu]
« : 20.02.07 - klo:16.35 »
Ongelma on seuraava:

Käytän koneella fglrx ajureita ja XGL:llää. Gnome istunnossa 3D kiihdytys toimii ok.

Koodia: [Valitse]
koti@koti-laptop:~$ glxinfo | grep -i direct.
direct rendering: Yes
koti@koti-laptop:~$

...mutta XGL istunnossa sama komento herjaa:

Koodia: [Valitse]
koti@koti-laptop:~$ glxinfo | grep -i direct.
Xlib:  extension "XFree86-DRI" missing on display ":1.0".
direct rendering: No
koti@koti-laptop:~$

Tämän takia Compizkaan ei siis toimi.

XGL istunoa varten olen luonut /etc/X11/sessions/xgl.desktop -tiedoston:

Koodia: [Valitse]
[Desktop Entry]
Encoding=UTF-8
Name=3D XGL Compiz
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

sekä luonnollisesti /usr/local/bin/startxgl.sh -tiedoston:


Koodia: [Valitse]
#!/bin/sh
Xgl -fullscreen :1 -ac -br -accel glx:pbuffer -accel xv:pbuffer &
sleep 4
export DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec gnome-session

Mitäs tuolle pitäisi tehdä, että 3D toimisi myös XGL istunnossa?

Tässä vielä xorg.conf:
Koodia: [Valitse]

Section "Files"
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"
# path to defoma fonts
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" "fi"
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"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

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

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

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Xpress 200M (RS482)"
Driver "fglrx"
BusID "PCI:1:5:0"
Option          "VideoOverlay"            "on"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. Radeon Xpress 200M (RS482)"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice     "stylus" "SendCoreEvents"
InputDevice     "cursor" "SendCoreEvents"
InputDevice     "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection

Section "DRI"
Mode 0666
EndSection

...käytössä Ubuntu Dapper ja ATI Mobility Radeon X1100...

Kiitos kaikille vastanneille jo etukäteen...

Edit
: Ratkaisu

Asensin Dapperin tilalle Edgyn ja siihen fglrx ajurit tämän skriptin avulla:
http://forum.ubuntu-fi.org/index.php?PHPSESSID=335a1f810365698e621289c66939ba4c&topic=7482.0

ja Compizin tällä ohjeella:
http://gandalfn.wordpress.com/howto/howto-compiz-aiglx-on-edgy/

Eli homma oli kiinni siitä että olin käyttänyt aiemmin fglrx ajurien vanhampaa versiota... täytyy koittaa tuota joskus myös Dapperilla.. Joka tapauksessa tuon fglrx-ajurien asennus-skriptin tekijälle kymmenen pistettäja...  8)
« Viimeksi muokattu: 24.02.07 - klo:13.46 kirjoittanut BBT »

eliasj

  • Käyttäjä
  • Viestejä: 4075
    • Profiili
Vs: XGL ongelma
« Vastaus #1 : 22.02.07 - klo:19.18 »
Mitä ohjetta käytit Xgl:än asentamiseen?
alias vililikku

BBT

  • Käyttäjä
  • Viestejä: 352
    • Profiili
Vs: XGL ongelma
« Vastaus #2 : 22.02.07 - klo:19.57 »
Mitä ohjetta käytit Xgl:än asentamiseen?
Asensin ilman ohjeita ihan ulkomuistista... on mienaan tullut tehtä tuo XGL:n asennus muutaman kerran aikaisemminkin...  :)

Eli ensin asensin XGL:n

Koodia: [Valitse]
sudo aptitude install xserver-xgl
Sen jälkeen:

Koodia: [Valitse]
sudo gedit /usr/local/bin/startxgl.sh
ja sinne tiedostoon rivit:

Koodia: [Valitse]
#!/bin/sh
Xgl -fullscreen :1 -ac -br -accel glx:pbuffer -accel xv:pbuffer &
sleep 4 
export DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec gnome-session

seuraavaksi...

Koodia: [Valitse]
sudo mkdir -p /etc/X11/sessions
sekä

Koodia: [Valitse]
sudo gedit /etc/X11/sessions/xgl.desktop
ja tiedostoon rivit:

Koodia: [Valitse]
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

sitten vielä ylimmäisen tiedoston oikeudet kohdalleen:

Koodia: [Valitse]
sudo chmod a+x /usr/local/bin/startxgl.sh
Kiinnostaisi tietää mitä tein väärin? Tuo ohje toimii kyllä tälläkin koneella Edgyssä, tosin oikeastaan mikään muu sitten ei ja siksi asensinkin Dapperin takaisin...

eliasj

  • Käyttäjä
  • Viestejä: 4075
    • Profiili
Vs: XGL ongelma
« Vastaus #3 : 22.02.07 - klo:20.22 »
alias vililikku