[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Xephyr on AMD64 Etch a.k.a multiseat



On Wed, Aug 01, 2007 at 11:31:24PM -0300, peter wrote:
>  So my normal xorg.conf has i2c, ddc, int10, and vbe commented out.  I was
> going to post some snippets of my xorg.conf, but it's going to be a lot more
> useful to actually post the whole thing.

 and as usual I forgot to.  This time for sure...

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC
# xorg.conf for multiseat operation, g965+r128.

# can start i810 head without any probe:
#  startx /usr/bin/fluxbox -- -layout simple &

# This X config omits the card init stuff, so to use the r128 it still needs
#  sudo X -config xorg.conf.probe -probeonly
# then 
#  startx /usr/bin/fluxbox -- :1 -layout seat1 -sharevts vt8 &
#  startx /usr/bin/fluxbox -- :0 -layout seat0 -sharevts vt7 &
# occasional colour corruption on i810 head, but glxgears makes it go away
#or 
#  startx /usr/bin/fluxbox -- -layout alltogether &


# /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 "ServerFlags"
        Option "DefaultServerLayout" "simple"
#        Option "DefaultServerLayout" "alltogether"
#        Option "DefaultServerLayout" "seat0"
        Option "AllowMouseOpenFail"  "true"
        Option "AIGLX" "false"
EndSection

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"
	FontPath	"/usr/share/fonts/X11/misc"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

#Section "Extensions"
#	Option	"Composite"	"disable"
#EndSection

Section "Module"
#	Load	"i2c"
	Load	"bitmap"
#	Load	"ddc"
	Load	"dri"
	SubSection "extmod"
		Option "omit xfree86-dga"
	EndSubSection
#	Load	"extmod" # subsection does this
	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"	"us"
	Option		"XkbOptions"	"ctrl:nocaps"
	Option		"Autorepeat"	"200 40"
#Ubuntu default: lv3:ralt_switch   ISO level 3 shift
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
#	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier "NoKeyboard"
#	Option "CoreKeyboard"
	Driver "void"
EndSection

Section "InputDevice"
	Identifier "NoMouse"
#	Option "CorePointer"
	Driver "void"
EndSection


Section "Device"
	Identifier	"i810"
	Driver		"intel"
	BusID		"PCI:0:2:0"
#	VideoRam	131072
#	VideoRam	262144 # warning about no room for DRI tiling...
# this still limits the AperTexSize to less than 65536
	VideoRam	190000
#	VideoRam	240000
#Option "CacheLines" "integer" # more for better 2D, less for better 3D
#	Option "LinearAlloc" "integer" # not useful for 3D?  just increase videoram?
# just an aperture size, not allocated memory. default: 32768
#	Option "AperTexSize" "65536"

#	Option		"Legacy3D" "false"  # not for i965 yet.  This would disable DRI, contrary to docs which say it's ignored
#	Option		"VBERestore" "true"
#	Option "XvMCSurfaces" "7"
#	Option "PageFlip" "true"
#	Option "TripleBuffer" "true"
EndSection

Section "Device"
	Identifier	"r128"
	Driver		"r128"
#	Option "DMAForXv" "true" # hard lockups
	BusID		"PCI:6:1:0"

	Option		"NoInt10" "true"
	Option "NoDDC" "true"  # somehow r128 sees the i810's VBE BIOS...
	Option "DDC" "false"
#	Option "NoAccel" "true"
	Option "VGAAccess" "false"
EndSection

Section "Device"
	Identifier	"mga"
	Driver		"mga"
	BusID		"PCI:6:0:0"
EndSection


Section "Monitor"
	Identifier	"opti"
	Option		"DPMS"
	DisplaySize	320 240
	# 32x24 cm
	HorizSync	30-70
	VertRefresh	50-120
EndSection

Section "Monitor"
	Identifier	"Daytek 17"
	DisplaySize	320 240
	Option		"DPMS"
	HorizSync	28-60
	VertRefresh	43-72
EndSection

Section "Monitor"
	Identifier	"Daytek 14"
	Option		"DPMS"
	DisplaySize	263 197
	# 17" specs * 14/17
	HorizSync	30-48
	VertRefresh	40-90
EndSection

Section "Monitor"
	Identifier	"auto"
	Option		"DPMS"
#	DisplaySize	320 240
	# 32x24 cm
#	HorizSync	30-70
#	VertRefresh	50-120
EndSection

Section "Screen"
	Identifier	"i810 Screen"
	Device		"i810"
	Monitor		"auto"
#	Monitor		"Daytek 17"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1280x960" "1024x768" "800x600" "720x480" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"mga Screen"
	Device		"mga"
	Monitor		"Daytek 14"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "720x480" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"r128 Screen"
	Device		"r128"
	Monitor		"Daytek 17"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "720x480" "640x480"
	EndSubSection
EndSection


Section "ServerLayout"
        Identifier	"simple"
	Screen		"i810 Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	Option		"SingleCard" "true"  # like IsolateDevice
	Option "InitPrimary" "true"
EndSection


Section "ServerLayout"
	Identifier	"alltogether"
	Screen		"i810 Screen"
#	Screen		"mga Screen"
	Screen		"r128 Screen" rightof "i810 Screen"
#	Option		"Xinerama" "true"

	Option		"SingleCard" "true"  # like IsolateDevice
	Option "InitPrimary" "true"

	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
#	InputDevice	"Keyboard0" "CoreKeyboard"
#        InputDevice	"Keyboard1" "SendCoreEvents"
#	InputDevice	"Mouse0" "CorePointer"
#        InputDevice	"Mouse1" "SendCoreEvents"
EndSection

################ Seat 0
Section "ServerLayout"
        Identifier	"seat0"
	Screen		"i810 Screen"
	InputDevice	"Keyboard0" "CoreKeyboard"
	InputDevice	"Mouse0" "CorePointer"
	Option		"SingleCard" "true"  # like IsolateDevice
	Option "InitPrimary" "true"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"evdev"
	Option		"Phys"		"isa0060/serio0/input0"
#	Option "evBits"  "+1"
#	Option "keyBits" "~1-255 ~352-511"
#	Option "Pass"    "3"
			   
#	Option		"Device"	"/dev/input/event0"
#	Option		"XkbRules"	"xorg"
#	Option		"XkbModel"	"pc105"
#	Option		"XkbLayout"	"us"
#	Option		"XkbOptions"	"ctrl:nocaps"
	Option		"Autorepeat"	"200 40"
EndSection

Section "InputDevice"
	Identifier	"Mouse0"
#	Driver		"mouse"
#	Option		"Protocol"	"ExplorerPS/2"
#	Option		"Device"	"/dev/input/mouse0"
	Driver		"evdev"
	Option		"product"	"0xc501" # logitech cordless
# from evdev(4)
#	Option "evBits"  "+1-2"
#	Option "keyBits" "~272-287"
#	Option "relBits" "~0-2 ~6 ~8"
#	Option "Pass"    "3"

	Option		"ZAxisMapping"		"4 5"
EndSection


################ Seat 1
Section "ServerLayout"
        Identifier     "seat1"
	Screen		"r128 Screen"
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Keyboard1" "CoreKeyboard"
#	InputDevice	"Generic Keyboard"

	Option		"SingleCard" "true"  # like IsolateDevice
	Option "Display" "CRT"

	Option		"NoInt10" "true"
# not needed for r128 or mga, even after fresh bootup.  modules loaded included int10, vbe
# without int10 and vbe, mga locks machine hard if display not initted with them first
# with int10, but without i2c, ddc, or vbe, mga locks whether or not commented
# on r128?
	Option "InitPrimary" "false"

	Option "NoDDC" "true"  # somehow r128 sees the i810's VBE BIOS...
	Option "DDC" "false"
#	Option "NoAccel" "true" # no effect here in ServerLayout
	Option "VGAAccess" "false"
EndSection

Section "InputDevice"
	Identifier	"Keyboard1"
	Driver		"evdev"
	Option		"Phys"		"isa0060/serio1/input0"
# from evdev(4)
#	Option "evBits"  "+1"
#	Option "keyBits" "~1-255 ~352-511"
#	Option "Pass"    "3"
	Option		"Autorepeat"	"200 40"
EndSection

Section "InputDevice"
	Identifier	"Mouse1"
	Driver		"mouse"
#	Option		"Protocol"		"ExplorerPS/2"
#	Option		"Device"		"/dev/input/mouse1"
	Driver		"evdev"
	Option		"product"	"0xc00c" # the Dell mouse
# from evdev(4)
#	Option "evBits"  "+1-2"
#	Option "keyBits" "~272-287"
#	Option "relBits" "~0-2 ~6 ~8"
#	Option "Pass"    "3"
				  
	Option		"ZAxisMapping"		"4 5"
EndSection


Section "DRI"
	Mode	0666
EndSection

Attachment: signature.asc
Description: Digital signature


Reply to: