Two faced FreeBSD - or is that two headed?

Peter Risdon peter at circlesquared.com
Wed Oct 20 12:08:38 PDT 2004


Louis LeBlanc wrote:
> On 10/20/04 01:40 PM, Michael Clark sat at the `puter and typed:
> I dont have the
>>computer here to post the config =(

You need two screen sections, two monitor sections and two device 
sections in the X config file.

If it helps, a working example follows:


# less /etc/X11/XF86Config

Section "ServerLayout"
         Identifier     "Layout0"
         Screen      0  "Screen0" 0 0
         Screen      1  "Screen1" LeftOf "Screen0"
         InputDevice    "Keyboard0" "CoreKeyboard"
         InputDevice    "Mouse0" "CorePointer"

  Option       "Clone" "off"
   Option       "Xinerama" "on"
EndSection

Section "Files"
     FontPath    "/usr/local/share/fonts"
     FontPath    "/usr/X11R6/lib/X11/fonts"
     FontPath    "/usr/local/share/fonts/override"
     FontPath    "/usr/X11R6/lib/X11/fonts/100dpi"
     FontPath    "/usr/X11R6/lib/X11/fonts/75dpi"
     FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic"
     FontPath    "/usr/X11R6/lib/X11/fonts/latin2"
     FontPath    "/usr/X11R6/lib/X11/fonts/local"
     FontPath    "/usr/X11R6/lib/X11/fonts/misc"
     FontPath    "/usr/X11R6/lib/X11/fonts/PEX"
     FontPath    "/usr/X11R6/lib/X11/fonts/Speedo"
     FontPath    "/usr/X11R6/lib/X11/fonts/TTF"
     FontPath    "/usr/X11R6/lib/X11/fonts/Type1"
     FontPath    "/usr/local/share/fonts/100dpi"
     FontPath "/usr/X11R6/lib/X11/fonts/artwiz-fonts"
     FontPath "/usr/X11R6/lib/X11/fonts/artwiz-aleczapka-en"
EndSection

Section "Module"

         # Load "freetype"
         # Load "xtt"
         Load  "extmod"
         Load  "glx"
         Load  "dri"
         Load  "dbe"
         Load  "record"
         Load  "xtrap"
         Load  "type1"
         Load  "speedo"
     Load "freetype"
EndSection

Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "Auto"
         Option      "Device" "/dev/sysmouse"
         Option          "ZAxisMapping"          "4 5"

EndSection

Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "keyboard"
         Option      "XkbModel" "pc102"
         Option      "XkbLayout" "gb"
EndSection

Section "Monitor"
         Identifier   "Monitor0"
         HorizSync    30.0 - 81.0
         VertRefresh  56.0 - 75.0
EndSection

Section "Monitor"
         Identifier   "Monitor1"
         HorizSync    30.0 - 81.0
         VertRefresh  56.0 - 75.0
EndSection

Section "Device"
         Identifier  "Card0"
         Driver      "mga"
         ChipSet     "mgag400"
         Card        "mga mgag400"
         BusID       "pci:1:0:0"
         Screen      0
EndSection

Section "Device"
         Identifier  "Card1"
         Driver      "mga"
         ChipSet     "mgag400"
         Card        "mga mgag400"
         BusId       "pci:1:0:0"
         Screen      1
EndSection

Section "Screen"
         Identifier "Screen0"
         Device     "Card0"
         Monitor    "Monitor0"
         DefaultDepth     24
         SubSection "Display"
                 Depth     1
         EndSubSection
         SubSection "Display"
                 Depth     4
         EndSubSection
         SubSection "Display"
                 Depth     8
         EndSubSection
         SubSection "Display"
                 Depth     15
         EndSubSection
         SubSection "Display"
                 Depth     16
         EndSubSection

         SubSection "Display"
                 Depth     24
                 Modes    "1280x1024" "1280x960" "1152x864" "1024x768" 
"800x600" "640x480"
         EndSubSection
EndSection

Section "Screen"
         Identifier "Screen1"
         Device     "Card1"
         Monitor    "Monitor1"
         DefaultDepth     24
         SubSection "Display"
                 Depth     1
         EndSubSection
         SubSection "Display"
                 Depth     4
         EndSubSection
         SubSection "Display"
                 Depth     8
         EndSubSection
         SubSection "Display"
                 Depth     15
         EndSubSection
         SubSection "Display"
                 Depth     16
         EndSubSection

         SubSection "Display"
                 Depth     24
                 Modes    "1280x1024" "1280x960" "1152x864" "1024x768" 
"800x600"
"640x480"
         EndSubSection
EndSection

Section "DRI"
         Group        0
EndSection




Peter.

-- 

the circle squared

network systems and software

http://www.circlesquared.com


More information about the freebsd-questions mailing list