|
segv
Starting Member
USA
19 Posts |
Posted - 12/10/2002 : 02:39:47
|
I've got dual head mode to work on XFree86 4.2 on my P2120. Ignore the font and input sections, I've only left them in for completeness. The file specifies the following four modes:
$ startx -- -layout IntLayout (default) [internal display only 1280x768; external monitor can be attached, but will show same picture distorted]
$ startx -- -layout ExtLayout [external display only 1600x1200; internal display can be turned on, but will show same picture distorted]
Here comes the good stuff:
$ startx -- -layout DualLayout [internal display runs at 1280x768 as ":0.0" and external monitor runs at 1600x1200 as ":0.1"; windows can be started on either display but can't be moved across]
$ startx -- -layout XineLayout [internal display runs at 1280x768 and external at 1024x768 (note same number of lines); both monitors side-by-side form one big desktop (aka Xinerama mode) and windows can be moved arbitrarily between the two, or even be placed on the edge]
I haven't gotten DVD playback to work in the latter two modes. It would be nice to have the movie on one screen and the controls on the other. Ah well ...
### BEGIN DEBCONF SECTION # XF86Config-4 (XFree86 server configuration file) generated by dexconf, the # Debian X Configuration tool, using values from the debconf database. # # Edit this file with caution, and see the XF86Config-4 manual page. # (Type "man XF86Config-4" at the shell prompt.) # # If you want your changes to this file preserved by dexconf, only make changes # before the "### BEGIN DEBCONF SECTION" line above, and/or after the # "### END DEBCONF SECTION" line below. # # To change things within the debconf section, run the command: # dpkg-reconfigure xserver-xfree86 # as root. Also see "How do I add custom sections to a dexconf-generated # XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.
Section "Files" FontPath "unix/:7100" # local font server # if the local font server has problems, we can fall back on these FontPath "/usr/lib/X11/fonts/misc" FontPath "/usr/lib/X11/fonts/cyrillic" FontPath "/usr/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/lib/X11/fonts/Type1" FontPath "/usr/lib/X11/fonts/Speedo" FontPath "/usr/lib/X11/fonts/100dpi" FontPath "/usr/lib/X11/fonts/75dpi" EndSection
Section "Module" Load "GLcore" Load "bitmap" Load "dbe" Load "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "record" Load "speedo" Load "type1" Load "vbe" EndSection
Section "InputDevice" Identifier "Generic Keyboard" Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xfree86" Option "XkbModel" "pc104" Option "XkbLayout" "us" EndSection
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/psaux" # Option "Device" "/dev/input/mice" Option "Protocol" "PS/2" Option "ZAxisMapping" "4 5" EndSection
Section "Device" Identifier "IntCard1" Driver "radeon" EndSection
Section "Device" Identifier "ExtCard1" Driver "radeon" Option "crt_screen" "true" EndSection
Section "Device" Identifier "IntCard2" Driver "radeon" Screen 0 BusID "PCI:00:20:0" EndSection
Section "Device" Identifier "ExtCard2" Driver "radeon" Screen 1 BusID "PCI:00:20:0" Option "crt_screen" "true" EndSection
# Internal LCD 1280x768
Section "Monitor" Identifier "IntMonitor" HorizSync 30-60 VertRefresh 50-75 Option "DPMS" EndSection
# External multisync CRT monitor
Section "Monitor" Identifier "ExtMonitor" HorizSync 30-86 VertRefresh 50-160 Option "DPMS" EndSection
# Internal screen for standalone use
Section "Screen" Identifier "IntScreen1" Device "IntCard1" Monitor "IntMonitor" DefaultDepth 16 SubSection "Display" Depth 1 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1280x768" "1152x864" "1024x768" "800x600" "640x480" EndSubSection EndSection
# External screen for standalone use
Section "Screen" Identifier "ExtScreen1" Device "ExtCard1" Monitor "ExtMonitor" DefaultDepth 16 SubSection "Display" Depth 1 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1600x1200" "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubSection EndSection
# Two screens, each with their own optimal (but fixed) resolution
Section "Screen" Identifier "IntScreen2" Device "IntCard2" Monitor "IntMonitor" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1280x768" EndSubSection EndSection
Section "Screen" Identifier "ExtScreen2" Device "ExtCard2" Monitor "ExtMonitor" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1600x1200" EndSubSection EndSection
# Two screens in Xinerama mode (requires same number of lines)
Section "Screen" Identifier "IntScreen2x" Device "IntCard2" Monitor "IntMonitor" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1280x768" EndSubSection EndSection
Section "Screen" Identifier "ExtScreen2x" Device "ExtCard2" Monitor "ExtMonitor" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" Virtual 1024 768 EndSubSection EndSection
# Internal screen only
Section "ServerLayout" Identifier "IntLayout" Screen "IntScreen1" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
# External screen only
Section "ServerLayout" Identifier "ExtLayout" Screen "ExtScreen1" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
# Dual head layout (two separate X displays)
Section "ServerLayout" Identifier "DualLayout" Screen 0 "IntScreen2" Screen 1 "ExtScreen2" LeftOf "IntScreen2" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
# Xinerama layout (one screen side by side)
Section "ServerLayout" Identifier "XineLayout" Screen 0 "IntScreen2x" Screen 1 "ExtScreen2x" LeftOf "IntScreen2x" Option "Xinerama" "on" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" EndSection
### END DEBCONF SECTION
|
|