[Lugbz-list] configurazione xorg per l'uso di due monitor con un laptop

Daniele Gobbetti gdaniele at gmx.net
Mon Mar 19 13:05:44 CET 2007


Il giorno dom, 18/03/2007 alle 13.59 +0100, Patrick Ohnewein ha scritto:
> E secondo vorrei investigare lo switch "-layout" per non aver bisogno di più 
> file di configurazione ma mettere tutte le config (single monitor, beamer, 
> dual head) in un solo file. Ideale sarebbe poi poter impostare il menu di 
> GDM, per poter fare lo switch fra i modes da li e non dover uscire sulla 
> console.

Su GDM non so, faccio sempre il login in shell, ma per -layout è molto
semplice.

Si tratta di moltiplicare le istanze "Screen" (e di conseguenza quelle
"Device" e "Monitor"). Dopodichè creare diversi "serverlayout" con
identificatori diversi e chiamarli ad esempio in questo modo:

$ startx -- -layout double

Attenzione che il primo doppio-dash è necessario perchè l'argomento
successivo venga letto da X e non da startx stesso!

Il layout che parte di default è il primo che sta scritto nel file
xorg.conf.

Allegato trovate il mio xorg.conf (scheda intel), per dubbi o
perplessità chiedete pure :)


> Perchè non ho ancora corretto queste cosette? Perchè attualmente mi funziona 
> tutto anche se non in modo ideale ;-)
> 
Perchè sei piiiiiiiigro (e lo dimostra la distro che hai scelto :)

> Happy hacking!
> Patrick

Ciao,
DAniele

--

-------------- parte successiva --------------
### BEGIN DEBCONF SECTION
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
#
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Files"
	# if the local font server has problems, we can fall back on these
    FontPath 	"/usr/share/fonts/override"
    FontPath 	"/usr/X11R6/lib/X11/fonts/TrueType"
    FontPath 	"/usr/share/fonts/X11/Type1"
    FontPath 	"/usr/share/fonts/X11/misc"
    FontPath 	"/usr/share/fonts/X11/100dpi"
    FontPath 	"/usr/share/fonts/X11/75dpi"
EndSection

Section "ServerFlags"
	Option "AllowMouseOpenFail"
EndSection

Section "Extensions"
	Option  "Composite"     "enable"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"it"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mouse0"
	Option		"Protocol"		"PS/2"
	Option		"YAxisMapping"		"4 5"
	Option		"XAxisMapping"		"6 7"
	Option		"Emulate3Buttons"	"off"
	Option		"EmulateWheel"		"on"
	Option		"EmulateWheelButton"	"2"
	Option		"EmulateWheelInertia"	"5"
	Option		"EmulateWheelTimeout"	"100"
EndSection

Section "InputDevice"
	Identifier	"USB Mouse"
	Driver		"mouse"
	Option		"Device"		"/dev/input/mouse1"
	Option		"Protocol"		"ImPS/2"
	Option		"YAxisMapping"		"4 5"
#	Option		"Emulate3Buttons"	"on"
#	Option		"Emulate3Timeout"	"50"
EndSection

Section "Device"
	Identifier	"Intel0"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	VideoRam	65535
	Option "XAANoOffscreenPixmaps" "true"
	Option "AddARGBGLXVisuals" "On"
	Option "AllowGLXWithComposite" "true" 
	Screen		0
	Option "DevicePresence" "true"
	Option "DRI"      "true"
	Option "DDCMode" "True"
	Option "MonitorLayout" "CRT,LFP"
#	Option "FixedPipe"	"A"
EndSection

Section "Device"
	Identifier	"Intel"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	VideoRam	65535
	Option "XAANoOffscreenPixmaps" "true"
	Option "AddARGBGLXVisuals" "On"
	Option "AllowGLXWithComposite" "true" 
	Screen		0
	Option "DRI"      "true"
	Option "MonitorLayout" "CRT,LFP"
	Option	"Clone"	"true"
EndSection

Section "Device"
	Identifier	"Intel1"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	VideoRam	65535
	Option "XAANoOffscreenPixmaps" "true"
	Option "AddARGBGLXVisuals" "On"
	Option "AllowGLXWithComposite" "true" 
	Screen		1
	Option "DevicePresence" "true"
	Option "DRI"      "true"
	Option "DDCMode" "True"
	Option "MonitorLayout" "CRT,LFP"
#	Option "FixedPipe"	"A"
EndSection


Section "Monitor"
	Identifier	"MLCD"
	Option		"DPMS"
	VertRefresh	60
EndSection

Section "Monitor"
	Identifier	"MCRT"
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"LCD"
	Device		"Intel0"
	Monitor		"MLCD"
	DefaultDepth   24 
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"SLCD"
	Device		"Intel"
	Monitor		"MLCD"
	DefaultDepth   24 
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"CRT"
	Device		"Intel1"
	Monitor		"MCRT"
	DefaultDepth   24 
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"single"
	Screen		0 "SLCD" 0 0
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"USB Mouse"	"SendCoreEvents"
	Option		"AIGLX"	"true"
	Option		"DontVTSwitch" "true"
#	Option		"DontZap"	"true"
EndSection

Section "ServerLayout"
	Identifier	"dual"
	Screen		0 "LCD" 0 0
	Screen		1 "CRT" LeftOf "LCD"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"USB Mouse"	"SendCoreEvents"
	Option		"AIGLX"	"true"
	Option		"Xinerama" "true"
	Option 		"Clone"	"off"
	Option		"DontVTSwitch" "true"
	Option		"DontZap"	"true"
EndSection

Section "DRI"
	Group	0
	Mode	0666
EndSection

### END DEBCONF SECTION


More information about the Lugbz-list mailing list