Dual screen sur laptop Asus (SiSCtrl)

Benoît Plunus plunus.benoit at gmail.com
Ven 23 Sep 23:06:27 UTC 2005


Bonjour,
J'utilise un portable Asus A2500H avec Breezy Badger sur lequel je
voudrais connecter un écran supplémentaire.
J'ai installé les drivers SiS et l'utilitaire SiSCtrl.
Cette utilitaire ne modifie pas directement le fichier de
configuration mais donne les modifications à faire. J'ai essayé de
faire cela mais j'ai du me planter quelque part pcq après reboot le
serveur X n'a plus voulu démarrer.
Voici donc ce que SiSCtrl me dit de faire:

#######################################################################
For the current configuration - except mode and desktop size settings
- to be permanent, you need to edit your X configuration file. This
file is probably named /etc/X11/xorg.conf and consists of several
"sections". Most of the configuration SiSCtrl can do affects the
"Monitor" and "Device" sections. In the following, you see the data to
be put in these sections to preserve the current setup.

(Note that this fragment does not suffice to fully configure X, not to
mention Dual Head, Xinerama or MergedFB mode. There are several other
sections required, see man Xserver. For detailed SiS-related
documentation, see http://www.winischhofer.at/linuxsisvga.shtml)

black/bold = keywords; section delimiters
grey = configuration hints
red = settings changed/added by sisctrl
blue = additional configuration hints
Lines starting with "#" are comments and will be ignored

# In Dual Head mode, this "Monitor" section is only used
# for CRT2. A second one, for CRT1, is added below.

Section "Monitor"
	Identifier ""

	# VertRefresh ??-?? (optional; used for CRT2 only)
	# HorizSync ??-?? (optional; used for CRT2 only)
	# Option "DPMS" (optional; used for CRT2 only)

	# Gamma correction for CRT2
	Gamma 1.200 1.200 1.200
EndSection

# In Dual Head mode, this "Device" section is only used
# for CRT2. A second one, for CRT1, is added below.

Section "Device"
	Identifier "Silicon Integrated Systems (SiS"

	# Now for the real thing:
	Driver "sis"

	# "BusID" is mandatory for Dual Head mode.
	BusID "PCI:1:0:0"

	# "Screen" is mandatory for Dual Head mode.
	# "Screen 0" is CRT2 (master), "Screen 1" is CRT1 (slave)
	Screen 0

	# EnableSiSCtrl must be set to use SiSCtrl
	Option "EnableSiSCtrl" "yes"

	# [sisctrl] Set CRT1 device type (Note: overrides auto-detection)
	Option "ForceCRT1Type" "VGA"

	# [sisctrl] Set CRT2 device type (Note: overrides auto-detection)
	Option "ForceCRT2Type" "LCD"

	# [sisctrl] LCD related options
	# All set to defaults

	# [sisctrl] Enable/disable gamma correction for CRT2
	Option "CRT2Gamma" "on"

	# [sisctrl] Gamma brightness for CRT2
	# The driver does NOT write these to the hardware. Instead, for
	# using gamma brightness, you need to execute sisctrl with the
	# -setgammabrightness (or -sg) switch at X server start. It is
	# most convenient to do this by adding this to your ~/.xsession
	# or ~/.xinitrc file:
	#    sisctrl -sg
	# If you run Xinerama, do that twice for both screens. Add this:
	#    sisctrl -screen 1 -sg
	# In Dual Head mode, the options "NewGammaXXX" are
	# preferred over "CRT2NewGammaXXX" (although both
	# variants are accepted equally).
	Option "GammaBrightness" "0.160 0.160 0.160"
	Option "GammaContrast" "-0.020 -0.020 -0.020"

	# [sisctrl] Xv (video overlay) related options for CRT2
	Option "XvDefaultContrast" "2"
	Option "XvDefaultBrightness" "10"
	Option "XvDefaultHue" "0"
	Option "XvDefaultSaturation" "0"
	Option "XvDefaultDisableGfxLR" "no"
EndSection

# For Dual Head mode, a second "Monitor" section is required.
# The above "Monitor" section is for CRT2, while the following
# one is for CRT1. For example:

Section "Monitor"
	# Replace IDENTIFIER with the real one from the "Monitor"
	# tag in your "Screen" section for CRT1
	Identifier "IDENTIFIER"

	# VertRefresh ??-?? (optional, used for CRT1 only)
	# HorizSync ??-?? (optional, used for CRT1 only)
	# Option "DPMS" (optional, used for CRT1 only)

	# Gamma correction for CRT1
	Gamma 1.100 1.100 1.100
EndSection


# For Dual Head mode, a second "Device" section is required.
# The above "Device" section is for CRT2, while the following
# one is for CRT1. Note that not all options can be set in this
# second "Device" section. Options that determine settings
# which both heads need to know about are only allowed in the
# "Device" section for CRT2.
# Options that are allowed here are all "XvDefault...", all
# gamma correction related options and a few more. For example:

Section "Device"
	# Replace IDENTIFIER with the real one from the "Device"
	# tag in your "Screen" section for CRT1
	Identifier "IDENTIFIER"

	# Now for the real thing:
	Driver "sis"

	# "BusID" is mandatory for Dual Head mode.
	BusID "PCI:1:0:0"

	# "Screen" is mandatory for Dual Head mode.
	# "Screen 0" is CRT2 (master), "Screen 1" is CRT1 (slave)
	Screen 1

	# EnableSiSCtrl must be set to use SiSCtrl
	Option "EnableSiSCtrl" "yes"

	# Enable/disable gamma correction for CRT1
	Option "CRT1Gamma" "on"

	# Gamma brightness for CRT1
	# The driver does NOT write these to the hardware. Instead, for
	# using gamma brightness, you need to execute sisctrl with the
	# -setgammabrightness (or -sg) switch at X server start. It is
	# most convenient to do this by adding this to your ~/.xsession
	# or ~/.xinitrc file:
	#    sisctrl -sg
	# If you run Xinerama, do that twice for both screens. Add this:
	#    sisctrl -screen 1 -sg
	Option "NewGammaBrightness" "0.280 0.280 0.280"
	Option "NewGammaContrast" "0.110 0.110 0.110"

	# Xv (video overlay) related options for CRT1
	Option "XvDefaultContrast" "2"
	Option "XvDefaultBrightness" "10"
	Option "XvDefaultHue" "0"
	Option "XvDefaultSaturation" "0"
	Option "XvDefaultDisableGfxLR" "no"
	Option "XvGamma" "off"
EndSection


Additionally, you need a second "Screen" section for CRT1 and your
"ServerLayout" section needs to be extended to know about the second
screen. Add

	Screen "SCREEN2" rightof "SCREEN1"

where "SCREENx" are the Identifiers of the two screen sections.
Instead of "rightof","leftof", "above" and "below" can be selected.

To enable Xinerama, add to your "ServerLayout" section

	Option "Xinerama" "on"
#######################################################################

et voici les sections concernées de mon fichier /etc/X11/xorg.conf:

#######################################################################
Section "Device"
	Identifier	"Silicon Integrated Systems (SiS) 65x/M650/740 PCI/AGP VGA
Display Adapter"
	Driver		"sis"
	BusID		"PCI:1:0:0"
	Option 		"EnableSiSCtrl" 	"yes"
EndSection

Section "Monitor"
	Identifier	"Écran générique"
	Option		"DPMS"
	HorizSync	28-49
	VertRefresh	43-72
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Silicon Integrated Systems (SiS) 65x/M650/740 PCI/AGP VGA
Display Adapter"
	Monitor		"Écran générique"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
EndSection
#######################################################################

Merci d'avance a celui qui pourra m'aider :)

--
Benoît Plunus
aka MyRdDiN




Plus d'informations sur la liste de diffusion ubuntu-fr