How does X choose between Monitors?

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

 



I have two 'Monitor' sections and two 'Screen' sections (A screen
section for each monitor that might be plugged in at any given time). 

-Does X choose a Monitor based on what it auto detects?
-How do I set it up to be able to switch between two different monitors
depending on which one is plugged into the computer?

Attached is my config file.
Thanks for your help,
-M

# File generated by anaconda.

Section "ServerLayout"
     	Identifier     "Anaconda Configured"
    	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice	"Mouse1" "SendCoreEvents"
      InputDevice    "Keyboard0" "CoreKeyboard"
	Option	"DontVTSwitch"	"true"
	Option "DontZoom"	"true"
	Option "DontZap"	"true"
EndSection

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

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
	Option	"XkbRules"	"xfree86"
	Option	"XkbModel"	"pc105"
	Option	"XkbLayout"	"us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "PS/2"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection


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


Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "SAM"
        ModelName    "S/M 150MP"
        HorizSync   30-81
        VertRefresh 56-85
	  ModeLine "640x480" 25.175 640 656 752 800 480 490 492 525 -hsync -vsync
	  ModeLine "800x600" 40 800 840 968 1056 600 601 605 628 +hsync +vsync
	  Modeline "1024x768" 65 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
        Option "DPMS"
EndSection

Section "Monitor"
	Identifier "Monitor1"
	Vendorname "SAM"
	ModelName "c8"
	HorizSync 30-80
	VertRefresh 56-75
	ModeLine "640x480" 25.175 640 656 752 800 480 490 492 525 -hsync -vsync
	ModeLine "800x600" 40 800 840 968 1056 600 601 605 628 +hsync +vsync
	ModeLine "1024x768" 65 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
	ModeLine "1280x1024" 108 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
	Option "DPMS"
EndSection

Section "Device"
	Identifier   "Intel 815"
        Driver       "i810"
        VendorName   "Intel 815"
        BoardName     "Intel 815"
	VideoRam 16384
EndSection

Section "Screen"
	Identifier   "Screen0"
        Device       "Intel 815"
        Monitor      "Monitor0"
	DefaultDepth	16
	Subsection "Display"
        	Depth       16
            Modes       "1024x768" "800x600" "640x480" 
	EndSubsection
	Subsection "Display"
		Depth	24
		Modes	"1280x1024" "1024x768" "800x600"
	EndSubsection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device "Intel 815"
	Monitor "Monitor1"
	DefaultDepth 24
	Subsection "Display"
		Depth 16
		Modes	"1024x768" "800x600" "640x480"
	EndSubsection
	Subsection "Display"
		Depth 24
		Modes	"1280x1024" "1024x768" "800x600"
	EndSubsection
EndSection

Section "DRI"
	Mode 0666
EndSection

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux