13.1. Configurazione del server X11
La configurazione iniziale dell'interfaccia grafica può essere complicata a volte; schede video molto recenti spesso non funzionano alla perfezione con la versione di X.org fornita nella versione stabile di Debian.
A brief reminder: X.org is the software component that allows graphical applications to display windows on screen. It includes a driver that makes efficient use of the video card. The features offered to the graphical applications are exported through a standard interface, X11 (Wheezy contains its X11R7.7 version).
Le attuali versioni di X.org sono in grado di rilevare automaticamente l'hardware disponibile: questo riguarda la scheda video e il monitor oltre a tastiere e mouse; in effetti, è così comodo che il pacchetto non crea nemmeno più un file di configurazione /etc/X11/xorg.conf
. Tutto ciò è reso possibile dalle funzionalità fornite dal kernel Linux 2.6 (in particolare per tastiere e mouse), dal fatto che ogni driver elenca le schede video supportate e dall'uso del protocollo DDC per prelevare le caratteristiche del monitor.
The keyboard configuration is currently set up in
/etc/default/keyboard
. This file is used both to configure the text console and the graphical interface, and it is handled by the
keyboard-configuration package. Details on configuring the keyboard layout are available in
Sezione 8.1.2, «Configurare la tastiera».
Il pacchetto xserver-xorg-core fornisce un server X generico, come usato dalle versioni 7.x di X.org. Questo server è modulare e usa un insieme di driver indipendenti per gestire i molti diversi tipi di schede video. L'installazione di xserver-xorg assicura che sia il server che almeno un driver video siano installati.
Note that if the detected video card is not handled by any of the available drivers, X.org tries using the VESA and fbdev drivers. The former is a generic driver that should work everywhere, but with limited capabilities (fewer available resolutions, no hardware acceleration for games and visual effects for the desktop, and so on) while the latter works on top of the kernel's framebuffer device. The X server writes its messages to the /var/log/Xorg.0.log
log file, which is where one would look to know what driver is currently in use. For example, the following snippet matches what the intel
driver outputs when it is loaded:
(==) Matched intel as autoconfigured driver 0
(==) Matched vesa as autoconfigured driver 1
(==) Matched fbdev as autoconfigured driver 2
(==) Assigned the driver to the xf86ConfigLayout
(II) LoadModule: "intel"
(II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so