Dual Monitor Help

From: Scott (sdobrinNOSPAM_at_mail.com)
Date: 01/30/04


Date: Fri, 30 Jan 2004 03:57:24 GMT

I am trying to configure my geforce4 to use two monitors. I am fairly new
to linux, but after some time online and in the editor with my
XF86Config-4 file I have everything the way I want - except one detail.
One monitor is slightly better then the other, but the bad monitor is
being used as my "main" monitor. When I boot the good one is the only one
on, but when X starts the login prompt is on the bad monitor. Most
importantly, the taskbar (I'm using ICEwm) is on the bad monitor. I have
tried to move the taskbar like KDE can, but no luck. I have played with
my XF86Config-4 file, but cant get them to switch. I hope this is
followable, please help. The following is my config 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)
    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
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" "en_US"
    Option "XkbOptions" ""
EndSection

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier "monitor1"
    VendorName "Korea Data Systems"
    ModelName "KDS Avitron AV-7T"
    HorizSync 30.0-70.0
    VertRefresh 50.0-120.0

    # 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 -hsync -vsync

    # 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 "Monitor"
      Identifier "monitor2"
      VendorName "Plug'n Play"
      ModelName "Gateway EV700"
      HorizSync 31-69
      VertRefresh 50-110
EndSection

Section "Device"
    Identifier "device1"
    VendorName "NVidia"
    BoardName "NVIDIA GeForce4 (generic)"
    Driver "nvidia"
    Screen 0
    Option "DPMS"
Option "NvAGP" "1"
Option "DigitalVibrance" "141"
Option "TwinView" "1"
Option "SecondMonitorHorizSync" "31-69"
Option "SecondMonitorVertRefresh" "50-110"
Option "TwinViewOrientation" "Rightof"
Option "TVStandard" "NTSC-M"
Option "MetaModes" "1280x1024@85x48,1280x1024@79x50"
EndSection

Section "Device"
     Identifier "device1h2"
     VendorName "NVidia"
     BoardName "NVIDIA GeForce4 (generic)"
    Driver "nvidia"
    Option "DPMS"
    Screen 1
EndSection

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

    Subsection "Display"
        Depth 8
        modes "1024x768"
    EndSubsection

    Subsection "Display"
        Depth 15
        modes "1024x 768"
    EndSubsection

    Subsection "Display"
        Depth 16
        modes "1024x 768"
    EndSubsection

    Subsection "Display"
        Depth 24
        modes "1024x 768"
    EndSubsection

EndSection
# added for 2 monitor support

Section "Screen"
    Identifier "screen2"
    Device "device1h2"
    Monitor "monitor2"
    DefaultDepth 24

    Subsection "Display"
        Depth 24
        Modes "1280x1024" "800x600" "640x480"
        ViewPort 0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
Screen 0 "screen1"
Screen 1 "screen2"
# Screen 0 "screen1"
# Screen 1 "screen2"
   Option "Xinerama" "off"
   Option "Clone" "off"
EndSection

*******************************

Thanks for the help
Scott
sdobrinNOSPAM@mail.com (remove NOSPAM)



Relevant Pages