Pagina 1 di 1

ATI Radeon che passione `o_O`

Inviato: gio 5 lug 2007, 18:26
da ir0c
Cercando un po' nel forum ho provato a configurare X con i driver Radeon OpenSource.
Il fine di tutto ciò è far funzionare compiz Sulla Slackware 12

Questo è l'XORG
Parlo di un portatile con una ATI RADEON XPRESS 200M

Codice: Seleziona tutto

Section "Module"
   
   Load  "glx"
   Load  "extmod"
   Load  "xtrap"
   Load  "record"
   Load  "GLcore"
   Load  "dbe"
   Load  "dri"      
   Load  "freetype"
   Load  "type1"
   
   SubSection "extmod"
      Option   "omit XFree86-DGA"
   EndSubSection

EndSection

Section "Files"
   
   RgbPath      "/usr/share/X11/rgb"
   ModulePath   "/usr/lib/xorg/modules"

# -------------- font path ----------
   FontPath   "/usr/share/fonts/100dpi"   
   FontPath   "/usr/share/fonts/75dpi"   
   FontPath        "/usr/share/fonts/TTF"
   FontPath        "/usr/share/fonts/Type1"
   FontPath        "/usr/share/fonts/misc"

EndSection

#############################################################

Section "ServerFlags"
   
   Option "DontZap"   "true"
   Option   "DontZoom"   "true"
   Option   "Xinerama"   "false"
   Option   "AIGLX"      "true"

EndSection

#############################################################

Section "InputDevice"
   
   Identifier  "Keyboard0"
   Driver      "kbd"
   
   Option   "XkbRules"   "xorg"
   Option   "XkbModel"   "pc104"
   Option   "XkbLayout"   "it"

EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

##############################################################

Section "Monitor"
   #DisplaySize     310   230   # mm
   Identifier   "Monitor0"
   VendorName   "SEC"
   ModelName    "0"
   Option   "DPMS"   "true"
EndSection

##############################################################

Section "Device"
   Identifier  "Card0"
   Driver      "radeon"
   VendorName  "ATI Technologies Inc"
   BoardName   "Radeon XPRESS 200M 5955 (PCIE)"
   BusID       "PCI:01:05:0"
        Option     "MonitorLayout"   "LVDS,NONE"     
        Option     "MergedFB"      "False"
   	Option		"DRI"			"true"
	Option		"ColorTiling"		"on"
	Option		"EnablePageFlip"	"true"
	Option		"AccelMethod" 		"EXA"
	Option		"XAANoOffscreenPixmaps"
	Option		"RenderAccel"		"true"
	Option 		"AGPMode" 		"x"
	Option		"AGPFastWrite"		"on"	
EndSection

########################################################

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

###########################################################

Section "ServerLayout"
   Identifier     "DEFAULT"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "DRI"
   Mode 0666
EndSection 

Section "Extensions"
Option "Composite" "Enable"
#Option "XRender" "Enabled"
EndSection
A questo punto X si avvia, l'accelerazione sembra funzionare.

Codice: Seleziona tutto

ir0c@notebook:~$ glxgears
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
1439 frames in 5.0 seconds = 286.976 FPS
1820 frames in 5.1 seconds = 360.180 FPS
1820 frames in 5.0 seconds = 360.483 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 10868 requests (8929 known processed) with 0 events remaining.
ir0c@notebook:~$
Anche se da le ultime due righe quando chiudo la finestrella

Se provo ad avviare compiz da uno script contenente

Codice: Seleziona tutto

#!/bin/sh

LIBGL_ALWAYS_INDIRECT=1 compiz --indirect-rendering --replace decoration clone minimize move place png regex resize screenshot svg water blur zoom wobbly fade cube switcher scale rotate ini &

kde-window-decorator --replace &
Ottengo questo errore:

Codice: Seleziona tutto

compiz: GLX_EXT_texture_from_pixmap is not supported by indirect rendering context, trying direct rendering context instead
compiz: GLX_EXT_texture_from_pixmap is missing
compiz: Failed to manage screen: 0
compiz: No manageable screens found on display :0
E magicamente "scompaiono" le barre delle finestre! :D

Altra cosa che magari può essere utile:

Codice: Seleziona tutto

ir0c@notebook:~$ cat /var/log/Xorg.0.log | grep AIGLX
(**) Option "AIGLX" "true"
(**) AIGLX enabled
(EE) AIGLX: Screen 0 is not DRI capable
ir0c@notebook:~$
...e qui penso stia il problema...

Inviato: gio 5 lug 2007, 19:37
da Vito
mmmm forse è una spiegazione un pò a ca**o ma hai provato ad installare il pacchetto dei driver radeon per xorg contenuto nella directory extrA??

Re

Inviato: gio 5 lug 2007, 23:39
da ir0c
Ho provato, con il risultato di aver peggiorato i caratteri..

P.s. Ho provato ad installare i driver ATI proprietari ottenendo un sistema molto più "snello", e con un accelerazione HW più che doppia

Codice: Seleziona tutto

3221 frames in 5.0 seconds = 644.158 FPS
3480 frames in 5.0 seconds = 695.936 FPS
3481 frames in 5.0 seconds = 695.293 FPS
3465 frames in 5.0 seconds = 692.188 FPS
contro i 1500 attuali, però con quelli si presenta lo stesso problema con AIGLX

Codice: Seleziona tutto

cat /var/log/Xorg.0.log | grep AIGLX
(**) Option "AIGLX" "true"
(**) AIGLX enabled
(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/xorg/modules/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
(EE) AIGLX: reverting to software rendering

Inviato: ven 6 lug 2007, 0:27
da stan
Mi sa' che ho una brutta notizia per te (e anche per me...).
I driver opensource non vanno con quella scheda video.
Io avevo provato a installarli. Tutto era andato ok ma dava:

Codice: Seleziona tutto

(II) RADEON(0): Direct rendering broken on XPRESS 200 and 200M
..come dicevo qua:
viewtopic.php?t=18379&postdays=0&postor ... m&start=30

L'unica possibilita' per usare compiz mi sa' che e' installare fglrx e installare xgl.
fglrx e aiglx non vanno d'accordo.
Solo che compilare xgl e le sue dipendenze mi sa' che non e' una passeggiata.
Terminato il periodo di esami comunque ci provo.

Se riesci in qualunque modo a far girare compiz fammi sapere. Interessa molto anche a me.

Re

Inviato: ven 6 lug 2007, 12:06
da ir0c
Ok, lo sospettavo dal momento che avevo intravisto in qualche man page che supportava tipo il 2D. Comunque fglrx funziona alla perfezione gli ultimi driver sono molto buoni e aumentano notevolmente l'accelerazione 3D rispetto alle versioni precedenti, ora che so dove andare a sbattere ci proverò..

Se ci riesco ti faccio sapere ciao.