GDeLTK

TCL/TK

Notepad++

Wine

Linux

XML

FOP

Guitare

Voyages?

Citations

Reste à faire

edit SideBar


Configuration de la carte graphique :

Depuis la 9.04, la configuration de la carte graphique est automatique. Il n'est donc plus nécessaire de configurer le fichier xorg.conf sauf pour des cas particuliers.

Séquence de touche pour fermer le serveur X :

Le raccourci [Ctrl] + [Alt] + [⌫] est déactivé depuis la 9.04. Pour le réactiver, aller dans la configuration du système, puis dans région et langue et dans Disposition du clavier. Dans l'onglet avancés, cocher la case en vis à vis de [Ctrl] + [Alt] + [⌫]

Pour activer le raccourci clavier [Ctrl] + [Alt] + [⌫] : (obsolète)

Ce raccourci est désormais désactivé sous Karmic :

[Alt] + [Impr Ecran] + K

sous Jaunty : pour le réactiver : sudo dontzap --disable

Emplacement du fichier de configuration de xorg

 /etc/X11/xorg.conf

/!\ toujours faire une sauvegarde du fichier de configuration

 sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Editer le fichier xorg.conf dans un terminal avec nano

 sudo nano /etc/X11/xorg.conf  

Voir les erreurs éventuelles de xorg

éditer le fichier /var/log/Xorg.0.log

Liste des commandes du serveur X

  • startx pour lancer manuellement l'interface graphique
  • Lister des informations graphiques
    • xdpyinfo : informations générales sur le serveur graphique
    • xwininfo : l'utilisateur lance cette commande, puis il clique sur la fenêtre qui l'intéresse et il obtient des informations très détaillées sur les caractéristiques graphiques de cette fenêtre
  • editres Editeur de ressources graphiques
  • xev : Crée une fenêtre et montre quels sont les évènements générés par les différentes actions sur cette fenêtre (MotionNotify, LeaveNotify, ButtonPress, VisibilityNotify, Expose...etc)
  • xhost : pour contrôler l'accès au serveur X Window System
  • xmodmap : utilitaire pour clavier et souris
  • xrdb : utilitaire pour la base de données des ressources X Window System
  • xset : paramétrer les préférences d'un utilisateur
  • xvidtune : tuning de X Window System
  • xmacro

Reconfigurer le serveur X :

 sudo dpkg-reconfigure xserver-xorg

Récupérer la liste des périphériques :

  • dans une console :
 cat /proc/bus/input/devices
  • dans un terminal en ligne de commande :
 cat /proc/bus/input/devices | more

nota : En cas de branchement de la souris sur un port usb différent de celui d'origine, il se peut que le paramètre "phys" change de valeur, ce qui peut empêcher le serveur X Window de démarrer si ce paramètre apparaît dans la configuration de la souris. Il faut alors ouvrir le fichier device pour récupérer le nouveau paramètre "phys" puis mettre à jour xorg.conf

Changement manuel de la résolution

  • Sous X, il est possible de changer la résolution de l’écran de plusieurs manières. Dans le fichier de configuration du serveur X on peut spécifier un certain nombre de résolutions d’écran, et ensuite passer de l’une à l’autre avec ctrl+alt+ + et ctrl+alt+ -".
  • Utiliser la commande xrand, par exemple pour une taille de 1024x768 et un fréquence verticale de 75 Hz,
 sudo xrandr -s 1024x768 -r 75

Pour tester si le fichier de conf généré fonctionne

 #X -config /root/xorg.conf.new

et si X démarre sans le fameux

 Fatal server error: no screens found

je l'arrête avec Ctrl+C et je remplace le fichier de conf par le nouveau.

 #mv /etc/X11/xorg.conf /etc/X11/xorg.conf.ori
 #mv /root/xorg.conf.new /etc/X11/xorg.conf

Je peux ensuite redémarrer le serveur ou juste X avec #startx

Le contenu du fichier xorg.cong pour Hardy Heron

 # xorg.conf (X.Org 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 xorg.conf manual page.
 # (Type "man 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 "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
 EndSection

 Section "InputDevice"
	Identifier	"Logitech MX3100"
	Driver		"evdev"
	Option		"Name"		"Logitech USB Receiver"
	Option		"Device"		"/dev/input/event2
	Option		"HWHEELRelativeAxisButtons" "6 7"
 EndSection

 Section "Device"
	Identifier	"Configured Video Device"
 EndSection

 Section "Monitor"
	Identifier	"Configured Monitor"
 EndSection

 Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
 EndSection

 Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Logitech MX3100" "SendCoreEvents"
 EndSection

Le contenu du fichier xorg.cong pour Hardy Heron (obsolète)

Ce fichier contient les options de configuration pour utiliser les boutons de la souris Logitech MX 1000

 # 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 xorg.conf manual page.
 # (Type "man 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 "Files"
 EndSection

 Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
 EndSection

 Section "InputDevice"
	Identifier	"Logitech MX3100"
	Driver		"evdev"
	Option          "Name"          	"Logitech USB Receiver"
	Option           "Device"     "/dev/input/event2"
	Option          "HWHEELRelativeAxisButtons" "6 7"
 EndSection
 #	Option		"Protocol" "evdev"
 #	Option		"SendCoreEvents"
 #	Option      	"Buttons" "12"
 #	Option		"CorePointer"
 # 	Option          "Phys"          	"usb-0000:00:02.1-1/input1"
 Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
 EndSection

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

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

 Section "Device"
	Identifier	"ATI Technologies Inc RV280 [Radeon 9200 PRO]"
	Driver		"ati"
	BusID		"PCI:3:0:0"
 EndSection

 Section "Monitor"
	Identifier	"G90f-2"
	Option		"DPMS"
 EndSection

 Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies Inc RV280 [Radeon 9200 PRO]"
	Monitor		"G90f-2"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
 EndSection

 Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Logitech MX3100" "SendCoreEvents"

 # Uncomment if you have a wacom tablet
 #	InputDevice     "stylus"	"SendCoreEvents"
 #	InputDevice     "cursor"	"SendCoreEvents"
 #	InputDevice     "eraser"	"SendCoreEvents"
 EndSection

Le contenu du fichier Xorg.conf pour kubuntu gutsy

 # /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 xorg.conf(5) manual page.
 # (Type "man 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 "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	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"
	# 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	"vbe"
 EndSection

 Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
	Option		"XkbVariant"	"oss"
 EndSection

 Section "InputDevice"
        Identifier      "Logitech MX3100"
        Driver          "evdev"
        Option          "Name"          "Logitech USB Receiver"
        Option          "Phys"          "usb-0000:00:02.1-1/input1"
        Option          "HWHEELRelativeAxisButtons" "6 7"
	Option		"CorePointer"
 EndSection

 Section "Device"
	Identifier	"ATI Technologies Inc RV280 [Radeon 9200 PRO]"
	Driver		"ati"
	BusID		"PCI:3:0:0"
 EndSection

 Section "Monitor"
	Identifier	"G90f-2"
	Option		"DPMS"
 EndSection

 Section "Screen"
	Identifier	"Default Screen"
	Device		"ATI Technologies Inc RV280 [Radeon 9200 PRO]"
	Monitor		"G90f-2"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		 "1600x1280" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
 EndSection

 Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Logitech MX3100" "CorePointer"
 EndSection

 Section "DRI"
	Mode	0666
 EndSection