STOP! Perché questa guida si trova sotto la pagina Cestino?. Una guida può essere cestinata dal Gruppo Documentazione se contiene istruzioni compatibili solo con rilasci non più supportati di Ubuntu oppure perché non si ha certezza che lo siano per i rilasci attualmente supportati. Queste pagine richiedono un aggiornamento e una verifica delle istruzioni contenute. Se vuoi riesumare una di queste guide contatta il Gruppo Documentazione nella board sul forum. |
A chi è rivolta questa guida
A chi ha una scheda integrata Intel 885/855GM/855GME/915 e vuole farla funzionare in dualhead (doppio schermo contemporaneamente acceso, ma con due desktop separati l'uno dall'altro).
Prerequisiti
* I dati precisi sulla risoluzione del monitor, sul suo HorizSync, VertRefresh, refresh e dimensioni del display. Li potete trovare tutti sul manuale del monitor.
* Fare un backup del file xorg.conf:
sudo cp /etc/X11/xorg.conf /etc/X11/xorgBACKUP.conf
*Controllare che la propria scheda funzioni con i driver giusti (810), e non con i generici (vesa): basta aprire con qualsiasi editor di testo (vim, gedit, ecc.) il file /etc/X11/xorg.conf e controllare che, sotto la sezione "device", alla linea "driver", sia scritto così:
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
SEGUONO ALTRE LINEE...N.B. alla sezione "Identifier" ci può essere qualsiasi nome: è solo descrittivo e non incide sul funzionamento; l'importante è che poi, quando servirà riferirci a lui, si riscriva esattamente uguale.
Per darvi una visione globale, questa è la parte dell'xorg.conf che riguarda il video (ovviamente i dati sono specifici per il mio portatile, ma la struttura di base è più o meno la stessa per tutti). Notare come sia indicato ed abilitato solo il monitor interno del portatile:
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
Option "UseFBDev" "true"
EndSection
Section "Monitor"
Identifier "Monitor Interno"
Option "DPMS"
HorizSync 30-67
VertRefresh 30-60
Modeline "1280x800@60" 83.91 1280 1312 1624 1656 800 816 824 841
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Monitor Interno"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
Section "DRI"
Mode 0666
EndSection
Cosa si deve fare
Per far sì che tutti e due i monitor funzionino alla loro risoluzione ottimale (anche se diversa fra di loro), basta procedere così:
Modificare la sezione "Device"
Alla sezione "device" già esistente aggiungere le seguenti linee (ovviamente PRIMA della linea "EndSection", che indica la chiusura della sezione):
Screen 0
Option "MonitorLayout" "CRT, CRT+LFP"e creare appena dopo una nuova sezione "device" con questo contenuto:
Section "Device"
Identifier "Card1"
Driver "i810"
Screen 1
Option "MonitorLayout" "CRT, CRT+LFP"
BusID "PCI:0:2:0"
EndSectionAbbiamo così trattato la nostra scheda video come se fossero due separate (una reale e una "virtuale")
Modificare la sezione "Monitor"
Aggiungiamo ora, sotto alla sezione "Monitor" dello schermo del portatile, i dati del vostro schermo esterno (nell'esempio riportato un LCD 19' Samsung 913n); lo facciamo creando una seconda sezione "Monitor"
Section "Monitor"
Identifier "MonExt"
VendorName "Samsung"
ModelName "Samsung 913n"
Option "DPMS"
HorizSync 30.0-81.0
VertRefresh 56.0-75.0
DisplaySize 376.32 301.056
Modeline "1280x1024@60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection"!!!!!!ATTENZIONE!!!!!!" I DATI CHE INSERITE DEVONO ESSERE PRECISISSIMI: UN MODELINE SBAGLIATO O UN REFRESH ERRATO POSSONO ANCHE COMPROMETTERE L'INTEGRITÀ DEL VOSTRO MONITOR
Potete facilmente calcolare il modeline del vostro schermo su uno di questi siti:
http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
http://koala.ilog.fr/cgi-bin/nph-colas-modelines
N.B. più accurati sono i dati che inserite e meglio funzionerà il vostro schermo (ho dovuto inserire le misure del DisplaySize al decimo di millimetro, per poter ottenere la risoluzione desiderata!)
Modificare la sezione "Screen"
Adesso dobbiamo abbinare alla scheda video 'virtuale' "Card1", il nuovo monitor "MonExt"; aggiungiamo quindi sotto alla sezione "screen" già esistente, una nuova sezione:
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "MonExt"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSectionN.B. il "modes" deve contenere i dati della risoluzione che vorrete usare sul monitor esterno
Modificare la sezione "ServerLayout"
Adesso che abbiamo indicato la nostra scheda video, la sua gemella 'virtuale', i dati del monitor esterno e abbiamo abbinato a ciascuna scheda video il monitor che dovrà comandare, è tempo di stabilire come e dove dovranno apparire i due desktop. Alla sezione "ServerLayout" scriviamo:
Section "ServerLayout"
Identifier "DualHead"
Screen "Default Screen" LeftOf "Screen1"
Screen "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSectionLa sezione "Identifier" indica che dovranno essere usati due monitor separati. Le due sezioni "Screen" indicano quali dovranno essere utilizzati e in che posizione (in questo caso il monitor esterno sarà alla destra dello schermo interno. Spostando il cursore del mouse verso destra o verso sinistra, esso passerà da uno schermo all'altro). Le sezioni "InputDevice" riguardano mouse e tastiera, e si rifanno alle prime sezioni di xorg.conf (non trattate in questa guida), quindi potrebbero essere differenti da quelle che vi ho messo io.
Ci sono moltissime opzioni che si possono abilitare e disabilitare. Leggetevi il man di xorg.conf per scoprirle tutte, dando sul terminale il comando:
man xorg.conf
Se volete leggervelo con comodo e stamparlo, basta esportarlo come file di testo tramite il comando:
man xorg.conf > /home/VOSTRA_HOME/manuale_xorg.txt
Xorg.conf finale
Ecco come appare il mio xorg.conf alla fine di questo lavoro:
# /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/CID"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
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 "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
Screen 0
Option "MonitorLayout" "CRT, CRT+LFP"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Card1"
Driver "i810"
Screen 1
Option "MonitorLayout" "CRT, CRT+LFP"
BusID "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "Monitor Interno"
Option "DPMS"
HorizSync 30-67
VertRefresh 30-60
Modeline "1280x800@60" 83.91 1280 1312 1624 1656 800 816 824 841
EndSection
Section "Monitor"
Identifier "MonExt"
VendorName "Samsung"
ModelName "Samsung 913n"
Option "DPMS"
HorizSync 30.0-81.0
VertRefresh 56.0-75.0
DisplaySize 376.32 301.056
Modeline "1280x1024@60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
# Modeline "1280x1024@60" 135.0 1280 1304 1448 1696 1024 1029 1032 1066
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82852/855GM Integrated Graphics Device"
Monitor "Monitor Interno"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "MonExt"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "DualHead"
Screen "Default Screen" LeftOf "Screen1"
Screen "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
#Option "Xinerama" "on"
#Option "Clone" "on"
EndSection
Section "DRI"
Mode 0666
EndSection
Avvertenze
Seguendo questo metodo, purtroppo sullo schermo esterno l'accelerazione 3D è disabilitata.
Fonti
Questa pagina è basata su informazioni trovate su internet, e specialmente su questa pagina:
http://www.wahlau.org/ubuntu_hoary_thinkpad_t43_and_xorg_dual_head_display
