RE_ [olug] Second Monitor

Tim - DZ iceburn at dangerzone.com
Thu Jan 29 19:21:11 UTC 2004


Try:

Option "MetaModes" "1024x768,800x600;800x600,640x480"

-t 

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of G.M.
Sent: Thursday, January 29, 2004 12:44 PM
To: Omaha Linux User Group
Subject: Re: RE_ [olug] Second Monitor

Ken wrote:
> 
> Tim - DZ wrote:
> 
>> Just a guess, but I think it's the @ in your meta modes...
>>
>> You're saying you want a 1024x768 screen on a 800x600 monitor...
>>
>> I think you probably want something more like:
>>
>> "1024x768,800x600"
>>
>> Again the ; separates different modes - the , separates monitors...
>>
> 
> I agree..  If it's any help, I've listed my config below.  This is 
> currently setup for supporting 2 monitors at 1024x768 using 2 nvidia 
> video cards and the nvidia drivers with xinerama.  The configs for 
> switching over to using twinview with tv-out (and disabling xinerama) 
> are all listed in the card "Device" section but just commented out at 
> the moment.
> -Ken
> 
> 
> ##############################################################
> ### XFree86 4 configuration /etc/X11/XF86Config
> #
> ### GLOBAL ###
> #
> Section "ServerFlags"
>     Option "DefaultServerLayout" "DualLayout_AGP_Prime"
> EndSection
> 
> ### FILES ###
> #
> 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.
>     RgbPath      "/usr/X11R6/lib/X11/rgb"
>     FontPath     "unix/:7100"
> EndSection
> 
> 
> ### MODULES ###
> #
> Section "Module"
>     Load  "dbe"
>     Load  "extmod"
>     Load  "fbdevhw"
>     Load  "glx"
>     Load  "record"
>     Load  "freetype"
>     Load  "type1"
> EndSection
> 
> 
> ### INPUT DEVICES ###
> #
> Section "InputDevice"
> # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
> #    Option    "Xleds"        "1 2 3"
> # To disable the XKEYBOARD extension, uncomment XkbDisable.
> #    Option    "XkbDisable"
> # To customise the XKB settings to suit your keyboard, modify the
> # lines below (which are the defaults).  For example, for a non-U.S.
> # keyboard, you will probably want to use:
> #    Option    "XkbModel"    "pc102"
> # If you have a US Microsoft Natural keyboard, you can use:
> #    Option    "XkbModel"    "microsoft"
> #
> # Then to change the language, change the Layout setting.
> # For example, a german layout can be obtained with:
> #    Option    "XkbLayout"    "de"
> # or:
> #    Option    "XkbLayout"    "de"
> #    Option    "XkbVariant"    "nodeadkeys"
> #
> # If you'd like to switch the positions of your capslock and
> # control keys, use:
> #    Option    "XkbOptions"    "ctrl:swapcaps"
> # Or if you just want both to be control, use:
> #    Option    "XkbOptions"    "ctrl:nocaps"
> #
>     Identifier  "Keyboard0"
>     Driver      "keyboard"
>     Option        "XkbRules" "xfree86"
>     Option        "XkbModel" "pc105"
>     Option        "XkbLayout" "us"
> EndSection
> 
> Section "InputDevice"
>     Identifier  "Mouse0"
>     Driver      "mouse"
>     Option        "Protocol" "IMPS/2"
>     Option        "Device" "/dev/input/mice"
>     Option        "ZAxisMapping" "4 5"
>     Option        "Emulate3Buttons" "no"
> EndSection
> 
> Section "InputDevice"
> 
> # If the normal CorePointer mouse is not a USB mouse then
> # this input device can be used in AlwaysCore mode to let you
> # also use USB mice at the same time.
>     Identifier  "DevInputMice"
>     Driver      "mouse"
>     Option        "Protocol" "IMPS/2"
>     Option        "Device" "/dev/input/mice"
>     Option        "ZAxisMapping" "4 5"
>     Option        "Emulate3Buttons" "no"
> EndSection
> 
> 
> ### MONITORS ###
> #
> Section "Monitor"
>     Identifier   "monitor_right"
>     VendorName   "Compaq"
>     ModelName    "Compaq P75"
>     HorizSync    30.0 - 85.0
>     VertRefresh  50.0 - 150.0
>     Option        "dpms"
> EndSection
> 
> Section "Monitor"
>     Identifier  "monitor_left"
>     VendorName     "Compaq"
>     ModelName    "Compaq FS940"
>     HorizSync   30.0 - 92.0
>     VertRefresh 50.0 - 120.0
>     Option        "dpms"
> EndSection
> 
> 
> ### DISPLAY ADAPTERS ###
> #
> # NVIDIA GeForce4 MX 440 (64MB DDR) PCI Slot
> Section "Device"
>     # no known options
>     BusID        "PCI:02:04:0"
>     Identifier  "pci_card" #(right)
>     Driver      "nvidia"
>     VendorName  "NVIDIA"
>     BoardName   "GeForce4 MX 440 DDR"
>         Option "NvAGP" "0"
>         Option "HWCursor" "true"
>         #Option "NoLogo"
>         #Option "RenderAccel" "true"
>         Option "DigitalVibrance" "50"        #range 0-255
>         #Option "IgnoreEDID" "true"
>         #Option "UseEdidFreqs" "true"   
>         Option "CursorShadow" "true"
>         Option "CursorShadowAlpha" "100"    #range 0-255
>         Option "CursorShadowXOffset" "4"    #range 0-32
>         Option "CursorShadowYOffset" "2"    #range 0-32
>         #Option "UseInt10Module" "true"     #soft-boot secondary cards
>         #
>         ### Use TwinView for TV-Out Support ###
>         #Option "TwinView" "true"
>         #Option "TVStandard" "NTSC-M"
>         #Option "ConnectedMonitor" "CRT, TV"
>         #Option "TwinViewOrientation" "Clone"
>         #Option "SecondMonitorHorizSync" "30.0-50.0"    # TV settings
>         #Option "SecondMonitorVertRefresh" "60.0"        # TV settings
>         #Option "MetaModes" "1024x768,1024x768;800x600,NULL;640x480,NULL"
>         #Option "NoTwinViewXineramaInfo" "true"
>         ### TwinView End ###
> EndSection
> 
> # NVIDIA GeForce2 MX 200 (64MB DDR) AGP Slot
> Section "Device"
>     # no known options
>     BusID        "PCI:1:0:0"
>     Identifier  "agp_card" #(left)
>     Driver      "nvidia"
>     VendorName  "NVIDIA"
>     BoardName   "GeForce2 MX 200 DDR"
>         Option "NvAGP" "3"
>         Option "HWCursor" "true"
>         #Option "NoLogo"
>         Option "RenderAccel" "true"
>         Option "DigitalVibrance" "25"        #range 0-255
>         #Option "IgnoreEDID" "true"
>         #Option "UseEdidFreqs" "true"   
>         Option "CursorShadow" "true"
>         Option "CursorShadowAlpha" "100"     #range 0-255
>         Option "CursorShadowXOffset" "4"    #range 0-32
>         Option "CursorShadowYOffset" "2"    #range 0-32
>         #Option "UseInt10Module" "true"     #soft-boot secondary cards
>         #
>         ### Use TwinView for TV-Out Support ###
>         #Option "TwinView" "true"
>         #Option "TVStandard" "NTSC-M"
>         #Option "ConnectedMonitor" "CRT, TV"
>         #Option "TwinViewOrientation" "Clone"
>         #Option "SecondMonitorHorizSync" "30.0-50.0"    # TV settings
>         #Option "SecondMonitorVertRefresh" "60.0"        # TV settings
>         #Option "MetaModes" "1024x768,1024x768;800x600,NULL;640x480,NULL"
>         #Option "NoTwinViewXineramaInfo" "true"
>         ### TwinView End ###
> EndSection
> 
> 
> ### SCREENS ###
> #
> Section "Screen"
>     Identifier        "screen_right"
>     Device            "pci_card"
>     Monitor            "monitor_right"
>     DefaultDepth    16
>     Subsection "Display"
>         Depth       8
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
>     Subsection "Display"
>         Depth       16
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
>     Subsection "Display"
>         Depth       24
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
> EndSection
> 
> Section "Screen"
>     Identifier        "screen_left"
>     Device            "agp_card"
>     Monitor            "monitor_left"
>     DefaultDepth    16
>     Subsection "Display"
>         Depth       8
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
>     Subsection "Display"
>         Depth       16
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
>     Subsection "Display"
>         Depth       24
>         Modes       "1024x768" "800x600" "640x480"
>         ViewPort    0 0
>     EndSubsection
> EndSection
> 
> 
> ### SERVER LAYOUTS ###
> #
> Section "ServerLayout"
>     #
>     Identifier    "DualLayout_AGP_Prime" #current default
>     Screen    0    "screen_left"
>     Screen    1    "screen_right" RightOf "screen_left"
>     Option        "xinerama" "true"
>     InputDevice    "Mouse0" "CorePointer"
>     InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> Section "ServerLayout"
>     #
>     Identifier    "DualLayout_PCI_Prime"
>     Screen    0    "screen_right"
>     Screen    1    "screen_left" LeftOf "screen_right"
>     Option        "xinerama" "true"
>     InputDevice    "Mouse0" "CorePointer"
>     InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> Section "ServerLayout"
>     #
>     Identifier    "SingleLayout_AGP" #single default
>     Screen    0    "screen_left"
>     Option        "xinerama" "false"
>     InputDevice    "Mouse0" "CorePointer"
>     InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> 
> 
> # Would need dri module loaded
> #Section "DRI"
> #    Group        0
> #    Mode         0666
> #EndSection
> 
> ### EOF ###
> #########################################################
> 
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 
I changed the @ to a , seperating my modelines of the 2 monitors and I 
still get a desktop on my monitor but no longer on my TV,it just 
flickers for a second like it's going to start then it goes back to 
black.I changed it back to a @ to see if that made a difference but it 
didn't.It's back to the , now.My XF86Config-4 file looks ok to me but I 
pasted it in case anyone cares to look at it and maybe they'll see 
something wrong.


# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config man page for details about the format of
# this file.
# **********************************************************************

Section "Files"
     # Multiple FontPath entries are allowed (they are concatenated 
together)
     # By default, Mandrake 6.0 and later now use a font server 
independent of
     # the X server to render fonts.
     FontPath "unix/:-1"
EndSection

Section "ServerFlags"
     #DontZap # disable <Crtl><Alt><BS> (server abort)
     AllowMouseOpenFail # allows the server to start up even if the 
mouse doesn'$
     #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
     Load "dbe" # Double-Buffering Extension
     Load "v4l" # Video for Linux
     Load "extmod"
     Load "type1"
     Load "freetype"
     Load "glx" # 3D layer
EndSection

Section "InputDevice"
     Identifier "Keyboard1"
     Driver "Keyboard"
     Option "XkbModel" "pc105"
     Option "XkbLayout" "us"
#   Option "XkbCompat" ""
#   Option "XkbOptions" ""
EndSection

Section "InputDevice"
     Identifier "Mouse1"
     Driver "mouse"
     Option "Protocol" "MouseManPlusPS/2"


     Option "Device" "/dev/psaux"
     Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
     Identifier "monitor1"
     VendorName "Samsung"
     ModelName "Samsung SyncMaster 955DF"
     HorizSync 30-85
     VertRefresh 50-160

     # Sony Vaio C1(X,XS,VE,VN)?
     # 1024x480 @ 85.6 Hz, 48 kHz hsync
     ModeLine "1024x480"    65.00 1024 1032 1176 1344   480  488  494 
