Configurare xorg.conf per dual-head o clone con schede Intel 945GM

Questa guida ha la scopo di aiutare chi possiede un pc con grafica integrata intel 945GM nella configurazione dello xorg.conf al fine di ottenere o l’uso della funzione clone (stesso desktop ue schermi) con un monitor/proiettore esterno o quello della funzione dual-head per visualizzare due desktop differenti su due differenti schermi/proiettore.
Da sottolineare che per alcune cause, sembra limiti dei driver Linux, la seconda modalità di visualizzazione permette di impostare una sola risoluzione per entrambe gli schermi è importante quindi l’adozione di uno schermo non principale di tipo compatibile a quello primario per non ritrovarsi con una immagine troppo degradata per essere utilizzabile o con frequenze di refresh fastidiose.

Modalità clone
nella modalità clone il vostro xorg deve essere configurato come segue:

# /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 /etc/X11/xorg.conf manual page.
# (Type “man /etc/X11/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/X11/fonts/misc”
FontPath “/usr/share/X11/fonts/cyrillic”
FontPath “/usr/share/X11/fonts/100dpi/:unscaled”
FontPath “/usr/share/X11/fonts/75dpi/:unscaled”
FontPath “/usr/share/X11/fonts/Type1″
FontPath “/usr/share/X11/fonts/100dpi”
FontPath “/usr/share/X11/fonts/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 “extmod”
Load “freetype”
Load “int10″
Load “vbe”
Load “glx”
Load “dri”
EndSection

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105″
Option “XkbLayout” “it”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “true”
EndSection

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 “Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller”
Boardname “Intel 945″
Busid “PCI:0:2:0″
Driver “i810″
Option “DevicePresence” “On”
Screen 0
Vendorname “Intel”
Option “MonitorLayout” “CRT, CRT+LFP”
Option “Clone” “on”
EndSection

Section “Monitor”
Identifier “Monitor Generico”
Option “DPMS”
HorizSync 28-64
VertRefresh 43-60
EndSection

Section “Monitor”
Identifier “CRT”
ModelName “External Device”
Option “DPMS”
HorizSync 28-51
VertRefresh 43-60
EndSection

Section “Screen”
Identifier “Default Screen”
Device “Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller”
Monitor “Monitor Generico”
DefaultDepth 24
SubSection “Display”
Depth 1
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 4
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 8
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 15
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 16
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 24
Modes “1280×800″
EndSubSection
EndSection

Section “Screen”
Identifier “CRT-Screen”
Device “Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller”
Monitor “CRT”
DefaultDepth 24
SubSection “Display”
Depth 16
Modes “1024×768″
EndSubSection
SubSection “Display”
Depth 24
Modes “1024×768″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Multihead”
Screen 0 “Default Screen” 0 0
Screen 0 “CRT-Screen” 0 0
# option “Xinerama” “on”
# option “AIGLX” “true”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
InputDevice “stylus” “SendCoreEvents”
InputDevice “cursor” “SendCoreEvents”
InputDevice “eraser” “SendCoreEvents”
EndSection

Section “DRI”
Mode 0666
EndSection

La configurazione è già pronta per la scheda Intel sopra citata è comunque una linea guida di come deve essere impostato uno xorg per ottenere lo stesso effetto su schede di tipo diverso.
Lo stesso discorso vale anche per la configurazione che segue.

Modalità Dual-head

# /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” “it”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “true”
EndSection

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 “Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller”
Driver “i810″
BusID “PCI:0:2:0″
Screen 0
Option “DevicePresence” “true”
Option “MonitorLayout” “CRT, DFP+LFP”
EndSection
Section “Device”
Identifier “Card1″
Driver “i810″
BusID “PCI:0:2:1″
Screen 1
Option “DevicePresence” “true”
Option “MonitorLayout” “CRT, DFP+LFP”
EndSection

Section “Monitor”
Identifier “Monitor Generico”
Option “DPMS”
HorizSync 28-64
VertRefresh 43-60
EndSection

Section “Monitor”
Identifier “Proiettore”
Option “DPMS”
HorizSync 28-64
VertRefresh 43-60
EndSection

Section “Screen”
Identifier “Default Screen”
Device “Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller”
Monitor “Monitor Generico”
DefaultDepth 24
SubSection “Display”
Depth 1
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 4
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 8
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 15
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 16
Modes “1280×800″
EndSubSection
SubSection “Display”
Depth 24
Modes “1280×800″
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1″
Device “Card1″
Monitor “Proiettore”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “800×600″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
Screen “Screen1″ LeftOf “Default Screen”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
InputDevice “stylus” “SendCoreEvents”
InputDevice “cursor” “SendCoreEvents”
InputDevice “eraser” “SendCoreEvents”
Option “clone” “true”
EndSection

Section “DRI”
Mode 0666
EndSection

NOTA: è importante fare sempre una copia di backup del file xorg.conf nella sua configurazione originale prima di apportare qualsiasi modifica in modo da poter ripristinare il server grafico se le configurazioni sopra riportare non dovessero funzionare.

Ciao a tutti.

7 Risposte a “Configurare xorg.conf per dual-head o clone con schede Intel 945GM”

  1. Luca Dice:

    Ciao,
    io utilizzo due monitor con risoluzioni differenti e tutto mi funziona perfettamente, se desideri ti invio il mio xorg.conf

    Saluti
    Luca

  2. shaytan Dice:

    Felicissimo ed onorato di poter postare la tua configurazione in modo da dare sempre ottime guide, invia pure il tutto.
    La mia mail: mauro [dot] fava [at] gmail [dot] com
    riunisci tutto senza spazi.
    Ciao ed a risentirci presto.

  3. Marco Dice:

    Salve Mauro,

    la configurazione riportata è valida anche per le schede i965? Per far funzionare compiz in Ubuntu 7.10 ho dovuto editare compiz-manager aggiungendo la riga SKIP_CHECKS=”yes” perché l’hardware in questione (chipset i965 e sk/video X3100 di Intel) sono blacklistati da Compiz.
    Posso quindi usare l’esempio riportato ma adattarlo alla mia scheda?

    Grazie,

    Marco.

  4. shaytan Dice:

    Non posso fornire una risposta sicura a questa domanda in quanto non possiedo l’hardware in questione, ti posso comunque dire che lo schema generale dello xorg.conf postato dovrebbe funzionare per tutte le schede intel.
    Si tratta quindi di modificare quello che ho scritto mettendo le stringhe giuste che puoi trovare nel tuo xorg.conf.
    Ti consiglio comunque di fare prima una bella copia di backup del file e poi iniziare con le prove.

    P.S.: che distro usi?? Perchè nel caso tu usassi la Ubuntu 7.10 la configurazione del doppio schermo è automatica e lo xorg non ha più la struttura sopra riportata.

    Se vuoi puoi anche mandare una mail tramite il form che trovi nella nuova sede del blog nella sezione contatti all’indirizzo http://www.linuxedintorni.org.
    Ciao

  5. ronny Dice:

    So che nn si parla di questo, ma sto diventando matto, l ascheda del mio notebook e s3 savage, e non capisco come far funzionare la vga, vedo sul plasma fino ad atrrivare all’imissione dell’login, poi sparisce e vedo solo sul monitor, cosa devo scrivere nel fiel xorg?

    Aiutatemi vi prego

  6. Shaytan Dice:

    Dovresti dirmi prima di tutto la tua configurazione (numero di monitor, tipo ecc.ecc.) poi dovresti postare il tuo xorg.conf.
    Ti consiglio comunque di non postarlo qui ma tramite la mia email che trovi nel sito.
    Intanto puoi provare a dare uno sguardo qui:
    https://lists.ubuntu.com/archives/ubuntu-it/2006-December/016803.html
    http://forum.ubuntu-it.org/index.php?topic=100965.0;wap2
    http://forum.ubuntu-it.org/index.php?topic=100965.msg647815

    /*UPDATE*/
    Navigando ho trovate anche questo:
    -Per switchare tra monitor interno, esterno e tv-out, nonchè per attivare le varie modalità clone su ubuntu basta installare il pacchetto s3switch, leggere la documentazione e, se proprio non volete digitare tre parole in croce sul terminale, farsi un paio di scriptini da assegnare alle combinazioni di tasti rapidi pù comode.
    reperibile qui : http://lasperanzaelultimaamoriremamuore.wordpress.com/bussoli/omnibook/

  7. Valerio Dice:

    Ciao ho letto quello ke hai scritto e dato ke io ho la scheda video intel 945gm express chipset family, volevo sapere come dovevo impostarla, intanto ho provato a impostare la modalità dualview e impostare lo schermo del computer come principale e quello della tv come secondario, però vedo che la tv da dei segnali ogni volta che clikko su applica, però non mi compare nulla, resta nero lo schermo della tv, vorrei sapere, se comprando un cavo s-video/ s-video mi cambierebbe qualcosa, dato ke ho un s-video/scart e poi dove, nel caso dovessi farlo, dovrei inserire la modalità clone o la modalità dual-head.Saresti gentilissimo se me lo desriveresti passo x passo,ti ringrazio anticipatamente e spero di riuscire a collegare la tv al pc.ciao

Lascia una Risposta