[ydl-gen] xrandr and multiple screens

Stephen Harker sjh at adfa.edu.au
Thu Apr 15 14:21:16 JST 2010


This may be of some interest to those struggling with second screens.
I recently modified my xorg.conf following information given in
<http://www.thinkwiki.org/wiki/Xorg_RandR_1.2>.  The basic proposition
is that xorg.conf kludges should not be needed to get clone or dual
monitor setups.  I based my xorg.conf on one generated from
Xautoconfig with some of the modifications suggested in the above
document (mainly the visual line).  With this done I could plug in an
external monitor to my iBook and get a display doing (for example):

xrandr --output LVDS --auto --output VGA-0 --auto --same-as LVDS

or

xrandr --output LVDS --auto --output VGA-0 --auto --below LVDS

For all fonts to diplay correctly the generated xorg.conf assumes all
font directories are found by the X Font server.  I ensured that all font
directories were added to /etc/fs/config using:

            chkfontpath --add directoryname

After this I ran (i) mkfontdir on each directory and then ran (ii)
'fc-cache -fv'.

-- 
Stephen Harker                           s.harker at adfa.edu.au
PEMS                
UNSW at ADFA
-------------- next part --------------

# Xorg configuration created by system-config-display

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.

	FontPath     "unix/:7100"
EndSection

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

Section "InputDevice"

# Change "XkbModel" to "macintosh_old" if you are using
# the deprecated adb keycodes.
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "macintosh"
	Option	    "XkbLayout" "us"
EndSection

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

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
	Identifier   "Generic Monitor"
#	ModelName    "LCD Panel 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
	#HorizSync    31.5 - 48.5
	#VertRefresh  40.0 - 90.0
	Option	    "DPMS"
EndSection

Section "Monitor"
    Identifier  "VGA-0"
    Option 	"Ignore" "false"
    Option	"DPMS"
EndSection

Section "Monitor"
    Identifier  "LVCD"
    Option "DPMS"
EndSection

Section	"Monitor"
	Identifier	"TV"
	Option		"Ignore" "True"
EndSection

Section "Device"
	### Available Driver options are:-
	#Option	"SWcursor"
	Identifier  "Card0"
	Driver      "radeon"
	VendorName  "ATI Technologies Inc"
	BoardName   "ATI Radeon Mobility M10/M11"
	#Option	    "HWcursor"
	Option	    "fbdev" "/dev/fb0"
	Option	    "UseFBDev" "true"
	#Option      "CloneMode" "1024x768"
	#Option      "CloneMode" "False"
	#BusID       "PCI:0:16:0"
        #Option "MergedFB"	"on"
	#Option "MergedNonRectangular" "true"
 	#Option "BusType" "PCI"
        #Option      "AGPMode" "2"
	#Option "AccelMethod" "XAA"
	Option "AccelMethod" "EXA"
        #Option      "EnablePageFlip" "On"
        Option "LVDSProbePLL" "true"
	#Option "CRT2VRefresh" "40.0-90.0"
        #Option  "CRT2Position" "Clone"
        #Option  "CRT2Position" "RightOf"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Device     "Card0"
        Monitor    "Generic Monitor"
        DefaultDepth     24
        SubSection "Display"
                Depth     8
                Modes    "1600x1200" "1600x900" "1280x1024" "1024x768" "800x600" "640x480"
		Virtual	 2048 2048
        EndSubSection
        SubSection "Display"
                Depth     16
               Modes    "1600x1200" "1600x900" "1280x1024" "1024x768" "800x600" "640x480"
		Virtual	 2048 2048
        EndSubSection
        SubSection "Display"
                Depth     24
               Modes    "1600x1200" "1600x900" "1280x1024" "1024x768" "800x600" "640x480"
		Virtual	 2048 2048
        EndSubSection
EndSection

Section "ServerLayout"
	Identifier     "Default Layout"
	#Screen      0  "Screen0"  # LeftOf "Screen1"
	Screen	    "Default Screen" 
        #Option "Xinerama" "true"
        #Option "MergedFB" "On"
	#Option "Clone" "On"
	# Option "Clone" "False"
 	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	#Option	    "OffTime" "10"
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection

-------------- next part --------------
#
# Default font server configuration file for Red Hat Linux
#

# allow a max of 10 clients to connect to this font server
client-limit = 10

# when a font server reaches its limit, start up a new one
clone-self = on

# alternate font servers for clients to use
#alternate-servers = foo:7101,bar:7102

# where to look for fonts
#
catalogue = /usr/share/X11/fonts/misc:unscaled,
	/usr/share/X11/fonts/75dpi:unscaled,
	/usr/share/X11/fonts/100dpi:unscaled,
	/usr/share/X11/fonts/OTF,
	/usr/share/X11/fonts/100dpi,
	/usr/share/X11/fonts/75dpi,
	/usr/share/X11/fonts/Type1,
	/usr/share/fonts/default/Type1,
	/usr/share/fonts/bitmap-fonts,
	/usr/share/fonts/bitstream-vera,
	/usr/share/fonts/default/ghostscript,
	/usr/share/fonts/msfonts,
	/usr/share/fonts/msfonts-style,
	/usr/share/ghostscript/fonts,
	/usr/local/share/ghostscript/fonts,
	/usr/share/X11/fonts/TTF,
	/usr/local/TeX/texmf-dist/fonts/truetype/public/belleek,
	/usr/share/fonts/ISO8859-2/misc:unscaled,
	/usr/share/fonts/ISO8859-2/75dpi:unscaled,
	/usr/share/fonts/ISO8859-2/100dpi:unscaled,
	/usr/share/fonts/ISO8859-2/misc,
	/usr/share/fonts/ISO8859-2/75dpi,
	/usr/share/fonts/ISO8859-2/100dpi,
	/usr/share/fonts/KOI8-R/misc:unscaled,
	/usr/share/fonts/KOI8-R/100dpi:unscaled,
	/usr/share/fonts/KOI8-R/misc,
	/usr/share/fonts/KOI8-R/100dpi,
	/usr/share/fonts/japanese/misc:unscaled,
	/usr/share/fonts/japanese/misc,
	/usr/share/fonts/japanese/TrueType
# in 12 points, decipoints
default-point-size = 120

# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100

# use lazy loading on 16 bit (usually Asian) fonts
deferglyphs = 16

# how to log errors
use-syslog = on

# don't listen to TCP ports by default for security reasons
no-listen = tcp


More information about the yellowdog-general mailing list