Ménage dans xorg.conf

Plop,

En installant fglrx, j’ai remarqué que mon xorg.conf était particulièrement monstrueux. Je voulais savoir s’il y avait moyen de faire un peu de ménage. Voici la totalité de mon xorg.conf :

[code]dunatotatos@PC-Duna:~$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 “aticonfig-Screen[0]-0” 0 0
InputDevice “Mouse0” "CorePointer"
InputDevice “Keyboard0” "CoreKeyboard"
EndSection

Section “Files”

#FontPath     "/usr/share/fonts/X11/cyrillic"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/X11/misc"
FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/Type1"
FontPath     "/usr/share/fonts/X11/100dpi"
FontPath     "/usr/share/fonts/X11/75dpi"
FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath     "built-ins"

EndSection

Section "Module"
Load "dri2"
Load "glx"
Load "dbe"
Load "dri"
Load "record"
Load "extmod"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
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	  330   210	# mm
Identifier   "Monitor0"
VendorName   "LPL"
ModelName    "LP154WX4-TLC8"

EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option “VendorName” "ATI Proprietary Driver"
Option “ModelName” "Generic Autodetecting Monitor"
Option “DPMS” "true"
EndSection

Section “Device”

    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option     "NoAccel"            	# [<bool>]
    #Option     "SWcursor"           	# [<bool>]
    #Option     "Dac6Bit"            	# [<bool>]
    #Option     "Dac8Bit"            	# [<bool>]
    #Option     "BusType"            	# [<str>]
    #Option     "CPPIOMode"          	# [<bool>]
    #Option     "CPusecTimeout"      	# <i>
    #Option     "AGPMode"            	# <i>
    #Option     "AGPFastWrite"       	# [<bool>]
    #Option     "AGPSize"            	# <i>
    #Option     "GARTSize"           	# <i>
    #Option     "RingSize"           	# <i>
    #Option     "BufferSize"         	# <i>
    #Option     "EnableDepthMoves"   	# [<bool>]
    #Option     "EnablePageFlip"     	# [<bool>]
    #Option     "NoBackBuffer"       	# [<bool>]
    #Option     "DMAForXv"           	# [<bool>]
    #Option     "FBTexPercent"       	# <i>
    #Option     "DepthBits"          	# <i>
    #Option     "PCIAPERSize"        	# <i>
    #Option     "AccelDFS"           	# [<bool>]
    #Option     "IgnoreEDID"         	# [<bool>]
    #Option     "DisplayPriority"    	# [<str>]
    #Option     "PanelSize"          	# [<str>]
    #Option     "ForceMinDotClock"   	# <freq>
    #Option     "ColorTiling"        	# [<bool>]
    #Option     "VideoKey"           	# <i>
    #Option     "RageTheatreCrystal" 	# <i>
    #Option     "RageTheatreTunerPort" 	# <i>
    #Option     "RageTheatreCompositePort" 	# <i>
    #Option     "RageTheatreSVideoPort" 	# <i>
    #Option     "TunerType"          	# <i>
    #Option     "RageTheatreMicrocPath" 	# <str>
    #Option     "RageTheatreMicrocType" 	# <str>
    #Option     "ScalerWidth"        	# <i>
    #Option     "RenderAccel"        	# [<bool>]
    #Option     "SubPixelOrder"      	# [<str>]
    #Option     "ShowCache"          	# [<bool>]
    #Option     "DynamicClocks"      	# [<bool>]
    #Option     "VGAAccess"          	# [<bool>]
    #Option     "ReverseDDC"         	# [<bool>]
    #Option     "LVDSProbePLL"       	# [<bool>]
    #Option     "AccelMethod"        	# <str>
    #Option     "DRI"                	# [<bool>]
    #Option     "ConnectorTable"     	# <str>
    #Option     "DefaultConnectorTable" 	# [<bool>]
    #Option     "DefaultTMDSPLL"     	# [<bool>]
    #Option     "TVDACLoadDetect"    	# [<bool>]
    #Option     "ForceTVOut"         	# [<bool>]
    #Option     "TVStandard"         	# <str>
    #Option     "IgnoreLidStatus"    	# [<bool>]
    #Option     "DefaultTVDACAdj"    	# [<bool>]
    #Option     "Int10"              	# [<bool>]
    #Option     "EXAVSync"           	# [<bool>]
    #Option     "ATOMTVOut"          	# [<bool>]
    #Option     "R4xxATOM"           	# [<bool>]
Identifier  "Card0"
Driver      "radeon"
VendorName  "ATI Technologies Inc"
BoardName   "Mobility Radeon HD 3650"
BusID       "PCI:1:0:0"

EndSection

Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
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 "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection[/code]

Je suppose déjà que les lignes “Option” commentées sont totalement inutiles… Mais le reste ?

Merci d’avance pour votre aide :wink:
Duna

Personnellement, mon xorg.conf a été généré par Xorg. Tu peux copier ton xorg.conf actuel ailleurs et faire un dpkg-reconfigure xserver-xorg qui devrait t’en refaire un plus clean. Pense juste à rajouter ton driver de carte graphique.

Salut,

Et si tu fais une seule erreur il te faudra plusieurs siècles pour compenser le temps que tu vas gagner si cela marche et seulement quelques centaines d’années pour amortir le temps que tu vas perdre à le faire :006 :006 :006

Une ode anti-optimisation ? C’est joli…

[quote=“ggoodluck47”]Salut,

Et si tu fais une seule erreur il te faudra plusieurs siècles pour compenser le temps que tu vas gagner si cela marche et seulement quelques centaines d’années pour amortir le temps que tu vas perdre à le faire :006 :006 :006[/quote]

Pas grave, je passe tout mon temps à bidouiller mon PC. Je me suis même amusé à faire une jolie présentation du sources.list.

Oki, je tente. Merci.

Une bonne méthode pour savoir ce que tu peux enlever est de regarder ton /var/log/Xorg.0.log,
je parie que tu y verras déjà des lignes du genre loading modules machin already enabled by default , loading anyway (en gros), ce qui veux dire que tu peux enlever les modules correspondant dans ton Xorg.conf.
Chez moi, il n’y a plus de partie modules dans le Xorg.conf, mais dri et glx sont quand même lancés.

Avoir un /var/log/Xorg.0.log sans aucun WW est déjà un bon début d’optimisation. :wink:

J’imagine que tu voulais plutôt faire du ménage dans la partie dans le Xorg.conf qui se situe plus bas
mais avec une carte intel de base, je n’ai jamais eu une telle partie.

[quote=“ggoodluck47”]Salut,

Et si tu fais une seule erreur il te faudra plusieurs siècles pour compenser le temps que tu vas gagner si cela marche et seulement quelques centaines d’années pour amortir le temps que tu vas perdre à le faire :006 :006 :006[/quote]
En même temps, suffit de faire une sauvegarde du xorg.conf avant, et de revenir dessus en cas de problème…

Depuis quelque temps Xorg (grace a hal et evdev ),gère bien la détection automatique. Il y a peut être à changer “fglrx”, pour un autre.

[quote]Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option “XkbRules” "xorg"
Option “XkbModel” "pc105"
Option “XkbLayout” "fr"
Option “XkbVariant” "latin9"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "fglrx"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
EndSection
[/quote]