563 -hsyn$

     # TV fullscreen mode or DVD fullscreen output.
     # 768x576 @ 79 Hz, 50 kHz hsync
     ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630

     # 768x576 @ 100 Hz, 61.6 kHz hsync
     ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
EndSection

Section "Device"
     Identifier "device1"
     VendorName "nVidia Corporation"
     BoardName "NVIDIA GeForce4 (generic)"
     Driver "nvidia"
     Option "DPMS" "suspend"
     Option "MetaModes" "1024x768;600x800,1024x768;600x800"
     Option "TwinViewOrientation" "Clone"
     Option "NvAGP" "3"
     Option "TVStandard" "NTSC-M"
     Option "SecondMonitorVertRefresh" "50-160"
     Option "SecondMonitorHorizSync" "30-85"
     Option "TwinView" "1"
     Option "NoLogo" "1"
     Option "DigitalVibrance" "0"
     Option "TVOutFormat" "SVIDEO"
EndSection

Section "Screen"
     Identifier "screen1"
     Device "device1"
     Monitor "monitor1"
     DefaultColorDepth 24

     Subsection "Display"
         Depth 8
         Modes "1152x864" "1024x768" "800x600" "640x480"
     EndSubsection

     Subsection "Display"
         Depth 15
         Modes "1152x864" "1024x768" "800x600" "640x480"
     EndSubsection

     Subsection "Display"
         Depth 16
         Modes "1152x864" "1024x768" "800x600" "640x480"
     EndSubsection

     Subsection "Display"
         Depth 24
         Modes "1152x864" "1024x768" "800x600" "640x480"
     EndSubsection
EndSection

Section "ServerLayout"
     Identifier "layout1"
     InputDevice "Keyboard1" "CoreKeyboard"
     InputDevice "Mouse1" "CorePointer"
     Screen "screen1"
EndSection





				Thanks,Gary



P.S. Can anyone tell me what service I need to enable at boot time so I 
can copy and paste in my console.I can't remember what it's called.

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list