3D pour ATI Radeon Serie 9000

Transcription

3D pour ATI Radeon Serie 9000
3D pour ATI Radeon Serie 9000
Michel Luc
Copyleft (c) 2003 by Michel LUC
3D pour ATI Radeon Serie 9000
Table des Matières
INSTALLATION DU PILOTE ATI SERIE R9000........................................................................................1
1. Préambule:...........................................................................................................................................1
1.1 Contributions et contacts......................................................................................................1
1.2 Versions actualisées du document........................................................................................1
1.2 CopyRight du document.......................................................................................................2
2. Introduction:.........................................................................................................................................2
2.1 Matériel, pilote ATI, bus AGP, XFree86 et noyau...............................................................2
2.2 Récupérer les infos Système et ATI.....................................................................................3
2.3 Configurations matérielles des PC testés..............................................................................5
3. Installation du pilote sur une Debian Sid/Sarge:..................................................................................5
3.1 Installation/Compilation du pilote fglrx (noyau 2.4):...........................................................5
3.2 INSTALLATION.................................................................................................................6
3.3 COMPILATION...................................................................................................................6
4. Compilation du pilote fglrx pour un noyau 2.6...................................................................................7
4.1 Compilation du noyau 2.6.0..................................................................................................7
4.2 Vérification de l'AGP et chipsets..........................................................................................7
4.3 Compilation du pilote ATI....................................................................................................8
4.4 Modification pour AMD Athlon...........................................................................................8
4.5 Re−Compilation....................................................................................................................9
5. Un petit tour par les tests:....................................................................................................................9
5.1 Commentaires.....................................................................................................................11
6. Conclusion:........................................................................................................................................11
6.1 Commentaires.....................................................................................................................12
6.2 Retour d'expérience............................................................................................................12
6.3 Notes des auteurs................................................................................................................12
Annexe A: Fichier XF86Config−4........................................................................................................13
Annexe A1................................................................................................................................13
Annexe A2................................................................................................................................21
Annexe A3................................................................................................................................26
Annexe B:..............................................................................................................................................26
i
INSTALLATION DU PILOTE ATI SERIE R9000
Guillaume Membré [email protected]
Michel Luc [email protected]
© 23−12−2003 v0.01−beta
Permission vous est accordée de distribuer des copies exactes ou modifiées de ces articles tant
que ces lignes de permission et le copyright apparaissent dans vos copies et tant que ces copies
restent sous licence FDL ou GPL.
1. Préambule:
1.1 Contributions et contacts
Guillaume Membré qui a résolu le problème de la compilation du module fglrx sur un noyau 2.6
Michel Luc (GAULE, LUG 91) qui a effectué différents tets et installations du R7000 et R9000.
Ce document n'existerait pas sans l'information glanée par de multiples personnes : les développeurs de la Lib
Mesa (OpenGL), de XFree86 et du noyau, celles qui ont relu ce document... etc. Ce texte leur est redevable de
l'intégralité de certaines parties.
Merci à tout ceux qui ont envoyé des informations et des corrections par courrier électronique et plus
particulièrement à Guillaume Membré pour la méthode de mise en oeuvre du pilote ATI sur un noyau 2.6. et
sans qui ce document n'existerait probablement pas.
Grâce aux outils SGML−Tools (Linuxdoc), ce document est disponible dans plusieurs formats.
Contacts:
....
1.2 Versions actualisées du document
Vous trouverez la version la plus récente de l'original en langue française de ce document à la page web :
http://www.???.?.
Les nouvelles versions seront déposées à cette même url.
Des archives seront également disponibles sur divers sites web (serveurs ftp anonymes, gaule... ???) tels que:
_http://???.
_ftp://???.
Si vous traduisez ce document dans une autre langue, faites le nous savoir afin de pouvoir y faire référence.
INSTALLATION DU PILOTE ATI SERIE R9000
1
3D pour ATI Radeon Serie 9000
1.2 CopyRight du document
CopyLeft (c) 2003 par Michel Luc et Guillaume Membré.
Vous pouvez distribuer ce document librement sous réserve de conserver le message de copyright.
La distribution de ce document doit se conformer aux termes de la licence FDL (ou LDP) tels que définis à
l'adresse :
www.fsf.org/copyleft/fdl.html
ou www.tldp.org/COPYRIGHT.html
CopyRight ATI, le logo ATI, Radeon(tm) sont des marques déposées appartenant à ATI Technologies Inc.
OpenGL est une marque déposée par Silicon Graphics.
Les autres noms de produits sont des marques déposées de leurs propriétaires respectifs.
2. Introduction:
A lire absolument avant l'installation, peut être inutile, du pilote propriétaire d'ATI.
Il est question ici de compiler le pilote ATI, module pour le noyau, afin d'avoir l'accélération matériel 3D
pour les cartes HERCULES:ATI/Radeon chipset de la série R9000, R8000 et si vous y tenez (mais inutile)
R7000; AUCUN AUTRE !
2.1 Matériel, pilote ATI, bus AGP, XFree86 et noyau
Ce qui suit décrit l'installation et la compilation du pilote propriétaire d'ATI sur une Debian (Sarge/Sid) mais
reste identique pour les autres distributions, en ce qui concerne la compilation du module DRM (fglrx) du
noyau pour ATI Radeon; La compilation du noyau n'est pas abordée ici.
Etant donné que le paquet utilisé est au format RPM cela ne doit pas poser de problème sur une Mandrake,
RedHat... etc
Les pilotes ATI sont donc disponibles sur le site http://www.ati.com au format RPM pour différentes
versions de XFree86.
L'installation et le fonctionnement du pilote propriétaire d'ATI dépend de la version de XFree86 et de la
version du noyau utilisé.
Une carte ATI radeon de la série 7000 nécessite,
_ soit le pilote ATI pour XFree 4.1 ou 4.2 et un noyau 2.4,
_ soit la version de XFree 4.3
Une carte ATI radeon de la série 9000 nécessite,
_ Le pilote ATI pour XFree 4.1, 4.2 ou 4.3 et un noyau 2.6.
Le noyau Linux, via le bus AGP, sera capable de gérer correctement la carte graphique ou non selon sa
version, la carte mère et la génération de la carte graphique.
1.2 CopyRight du document
2
3D pour ATI Radeon Serie 9000
Les cartes graphiques de la série R9000 (9500/9600/9700/9800) utilisent l'AGP x8 (Rate=x8) qui correspond
à la version 3.0.
Mais la version 3.0 de l'AGP (x8) n'est pas correctement pris en compte par le noyau 2.4, en effet, celui−ci ne
gère que l'AGP Rate=x2/x4 (version 2). Il faut donc, pour avoir l'accélération 3D matériel sur cette série
R9000, installer un noyau version 2.6.
Pour les pilotes ATI de la série R7000 et même 8000 un noyau 2.4 devrait donc être suffisant.
_ Le pilote pour ATI Radeon 7000/7200/7500... est intégré à XFree86 version 4.3.
Pour une Radeon 9500/9600/9700/9800, passez à la compilation du noyau 2.6, comme le bus AGP n'est pas
correctement pris en charge par un noyau 2.4, le module fglrx (DRM) ne fonctionnera pas ou refusera de se
charger.
Votre carte doit se trouver dans la liste de la série R9000:
Driver fglrx glc22
FireGL8700/8800: Driver for chipset: ATI RV250 Id (R9000),
ATI RV250 Ie (R9000), ATI RV250 If (R9000), ATI RV250 Ig (R9000),
ATI RV250 Ld (M9), ATI RV250 Le (M9), ATI RV250 Lf (M9),
ATI RV250 Lg (M9), ATI RV280 5960 (R9200 PRO),
ATI RV280 Ya (R9200LE), ATI RV250SE Yd (R9200SE),
ATI RV250 5C61 (M9+), ATI RV250 5C63 (M9+), ATI R200 QH (R8500),
ATI R200 QL (R8500), ATI R200 QM (R9100), ATI R200 QT (R8500),
ATI R200 QU (R9100), ATI R200 BB (R8500), ATI RV350 AP (R9600),
ATI RV350SE AQ (R9600SE), ATI RV350 AR (R9600 PRO),
ATI RV350 NP (M10), ATI R300 AD (R9500), ATI R300 AE (R9500),
ATI R300 AF (R9500), ATI R300 AG (Fire GL Z1/X1),
ATI R300 ND (R9700 PRO), ATI R300 NE (R9700/R9500 PRO),
ATI R300 NF (R9600 TX), ATI R300 NG (Fire GL X1),
ATI R350SE AH (R9800SE), ATI R350 AK (Fire GL unknown),
ATI RV350 AT (Fire GL T2), ATI RV350 AU (Fire GL T2),
ATI RV350 AV (Fire GL T2), ATI RV350 AW (Fire GL T2),
ATI R350 NH (R9800), ATI R350LE NI (R9800LE), ATI R350 NJ (R9800),
ATI R350 NK (Fire GL unknown)
2.2 Récupérer les infos Système et ATI
Il faut donc commencer par vérifier votre configuration, Bus PCI, AGP, carte ATI et modules chargés.
Vous pouvez utiliser les commandes:
lsmod | grep agp
dmesg | grep agp
lspci −vvv | grep AGP
lspci −vvv | grep ATI
Par exemple pour une ATI Radeon 9700 (R300):
$ lspci −v
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R300 NE [Radeon 9700] (prog−if 0
Subsystem: ATI Technologies Inc: Unknown device 0004
Flags: bus master, stepping, 66Mhz, medium devsel, latency 32, IRQ 5
Memory at d8000000 (32−bit, prefetchable) [size=128M]
I/O ports at 9000 [size=256]
Memory at e8420000 (32−bit, non−prefetchable) [size=64K]
Expansion ROM at <unassigned> [disabled] [size=128K]
2.2 Récupérer les infos Système et ATI
3
3D pour ATI Radeon Serie 9000
Capabilities: <available only to root>
01:00.1 Display controller: ATI Technologies Inc Radeon R300 [Radeon 9700] (Secondary)
Subsystem: ATI Technologies Inc: Unknown device 0005
Flags: stepping, 66Mhz, medium devsel
Memory at e0000000 (32−bit, prefetchable) [disabled] [size=128M]
Memory at e8430000 (32−bit, non−prefetchable) [disabled] [size=64K]
Capabilities: <available only to root>
Nous avons donc ici une Radeon 9700, regardons ce que nous dit le bus AGP:
$ lspci −vvv | grep AGP | grep Rate
Status: RQ=32 Iso− ArqSz=2 Cal=3 SBA+ ITACoh− GART64− HTrans− 64bit− FW− AGP3+
Rate=x4,x8
Command: RQ=1 ArqSz=0 Cal=0 SBA− AGP− GART64− 64bit− FW− Rate=
Status: RQ=256 Iso− ArqSz=0 Cal=0 SBA+ ITACoh− GART64− HTrans− 64bit− FW+ AGP3+
Rate=x4,x8
Ici AGP (Rate=x4,x8) gère autant le x8 que le x4. Une carte graphique AGP x8 ou x4 devrait donc
fonctionner.
Mais l'inverse est aussi possible, si vous avez une CM avec AGP x2,x4 et une carte graphique AGP x8 il est
possible d'avoir l'accélération 3D pour cette carte; L'AGP x4 sera utilisé pour gérer votre carte, avec des
performances correspondantes à AGP x4 :−)
Assurez vous également que l'accélération 3D n'est pas déjà active et que vous avez bien l'OpenGL (Lib
Mesa) d'installé avec glxinfo :
$ glxinfo | grep OpenGL
OpenGL vendor string: VA Linux Systems, Inc.
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 Mesa 3.4.2
Si une ligne indique OpenGL renderer string: Radeon 9x00 xxxxx (3DNow!) alors vous avez l'accel 3D, sinon
vous obtenez OpenGL renderer string: Mesa GLX Indirect, si xlibmesa3 est installé.
Deux fichiers importants, sous /var/log/, dmesg et XFree86.0.log, vont vous donner des informations sur les
raisons du mauvais fonctionnement de votre carte.
Le premier peut être consulté avec les commandes dmesg | less ou dmesg | more
Vous pouvez également y chercher directement les infos sur l'AGP:
# dmesg | grep agp
Vérifiez avec lsmod | grep agp, une ligne comme:
agpgart
37984
0
(unused)
vous indique qu'il n'est pas utilisable pour le module DRM, et c'est là que le contenu du fichier
/var/log/XFree86.0.log va vous indiquer (entre autre) qu'il ne peut pas initialiser le DRI parce que le module
DRM n'est pas chargé ou ne fonctionne pas :
(WW)
(WW)
(WW)
(WW)
(WW)
(WW)
fglrx(0):
fglrx(0):
fglrx(0):
fglrx(0):
fglrx(0):
fglrx(0):
***********************************************
* DRI initialization failed!
* (maybe driver kernel module missing or bad)
* 2D acceleraton available (MMIO)
* no 3D acceleration available
**********************************************
2.2 Récupérer les infos Système et ATI
4
3D pour ATI Radeon Serie 9000
Pas d'inquiétude, tout cela est normal si vous utilisez une ATI de la série R9000 et que vous n'avez pas encore
compilé le pilote ATI avec un noyau 2.6.
Nous verrons, après la compilation, combien ce fichier /var/log/XFree86.0.log est utile pour la configuration
du serveur X et permet facilement de savoir si X a reconnu/chargé le pilote ATI.
Bon évidement vous pouvez utiliser vi, emacs ou un autre éditeur pour consulter le contenu de XFree86.0.log,
mais aussi la commande grep :
grep WW /var/log/XFree86.0.log
grep dri /var/log/XFree86.0.log
grep drm /var/log/XFree86.0.log
grep fglrx /var/log/XFree86.0.log
2.3 Configurations matérielles des PC testés
Résultats de tests sur PC pour un processeur AMD Athlon et un Intel Pentium 4, et également sur une CM bas
de gamme avec chipset SiS.
Config.1 : Radeon 9600pro, CM A7V8X−X/KT400 AMD Athlon 2200+
Config.2 : Radeon 9700, CM SiS Intel P4 2600
Config.3 : Radeon 9700, CM Asustek P4G8X Intel P4 2400
Repérez la configuration (processeur/chipset(CM)) qui correspond le plus à votre machine,
Vous retrouverez la notation (Config.1, Config.2 , Config.3 ) dans la description de la compilation.
3. Installation du pilote sur une Debian Sid/Sarge:
Récupérer le pilote fglrx pour xfree−4.1/4.2/4.3 sur: http://www.ati.com
Pour Xfree86 4.2 (xserver−xfree86 4.2.1−14) le nom est noté de cette façon:
fglrx−glc22−4.2.0−2.5.1.i586.rpm
Vérifiez bien que vous récupérez le pilote correspondant à la version de XFree installé (4.1, 4.2 ou 4.3).
Pour un noyau 2.6 et une ATI Radeon série R9000, choisir le paquet:
http://www2.ati.com/drivers/linux/fglrx−glc22−4.2.0−3.2.8.i586.rpm
Pour la compilation avec un noyau 2.6, se repporter au chapitre suivant
3.1 Installation/Compilation du pilote fglrx (noyau 2.4):
Cette partie est commune à une version 2.4 et 2.6 du noyau, ce n'est qu'une méthode (une explication sur la
façon de procéder). Le titre de cette section indique (noyau 2.4) car elle n'est pas suffisante pour un noyau 2.6,
et c'est volontairement que j'ai utilisé le paquet fglrx−glc22−4.2.0−2.5.1 qui n'est pas adapté pour la version
2.6 du noyau.
Bien, vous avez le paquet qui contient le pilote ATI correspondant a votre version de XFree, il faut encore
vérifier une autre version; La version du compilateur gcc doit être celle qui a été utilisée pour compiler le
noyau. Si votre noyau a été compilé avec gcc−2.95 et que /usr/bin/gcc pointe sur /usr/bin/gcc−3.3 (ls −l
2.3 Configurations matérielles des PC testés
5
3D pour ATI Radeon Serie 9000
/usr/bin/gcc*), le mieux est de modifier ce lien symbolique:
# ln −sf /usr/bin/gcc−2.95 /usr/bin/gcc
3.2 INSTALLATION
# alien fglrx−glc22−4.2.0−2.5.1.i586.rpm
va créer un paquet deb fglrx−glc22 _ 4.2.0−3.5 _ i386.deb
Vérifier le contenu du paquet deb
# dpkg −c fglrx−glc22 _ 4.2.0−3.5 _ i386.deb
: Ok
/usr/X11R6/bin/
fglrxconfig : Pour générer XF86Config−4
fgl _ glxgears : Remplace glxgears
fglrxinfo : Remplace glxinfo
/usr/X11R6/lib/modules/dri/
/usr/X11R6/lib/modules/drivers/
/usr/X11R6/lib/modules/linux/
/usr/X11R6/lib/libGL.so.1.2
Faire une copie de la Lib GL, c'est bien:
# cp libGL.so.1.2 old−libGL.so.1.2
/lib/modules/
les pilotes sont sous /lib/modules/fglrx/
il faut recompiler et installer si le kernel est supérieur à la version 2.4.18−17
# cd /lib/modules/fglrx/build _mod
# ./make.sh
# ../make_ install.sh
: A déplacer ou supprimer
/opt/kde3/
3.3 COMPILATION
Si le noyau, et les sources, sont standard (source : kernel.org) ou si ce noyau a été recompilé à la main, la
compilation (make.sh) fonctionne correctement.
Si le noyau n'a pas été recompilé :
Sous Debian le paquet kernel−source ne permet pas d'utiliser directement le script /lib/modules/fglrx/build _
mod/make.sh, ce script utilisant uname −r pour déterminer l'emplacement des pilotes sous /lib/modules et
vérifier la version des sources dans version.h.
Par exemple:
Noyau installé= kernel−image−2.4.20−3−686
Répertoire= /lib/modules/2.4.20−3−686/
Sources= kernel−source−2.4.20
et uname −r renvoie 2.4.20−3−686
mais le fichier /usr/src/linux/include/linux/version.h contient
define UTS _ RELEASE "2.4.20"
ce qui ne correspond à aucun répertoire sous /lib/modules/
Il faut donc modifier soit le script make.sh, soit version.h
j'ai donc modifié la première ligne de version.h pour obtenir
3.2 INSTALLATION
6
3D pour ATI Radeon Serie 9000
define UTS _ RELEASE "2.4.20−3−686"
ps: Le kernel−headers−2.4.20−3−686 n'est pas suffisant non plus.
Ensuite :
# cd /lib/modules/fglrx/build _mod
# ./make.sh
# cd ..
# ./make_ install.sh
Et là ça marche :−)
il y a un pilote /lib/modules/2.4.20−3−686/kernel/drivers/char/drm/fglrx.o
Pour terminer la config du serveur X la commande
# /usr/X11R6/bin/fglrxconfig
devrait construire un fichier /etc/X11/XF86Config−4 correct.
Il ne reste plus qu'à faire un "reboot"
Mais avec un noyau 2.4 le module fglrx (DRM) pour AGP version 3.0 ne se charge pas,
donc == Pas d'Accélération 3D Matériel !!!
Il faut dans ce cas obligatoirement passer à un noyau 2.6.
4. Compilation du pilote fglrx pour un noyau 2.6
Explication de Guillaume Membré <guillaume.membre.anti−[email protected]>
posté en octobre 2003 sur <debian−user−[email protected]>
Le message original est récupérable ici:
http://lists.debian.org/debian−user−french/2003/debian−user−french−200310/msg01457.html
Pour installer les sources du noyau 2.6 :
# apt−get install kernel−source−2.6.0−xx
des informations sur le noyau 2.6 sur les sites :
http://www.kernel.org
http://dsoulayrol.free.fr/articles/wonderful_2.6.html
4.1 Compilation du noyau 2.6.0
Inclure dans le noyau le support (Y) de l'AGP et du chipset de la CM (via).
DRM non inclus ni compilé en Module.
4.2 Vérification de l'AGP et chipsets
Après compilation et "reboot", un dmesg | grep agp
Config.1 :
# dmesg | grep agp
Linux agpgart interface v0.100 (c) Dave Jones
4. Compilation du pilote fglrx pour un noyau 2.6
7
3D pour ATI Radeon Serie 9000
Detected VIA KT400/KT400A/KT600 chipset
Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 1024M @ 0x80000000
Config.2 :
# dmesg | grep agp
Linux agpgart interface v0.100 (c) Dave Jones agpgart:
Detected SiS 648 chipset agpgart:
Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 128M @ 0xd0000000
4.3 Compilation du pilote ATI
Config.1, Config.2 et Config.3 :
Récupérer la dernière version du pilote:
http://www2.ati.com/drivers/linux/fglrx−glc22−4.2.0−3.2.8.i586.rpm
faire un petit alien la dessus pour convertir en deb
# alien fglrx−glc22−4.2.0−3.2.8.i586.rpm
puis installer:
# dpkg −i −−force−overwrite fglrx−glc22 _ 4.2.0−4.2 _ i386.deb
Il installe différentes lib etc. mais le plus important ce déroule ici :
# cd /lib/modules/fglrx/build _ mod
Lors du ./make.sh j'avais un warning
/lib/modules/fglrx/build _ mod/2.6.x/firegl _ public.c: In function
' _ ke _ get _ vm _ phys _ addr':
/lib/modules/fglrx/build _ mod/2.6.x/firegl _ public.c:1511:warning:
implicit declaration of function 'VMALLOC _ VMADDR'
et lorsque l'on charge le module, le noyau rale.
Le problème est résolu en ajoutant dans /lib/modules/fglrx/build _ mod/firegl _ public.c
la ligne :
# define VMALLOC \_ VMADDR(x) ((unsigned long)(x))
cette ligne provient du fichier /usr/include/asm/pgtable.h
4.4 Modification pour AMD Athlon
Config.1 (AMD) uniquement:
Après avoir compilé et chargé ce nouveau module, lors du lancement de X, on obtient un beau:
Unable to handle kernel paging request at virtual address e096c320
Code: Bad EIP value,
et X plante = écran noir :((
Bref,
pourquoi cette fonction ke _ amd _ adv _ spec _ cache _ feature plante ?
4.3 Compilation du pilote ATI
8
3D pour ATI Radeon Serie 9000
Le contenu est simple, elle permet d'identifier le type de processeur et de retourner 1, ou 0 si c'est un AMD
Athlon et si la famille et le modèle sont égale à 6 ou si la famille est égale à 6, rien de plus.
Il suffit d'éffacer tout le contenu de cette fonction pour retourner toujours 0, soit la nouvelle fonction:
{
return 0;
}
J'ai également supprimé la fonction static int _ init have _ cpuid _ p(void) qui ne sert plus à rien.
4.5 Re−Compilation
Config.1, Config.2 et Config.3 :
Une recompilation, et un "reboot" pour bien décharger le précédent module,
configurer X avec fglrxconfig,
et là, "oh miracle, tout marche" !
5. Un petit tour par les tests:
Config.1 :
# glxinfo | grep OpenGL
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon 9600 Athlon (3DNow!)
OpenGL version string: 1.3 (X4.2.0−3.2.8)
glxgears donne 1 900 FPS
Config.2 :
# glxinfo | grep OpenGL
OpenGL
OpenGL
OpenGL
OpenGL
vendor string: ATI Technologies Inc.
renderer string: Radeon 9700 Pentium 4 (SSE2)
version string: 1.3 (X4.2.0−3.2.8)
extensions:
# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon 9700 Pentium 4 (SSE2)
OpenGL version string: 1.3 (X4.2.0−3.2.8)
# dmesg | grep agp
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected SiS 648 chipset
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: AGP aperture is 128M @ 0xd0000000
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected SiS 645dx chipset
4.5 Re−Compilation
9
3D pour ATI Radeon Serie 9000
agpgart: AGP aperture is 128M @ 0xd0000000
agpgart: Found an AGP 3.0 compliant device.
agpgart: Found an AGP 3.0 compliant device.
glxgears donne 3 214 FPS
fgl _ glxgears donne 195 FPS
4.5 Re−Compilation
10
3D pour ATI Radeon Serie 9000
5.1 Commentaires
6. Conclusion:
Il est donc possible de profiter pleinement de l'accélération 3D avec les ATI Radeon. Le pilote ATI, pour une
carte de la série radeon 9000, se compile avec succès en utilisant un noyau 2.6.
Donc vous pouvez utiliser votre ATI Radeon (et sortir du mode vesa), soit en utilisant le "Driver" radeon et
xfree 4.3 (ou 4.2 dri−trunk) pour la série R7000, soit en utilisant le "Driver" fglrx et un noyau 2.6 pour la série
R9000; Je n'ai pas testé la 9800, ni la série 8000.
Guillame Membré a démontré que les utilisateurs d'une Radeon 9600 Pro et d'un AMD Athlon vont pouvoir
s'adonner aux joies du fps sous Gnu/linux :−))
Un grand merci, donc, à Guillame Membré pour son explication qui m'a été d'une grande utilité.
5.1 Commentaires
11
3D pour ATI Radeon Serie 9000
6.1 Commentaires
Pour alléger un peu votre lecture les résultats pour un processur Intel Pentium sur une ASUSTeK P4G8X
(Config.3), ne sont pas présents mais sont équivalents à quelques petits détails près (suivant le chipset Radeon
de votre carte) à ce que vous avez lu.
Si vous avez une carte ASUS (ou une autre) avec chipset VIA et processeur Intel, la seule différence avec
l'explication de Guillaume Membré consiste à sauter l'étape (4.4) de la seconde modification du fichier
/lib/modules/fglrx/build _ mod/firegl _ public.c spécifique à un processeur AMD Athlon.
Souris PS2 :
Pour une souris PS2 (/dev/psaux), et suivant les options de compilation dans le noyau 2.6.0(test7/test9:test10),
qui apporte la possibilité de mettre en module la gestion de /dev/psaux (/dev/input/mice, /dev/input/mouse0) il
faut dans ce cas charger, dans /etc/modules ou manuellement, mousedev et psmouse sinon la souris ne sera
pas détectée (un pointeur c'est pratique sous X :).
xfree−dri−trunk :
Si vous avez installé un "server−xfree86−dri−trunk" et "xlibmesa−gl1−dri−trunk" il est préférable de repasser
en version 4.2 du server−xfree86 et réinstaller xlibmesa3, sinon fglrx risque de ne pas fonctionner/s'installer.
En cas de problème de démarrage du serveur :
_ Jeter un coup d'oeil au fichier /var/log/XFree86.0.log
_ Vérifier que le lien "/etc/X11/X pointe bien sur le bon serveur /usr/bin/X11/XFree86 (no−dri−trunk).
_ Vérifier que "Driver" est bien fglrx (ni ati, ni radeon).
Une bonne solution est de nettoyer le fichier XF86Config−4, enlever tout ce qui est inutile et pas pris en
compte par le serveur X, en s'aidant du fichier XFree86.0.log.
Carte Mère SiS :
Sur la CM SiS et avec le noyau 2.6−test7, j'ai eu un problème avec le serveur X, la combinaison des touches
[Ctrl]+[Alt]+[BckSpace] ne tuait pas le serveur X mais éteignait brutalement la machine. Ce phénomène ne
c'est pas reproduit avec un noyau 2.6−test9.
Locales FR et gdm :
J'ai également rencontré un problème avec la localisation (FR) et gdm mais je ne sais plus (je n'ai pas pris de
note) sur quelle config. Au démarrage du serveur X, gdm reste obstinément en ENglish et le DRM (Accel 3D)
n'est pas pris en compte, dans une console en relançant gdm (/etc/init.d/gdm restart) gdm redémarre alors en
FRançais et l'accélération matériel 3D est au rendez−vous (bon? J'ai pas l'explication).
6.2 Retour d'expérience
Vous pouvez envoyez des corrections, suggestions et commentaires à l'adresse *_*.*
Toutes corrections pertinentes seront prises en compte dans une nouvelle version.
Avant de signaler une erreur ou de poser une question, lisez attentivement ce document dans son intégralité.
Vous pourrez ensuite envoyer un compte rendu détaillé du problème.
Si ce document est publié sous forme papier, sur CD−ROM, ou autre support, une copie serait très appréciée.
6.3 Notes des auteurs
6.1 Commentaires
12
3D pour ATI Radeon Serie 9000
Annexe A: Fichier XF86Config−4
XF86Config−4 original
XF86Config−4 modifié
Le fichier XF86Config−4 généré par fglrxconfig n'a posé aucun problème avec la CM ASUS et proc Intel.
Pour la CM SiS avec le noyau 2.6−test7 et la Radeon 9700 le fichier de configuration généré par fglrxconfig
ne fonctionnait pas, j'ai donc modifié et nettoyé ce fichier XF86Config−4.
Je suis parti d'une config de Xfree 4.2 créée avec Debconf (dpkg−reconfigure xserver−xfree86) en y ajoutant
les options propre au "Driver" fglrx, puis je n'ai laissé que le minimum pour le premier essais:
modules dbe, glx et dri
inputdevice mouse et keyboard
et dans les sections monitor et device uniquement le "Driver" fglrx et les fréquences de balayage.
Enfin j'ai ajouté au fur et mesure les options (qui fonctionnent) de la config de fglrx.
Annexe A1
XF86Config−4 original créé par fglrxconfig
# File: XF86Config−4
# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
Note by ATI: the below copyright notice is there for servicing possibly
pending third party rights on the file format and the instance of this file.
#
#
#
#
**********************************************************************
Refer to the XF86Config(4/5) man page for details about the format of
this file.
**********************************************************************
Copyright (c) 1999 by The XFree86 Project, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Except as contained in this notice, the name of the XFree86 Project shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in this Software without prior written authorization from the
XFree86 Project.
# **********************************************************************
# DRI Section
# **********************************************************************
Section "dri"
# Access to OpenGL ICD is allowed for all users:
Annexe A: Fichier XF86Config−4
13
3D pour ATI Radeon Serie 9000
Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
#
Group 100
# users
#
Mode 0660
EndSection
# **********************************************************************
# Module section −− this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
# This loads the DBE extension module.
Load
"dbe"
# Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86−DGA extension within that module.
SubSection "extmod"
Option
"omit xfree86−dga"
# don't initialise the DGA extension
EndSubSection
# This loads the Type1 and FreeType font modules
Load
"type1"
Load
"freetype"
# This loads the GLX module
Load
"glx"
# libglx.a
Load
"dri"
# libdri.a
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
RgbPath
#
#
#
#
#
#
#
#
#
"/usr/X11R6/lib/X11/rgb"
Multiple FontPath entries are allowed (which are concatenated together),
as well as specifying multiple comma−separated entries in one FontPath
command (or a combination of both methods)
If you don't have a floating point coprocessor and emacs, Mosaic or other
programs take long to start up, try moving the Type1 and Speedo directory
to the end of this list (or comment them out).
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
FontPath
"/usr/X11R6/lib/X11/fonts/local/"
"/usr/X11R6/lib/X11/fonts/misc/"
"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
"/usr/X11R6/lib/X11/fonts/Type1/"
"/usr/X11R6/lib/X11/fonts/Speedo/"
"/usr/X11R6/lib/X11/fonts/75dpi/"
"/usr/X11R6/lib/X11/fonts/100dpi/"
# The module search path.
#
The default path is shown here.
ModulePath "/usr/X11R6/lib/modules"
Annexe A: Fichier XF86Config−4
14
3D pour ATI Radeon Serie 9000
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging
#
Option "NoTrapSignals"
# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.
#
Option "DontZap"
# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_−> mode switching
# sequences. This allows clients to receive these key events.
#
#
#
#
#
#
Option "Dont Zoom"
Uncomment this to disable tuning with the xvidtune client. With
it the client can still run and fetch card and monitor attributes,
but it will not be allowed to change them. If it tries it will
receive a protocol error.
Option "DisableVidModeExtension"
# Uncomment this to enable the use of a non−local xvidtune client.
#
Option "AllowNonLocalXvidtune"
# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.
#
Option "DisableModInDev"
# Uncomment this to enable the use of a non−local client to
# change the keyboard or mouse settings (currently only xset).
#
Option "AllowNonLocalModInDev"
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver
"Keyboard"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.
#
Option "Protocol"
Annexe A: Fichier XF86Config−4
"Xqueue"
15
3D pour ATI Radeon Serie 9000
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user−controlled (eg, with xset(1))
#
Option "Xleds"
"1 2 3"
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
Option "LeftAlt"
Option "RightAlt"
To customise the XKB settings to suit your keyboard, modify the
lines below (which are the defaults). For example, for a non−U.S.
keyboard, you will probably want to use:
Option "XkbModel"
"pc102"
If you have a US Microsoft Natural keyboard, you can use:
Option "XkbModel"
"microsoft"
Then to change the language, change the Layout setting.
For example, a german layout can be obtained with:
Option "XkbLayout" "de"
or:
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
If you'd like to switch the positions of your capslock and
control keys, use:
Option "XkbOptions" "ctrl:swapcaps"
# These are
#
Option
#
Option
#
Option
#
Option
#
Option
#
"Meta"
"ModeShift"
the default XKB settings for XFree86
"XkbRules"
"xfree86"
"XkbModel"
"pc101"
"XkbLayout" "us"
"XkbVariant" ""
"XkbOptions" ""
Option "XkbDisable"
Option "XkbRules"
Option "XkbModel"
Option "XkbLayout"
"xfree86"
"pc105"
"fr"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol"
"PS/2"
Option "Device"
"/dev/psaux"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
#
Option "Protocol"
"Xqueue"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
#
#
Option "BaudRate"
"9600"
Option "SampleRate" "150"
Annexe A: Fichier XF86Config−4
16
3D pour ATI Radeon Serie 9000
# Emulate3Buttons is an option for 2−button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
#
#
Option "Emulate3Buttons"
Option "Emulate3Timeout"
"50"
# ChordMiddle is an option for some 3−button Logitech mice
#
Option "ChordMiddle"
EndSection
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
**********************************************************************
Other input device sections
this is optional and is required only if you
are using extended input devices. This is for example only. Refer
to the XF86Config man page for a description of the options.
**********************************************************************
Section "InputDevice"
Identifier "Mouse2"
Driver
"mouse"
Option
"Protocol"
Option
"Device"
EndSection
Section "InputDevice"
Identifier "spaceball"
Driver
"magellan"
Option
"Device"
EndSection
Section "InputDevice"
Identifier "spaceball2"
Driver
"spaceorb"
Option
"Device"
EndSection
Section "InputDevice"
Identifier "touchscreen0"
Driver
"microtouch"
Option
"Device"
Option
"MinX"
Option
"MaxX"
Option
"MinY"
Option
"MaxY"
Option
"ScreenNumber"
Option
"ReportingMode"
Option
"ButtonNumber"
Option
"SendCoreEvents"
EndSection
"MouseMan"
"/dev/mouse2"
"/dev/cua0"
"/dev/cua0"
"/dev/ttyS0"
"1412"
"15184"
"15372"
"1230"
"0"
"Scaled"
"1"
Section "InputDevice"
Identifier "touchscreen1"
Driver
"elo2300"
Option
"Device"
"/dev/ttyS0"
Option
"MinX"
"231"
Option
"MaxX"
"3868"
Option
"MinY"
"3858"
Option
"MaxY"
"272"
Option
"ScreenNumber"
"0"
Option
"ReportingMode" "Scaled"
Option
"ButtonThreshold"
"17"
Option
"ButtonNumber"
"1"
Option
"SendCoreEvents"
Annexe A: Fichier XF86Config−4
17
3D pour ATI Radeon Serie 9000
# EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "Monitor0"
HorizSync
30−115
VertRefresh 50−160
Option "DPMS"
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
=== mode lines based on GTF ===
VGA @ 100Hz
Modeline "640x480@100" 43.163 640 680 744 848 480 481 484 509 +hsync +vsync
SVGA @ 100Hz
Modeline "800x600@100" 68.179 800 848 936 1072 600 601 604 636 +hsync +vsync
XVGA @ 100Hz
Modeline "1024x768@100" 113.309 1024 1096 1208 1392 768 769 772 814 +hsync +vsync
1152x864 @ 60Hz
Modeline "1152x864@60" 81.642 1152 1216 1336 1520 864 865 868 895 +hsync +vsync
1152x864 @ 85Hz
Modeline "1152x864@85" 119.651 1152 1224 1352 1552 864 865 868 907 +hsync +vsync
1152x864 @ 100Hz
Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vsync
1280x960 @ 75Hz
Modeline "1280x960@75" 129.859 1280 1368 1504 1728 960 961 964 1002 +hsync +vsync
1280x960 @ 100Hz
Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017 +hsync +vsync
SXGA @ 100Hz
Modeline "1280x1024@100" 190.960 1280 1376 1520 1760 1024 1025 1028 1085 +hsync +vsync
SPEA GDM−1950 (60Hz,64kHz,110MHz,−,−): 1280x1024 @ V−freq: 60.00 Hz, H−freq: 63.73 KHz
Modeline "GDM−1950" 109.62 1280 1336 1472 1720 1024 1024 1026 1062 −hsync −vsync
1600x1000 @ 60Hz
Modeline "1600x1000" 133.142 1600 1704 1872 2144 1000 1001 1004 1035 +hsync +vsync
1600x1000 @ 75Hz
Modeline "1600x1000" 169.128 1600 1704 1880 2160 1000 1001 1004 1044 +hsync +vsync
1600x1000 @ 85Hz
Modeline "1600x1000" 194.202 1600 1712 1888 2176 1000 1001 1004 1050 +hsync +vsync
1600x1000 @ 100Hz
Modeline "1600x1000" 232.133 1600 1720 1896 2192 1000 1001 1004 1059 +hsync +vsync
1600x1024 @ 60Hz
Modeline "1600x1024" 136.385 1600 1704 1872 2144 1024 1027 1030 1060 +hsync +vsync
1600x1024 @ 75Hz
Modeline "1600x1024" 174.416 1600 1712 1888 2176 1024 1025 1028 1069 +hsync +vsync
1600x1024 @ 76Hz
Modeline "1600x1024" 170.450 1600 1632 1792 2096 1024 1027 1030 1070 +hsync +vsync
1600x1024 @ 85Hz
Modeline "1600x1024" 198.832 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +vsync
1920x1080 @ 60Hz
Modeline "1920x1080" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 −hsync −vsync
1920x1080 @ 75Hz
Modeline "1920x1080" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +vsync
1920x1200 @ 60Hz
Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +vsync
1920x1200 @ 75Hz
Modeline "1920x1200" 246.590 1920 2064 2272 2624 1200 1201 1203 1253 +hsync +vsync
2048x1536 @ 60
Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
2048x1536 @ 60
Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
1400x1050 @ 60Hz M9 Laptop mode
ModeLine "1400x1050" 122.000 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync
1920x2400 @ 25Hz for IBM T221, VS VP2290 and compatible display devices
Annexe A: Fichier XF86Config−4
18
3D pour ATI Radeon Serie 9000
# Modeline "1920x2400@25" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync +vsync
# 1920x2400 @ 30Hz for IBM T221, VS VP2290 and compatible display devices
# Modeline "1920x2400@30" 149.250 1920 1928 1982 2044 2400 2402 2404 2434 +hsync +vsync
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# Standard VGA Device:
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName
"Unknown"
# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.
#
Chipset
"generic"
#
#
#
#
The Driver line must be present. When using run−time loadable driver
modules, this line instructs the server to load the specified driver
module. Even when not using loadable driver modules, this line
indicates which driver should interpret the information in this section.
#
#
#
#
#
#
Driver
"vga"
The BusID line is used to specify which of possibly multiple devices
this section is intended for. When this line isn't present, a device
section can only match up with the primary video device. For PCI
devices a line like the following could be used. This line should not
normally be included unless there is more than one video device
installed.
#
BusID
"PCI:0:10:0"
#
VideoRam
256
#
Clocks
25.2 28.3
EndSection
# === ATI device section ===
Section "Device"
Identifier
Driver
# === disable PnP Monitor ===
#Option
# === disable/enable XAA/DRI ===
Option "no_accel"
Option "no_dri"
# === FireGL DDX driver module specific
# === Screen Management ===
Option "DesktopSetup"
Option "MonitorLayout"
Option "IgnoreEDID"
Option "HSync2"
Option "VRefresh2"
Option "ScreenOverlap"
# === TV−out Management ===
Option "NoTV"
Annexe A: Fichier XF86Config−4
"ATI Graphics Adapter"
"fglrx"
"NoDDC"
"no"
"no"
settings ===
"0x00000000"
"AUTO, AUTO"
"off"
"unspecified"
"unspecified"
"0"
"yes"
19
3D pour ATI Radeon Serie 9000
Option "TVStandard"
"NTSC−M"
Option "TVHSizeAdj"
"0"
Option "TVVSizeAdj"
"0"
Option "TVHPosAdj"
"0"
Option "TVVPosAdj"
"0"
Option "TVHStartAdj"
"0"
Option "TVColorAdj"
"0"
Option "GammaCorrectionI"
"0x00000000"
Option "GammaCorrectionII"
"0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities"
"0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay"
"on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#
will be disabled automatically
Option "OpenGLOverlay"
"off"
# === Center Mode (Laptops only) ===
Option "CenterMode"
"off"
# === Pseudo Color Visuals (8−bit visuals) ===
Option "PseudoColorVisuals"
"off"
# === QBS Management ===
Option "Stereo"
"off"
Option "StereoSyncEnable"
"1"
# === FSAA Management ===
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"
# === Misc Options ===
Option "UseFastTLS"
"0"
Option "BlockSignalsOnLock"
"on"
Option "UseInternalAGPGART"
"yes"
Option "ForceGenericCPU"
"no"
BusID "PCI:1:0:0"
# vendor=1002, device=4e45
Screen 0
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "−screen"
# option.
Section "Screen"
Identifier "Screen0"
Device
"ATI Graphics Adapter"
Monitor
"Monitor0"
DefaultDepth 24
#Option "backingstore"
Subsection "Display"
Depth
24
Annexe A: Fichier XF86Config−4
20
3D pour ATI Radeon Serie 9000
Modes
ViewPort
#
Virtual
EndSubsection
EndSection
"1280x1024" "1152x864" "1024x768" "800x600"
0 0 # initial origin if mode is smaller than desktop
1280 1024
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
#
#
#
#
#
#
Any number of ServerLayout sections may be present. Each describes
the way multiple screens are organised. A specific ServerLayout
section may be specified from the X server command line with the
"−layout" option. In the absence of this, the first section is used.
When now ServerLayout section is present, the first Screen section
is used alone.
Section "ServerLayout"
# The Identifier line must be present
Identifier "Server Layout"
#
#
#
#
Each Screen line specifies a Screen section name, and optionally
the relative position of other screens. The four names after
primary screen name are the screens to the top, bottom, left and right
of the primary screen.
Screen "Screen0"
#
#
#
#
Each InputDevice line specifies an InputDevice section name and
optionally some options to specify the way the device is to be
used. Those options include "CorePointer", "CoreKeyboard" and
"SendCoreEvents".
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
### EOF ###
Annexe A2
XF86Config−4 modifié
# File: XF86Config−4
# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.
#
#
#
#
#
#
#
#
#
Note by ATI: the below copyright notice is there for servicing possibly
pending third party rights on the file format and the instance of this file.
Copyright (c) 1999 by The XFree86 Project, Inc.
**********************************************************************
Refer to the XF86Config(4/5) man page for details about the format of
this file.
**********************************************************************
# **********************************************************************
# DRI Section
# **********************************************************************
Section "dri"
# Access to OpenGL ICD is allowed for all users:
Annexe A2
21
3D pour ATI Radeon Serie 9000
#
Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
Group 44
# video
Mode 0660
EndSection
Section "Module"
# This loads the DBE extension module.
Load
"dbe"
# Double buffer extension
# This loads the miscellaneous extensions module, and disables.
#
Load
"extmod"
# initialisation of the XFree86−DGA extension within that module.
SubSection "extmod"
Option
"omit xfree86−dga"
# don't initialise the DGA extension
EndSubSection
# This loads the Type1 and FreeType font modules
Load
"type1"
Load
"freetype"
# Optional Sup Modules
Load
"bitmap"
Load
"ddc"
Load
"int10"
Load
"record"
#
Load
"speedo" # Not used
Load
"vbe"
# initialisation of the XFree86−DGA extension within that module
# This loads the GLX module
#
Load
"GLcore" # Not used
Load
"glx"
# libglx.a
Load
"dri"
# libdri.a
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
# The location of the RGB database.
RgbPath
"/usr/X11R6/lib/X11/rgb"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma−separated entries in one FontPath
# command (or a combination of both methods)
#
#
#
#
FontPath
"unix/:7100"
# Old local font server
FontPath
"unix/:7110"
# Local font server
FontPath
"/usr/lib/X11/fonts/misc"
FontPath
"/usr/lib/X11/fonts/cyrillic"
FontPath
"/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath
"/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath
"/usr/lib/X11/fonts/Type1"
FontPath
"/usr/lib/X11/fonts/Speedo"
FontPath
"/usr/lib/X11/fonts/100dpi"
FontPath
"/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x−ttcidfont−conf.d/dirs/CID"
FontPath "/var/lib/defoma/x−ttcidfont−conf.d/dirs/TrueType"
# The module search path.
Annexe A2
The default path is shown here.
22
3D pour ATI Radeon Serie 9000
#
ModulePath "/usr/X11R6/lib/modules"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging
#
Option "NoTrapSignals"
# Uncomment this to disable the server abort sequence
# This allows clients to receive this key event.
#
Option "DontZap"
# Uncomment this to disable the / mode switching
# sequences. This allows clients to receive these key events.
#
#
#
#
#
#
Option "Dont Zoom"
Uncomment this to disable tuning with the xvidtune client. With
it the client can still run and fetch card and monitor attributes,
but it will not be allowed to change them. If it tries it will
receive a protocol error.
Option "DisableVidModeExtension"
# Uncomment this to enable the use of a non−local xvidtune client.
#
Option "AllowNonLocalXvidtune"
# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.
#
Option "DisableModInDev"
# Uncomment this to enable the use of a non−local client to
# change the keyboard or mouse settings (currently only xset).
#
Option "AllowNonLocalModInDev"
Option "allowmouseopenfail"
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier
Driver
Option
Option
Option
Option
Annexe A2
"Generic Keyboard"
"keyboard"
"CoreKeyboard"
"XkbRules"
"xfree86"
"XkbModel"
"pc105"
"XkbLayout"
"fr"
23
3D pour ATI Radeon Serie 9000
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier
"Generic Mouse"
Driver
"mouse"
Option
"CorePointer"
Option
"Device"
"/dev/psaux"
#
Option
"Device"
"/dev/input/mice"
Option
"Protocol"
"PS/2"
Option
"Emulate3Buttons" "off"
#
Option
"ZAxisMapping" "4 5"
# ChordMiddle is an option for some 3−button Logitech mice
#
Option "ChordMiddle"
EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier
VendorName
ModelName
HorizSync
VertRefresh
Option
EndSection
"Monitor0"
"Iiyama"
"Vision Master Pro450"
30−115
50−160
"DPMS"
Section "Monitor"
Identifier
VendorName
ModelName
HorizSync
VertRefresh
#
Option
EndSection
"Monitor1"
"Iiyama"
"LCD TFT 4316"
31−81
56−75
"DPMS"
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
Section "Device"
Identifier
"ATIcard1"
VendorName
"Hercules"
BoardName
"Radeon 9700"
Driver "fglrx"
VideoRam
131072
#
Option "AGPMode"
"1"
Option "AGPMode"
"3"
Option "DPMS"
"on"
Option "no_accel" "no"
Option "no_dri" "no"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
BusID
"PCI:1:0:1"
screen 1
Option "XINERAMA"
"off"
EndSection
Annexe A2
24
3D pour ATI Radeon Serie 9000
Section "Device"
Identifier
"ATIcard0"
VendorName
"Hercules"
BoardName
"Radeon 9700"
VideoRam
131072
Driver "fglrx"
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === Fire GL DDX driver module specific settings ===
# === Screen Management ===
Option "DesktopSetup" "0x00000000"
Option "Display2" "0"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
BusID
"PCI:1:0:0"
screen 0
#
Option "XINERAMA"
"off"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
Identifier
"Screen1"
Device
"ATIcard1"
Monitor
"Monitor1"
DefaultDepth
24
SubSection "Display"
Depth
8
Modes
"1152x864"
EndSubSection
SubSection "Display"
Depth
15
Modes
"1152x864"
EndSubSection
SubSection "Display"
Depth
16
Modes
"1152x864"
EndSubSection
SubSection "Display"
Depth
24
Modes
"1152x864"
EndSubSection
SubSection "Display"
Depth
32
Modes
"1152x864"
EndSubSection
EndSection
Section "Screen"
Identifier
Annexe A2
"1024x768" "800x600" "640x480"
"1024x768" "800x600" "640x480"
"1024x768" "800x600" "640x480"
"1024x768" "800x600" "640x480"
"1024x768" "800x600" "640x480"
"Screen0"
25
3D pour ATI Radeon Serie 9000
Device
"ATIcard0"
Monitor
"Monitor0"
DefaultDepth
24
SubSection "Display"
Depth
8
Modes
"1280x1024"
EndSubSection
SubSection "Display"
Depth
15
Modes
"1280x1024"
EndSubSection
SubSection "Display"
Depth
16
Modes
"1280x1024"
EndSubSection
SubSection "Display"
Depth
24
Modes
"1280x1024"
EndSubSection
SubSection "Display"
Depth
32
Modes
"1280x1024"
EndSubSection
EndSection
"1152x864" "1024x768" "800x600"
"1152x864" "1024x768" "800x600"
"1152x864" "1024x768" "800x600"
"1152x864" "1024x768" "800x600"
"1152x864" "1024x768" "800x600"
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
Section "ServerLayout"
Identifier
Screen
0
#
Screen
1
InputDevice
InputDevice
#
Option
EndSection
"Default Layout"
"Screen0"
"Screen1" RightOf "Screen0"
"Generic Keyboard"
"Generic Mouse"
"BlankTime"
"5"
### END DEBCONF SECTION
Annexe A3
Annexe B:
Annexe A3
26

Documents pareils