Dynamically switch ServerLayout - is it possible ?

Joe Ammann joe at pyx.ch
Mon Oct 24 03:02:57 PDT 2005


On Monday 24 October 2005 11:43, Patrick Steiner wrote:
> hi,
>
> could you please post your xorg.conf and you 915resolution execute
> string? because i habe got an dell optiplex sx280 and bigger resolutions
> then 1280x1024 wont work :-(.

I have attached my current xorg.conf. Still needs some tuning ... I'm working 
with KDM as my display manager and have a script which starts X with the 
correct layout. The "correct" layout is determined via lspci etc.

During boot of the machine, I'm using the command

855resolution 5c 1400 1050

to make the 1400x1050 resolution known to the broken video BIOS of the i915. 
Just realised now that I'm using 855resolution instead of 915resolution, but 
this should be the same.

> do i really need to rebuild the xserver? i currently use:
> xorg-x11-6.8.2-37.FC4.49.2 (Fedora Core 4)

No, I did not rebuild X. I'm using xorg-x11-6.8.2-1.EL.13.20 from CentOS (or 
RHEL 4). What I did was just to download the i915 DRI snapshot from 
http://dri.freedesktop.org/snapshots/, which replaced the kernel and xorg 
driver modules. But I'm still running the normal RPM beside that change. The 
snapshot has a simple install.sh script which takes care of everything.

CU, Joe
-------------- next part --------------
# Xorg configuration created by system-config-display

Section "ServerLayout"
	Identifier     "undocked"
	Screen      0  "Screen undocked" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "USBMouse" "SendCoreEvents"
EndSection

Section "ServerLayout"
	Identifier     "dockwork"
	Screen      0  "Screen dockwork" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerLayout"
	Identifier     "dockhome"
	Screen      0  "Screen dockhome" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# RgbPath is the location of the RGB database.  Note, this is the name of the 
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
        Load  "GLcore"
        Load  "v4l"
	Load  "dri"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#	Option	"Xleds"		"1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#	Option	"XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#	Option	"XkbModel"	"pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#	Option	"XkbModel"	"microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#	Option	"XkbLayout"	"de"
# or:
#	Option	"XkbLayout"	"de"
#	Option	"XkbVariant"	"nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#	Option	"XkbOptions"	"ctrl:swapcaps"
# Or if you just want both to be control, use:
#	Option	"XkbOptions"	"ctrl:nocaps"
#
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "de_CH"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons"
EndSection

Section "InputDevice"
	# This section controls an optional USB mouse
	Identifier  "USBMouse"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier   "Monitor undocked"
	VendorName   "Dell"
	ModelName    "LCD Panel 1400x1050"
	HorizSync    31.0 - 90.0
	VertRefresh  59.0 - 75.0
	Option	    "dpms"
EndSection

Section "Monitor"
	Identifier   "Monitor dockwork"
	VendorName   "Dell"
	ModelName    "FW2100"
	HorizSync    31.0 - 90.0
	VertRefresh  60.0 - 60.0
	Option	    "dpms"
        Option      "NoDDC"
EndSection

Section "Monitor"
	Identifier   "Monitor dockhome"
	VendorName   "Sony"
	ModelName    "GST410S"
	HorizSync    31.0 - 90.0
	VertRefresh  59.0 - 85.0
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard undocked"
	Driver      "i810"
	VendorName  "Intel"
	BoardName   "Intel 915GM"
	#Option      "XvMCSurfaces" "6"
	Option      "XVideo"
        Option      "MonitorLayout" "CRT,LFP"
        Option      "Clone"
        #Option      "CloneRefresh" "60"
EndSection

Section "Device"
	Identifier  "Videocard dockhome"
	Driver      "i810"
	VendorName  "Intel"
	BoardName   "Intel 915GM"
	#Option      "XvMCSurfaces" "6"
	Option      "XVideo"
        Option      "MonitorLayout" "CRT,LFP"
        Option      "Clone"
        Option      "CloneRefresh" "85"
EndSection

Section "Device"
	Identifier  "Videocard dockwork"
	Driver      "i810"
	VendorName  "Intel"
	BoardName   "Intel 915GM"
	#Option      "XvMCSurfaces" "6"
	Option      "XVideo"
        Option      "MonitorLayout" "DFP+CRT,NONE"
EndSection

Section "Screen"
	Identifier "Screen undocked"
	Device     "Videocard undocked"
	Monitor    "Monitor undocked"
	DefaultDepth     24
	SubSection "Display"
		Viewport  0 0
		Depth     24
		Modes     "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen dockwork"
	Device     "Videocard dockwork"
	Monitor    "Monitor dockwork"
	DefaultDepth     24
	SubSection "Display"
		Viewport  0 0
		Depth     24
		Modes     "1600x1200" "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen dockhome"
	Device     "Videocard dockhome"
	Monitor    "Monitor dockhome"
	DefaultDepth     24
	SubSection "Display"
		Viewport  0 0
		Depth     24
		Modes     "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	#Group        0
	Group        "video"
	Mode         0666
EndSection

Section "Extensions"
	Option "Composite"
	Option "RENDER"
EndSection

Section "ServerFlags"
	Option "RandR"
EndSection


More information about the xorg mailing list