LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual monitors the wrong way round (https://www.linuxquestions.org/questions/linux-newbie-8/dual-monitors-the-wrong-way-round-400520/)

Henster 01-07-2006 07:18 AM

dual monitors the wrong way round
 
Hi,

Using 2 monitors on a Nvidia 6800 under openSuse in a twinview config.

I have a big dvi monitor and a little vga one. At the moment its trying to use the crappy small one as the primary screen (It has the taskbar on it). Switching the cables round would do the job but I'd prefer to use the current configuration since the other slot is normal vga.

I've installed Yanc http://www.ygriega.de/index.php?id=2&detail=1 . But it doesnt seem to have what I'm looking for... Just looking at the xorg.conf I can see no obvious way of doing it..

Any ideas?
Thanks
H

##################################################################
# X Configuration File #
# Created by YanC42 0.0.9 (07-01-2006 13:12:08) #
# (c) 2002-2005 by Sebastian J. Wolf #
# Licensed under GNU General Public License (GPL) #
# http://yanc.ygriega.de/ - http://yanc.sourceforge.net/ #
##################################################################

Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
EndSection


Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection


Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "v4l"
EndSection


Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "gb"
Option "XkbModel" "pc105"
Option "XkbRules" "xfree86"
EndSection


Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "11"
Option "Device" "/dev/input/mice"
Option "Name" "Microsoft Wireless Optical Mouse?? 1.0A"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
DisplaySize 430 320
HorizSync 30 - 81
Identifier "Monitor[0]"
ModelName "SYNCMASTER 213T"
Option "DPMS"
VendorName "SAMSUNG"
VertRefresh 56-75
# UseModes "Modes[0]"
EndSection


Section "Modes"
Identifier "Modes[0]"
ModeLine "1024x768" 123.0 1024 1096 1208 1392 768 769 772 818
ModeLine "1024x768" 110.9 1024 1096 1208 1392 768 769 772 813
ModeLine "1024x768" 97.8 1024 1088 1200 1376 768 769 772 808
ModeLine "1024x768" 86.2 1024 1088 1200 1376 768 769 772 803
ModeLine "1024x768" 73.9 1024 1080 1192 1360 768 769 772 799
ModeLine "1024x768" 61.9 1024 1080 1184 1344 768 769 772 794
EndSection


Section "Screen"
Identifier "Screen[0]"
Device "Device[0]"
Monitor "Monitor[0]"
DefaultDepth 24
Option "TwinView" "On"
Option "MetaModes" "1024x768,1024x768; 1024x768"
#Option "NvAGP" "2"
Option "TwinViewOrientation" "LeftOf"
Option "SecondMonitorHorizSync" "56-75"
Option "SecondMonitorVertRefresh" "56-75"
Option "NoLogo" "true"
#other options I recommend:
Option "RenderAccel" "true"
Option "HWcursor"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
#if you want Composite and GLX (they don't cooperate):
SubSection "Display"
Depth 24
Modes "1600x1200" "1024x768"
EndSubSection
EndSection


Section "Device"
BoardName "GeForce 6800"
#BusID "3:0:0"
Driver "nvidia"
Identifier "Device[0]"
Option "XaaNoOffScreenPixmaps" "on"
Option "XaaNoPixmapCache" "on"
VendorName "NVidia"
Option "TwinView" "1"
Option "MetaModes" "1600x1200,1600x1200;1024x768,1024x768"
Option "TwinViewOrientation" "RightOf"
Option "SecondMonitorHorizSync" "30 - 81"
Option "SecondMonitorVertRefresh" "56 - 75"
Option "ConnectedMonitor" "DFP,DFP"
EndSection


Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]" 0 0
EndSection


Section "DRI"
Group "video"
Mode 0660
EndSection


Section "Extensions"
EndSection

Centinul 01-07-2006 08:13 AM

It appears that te orientation of your monitors is wrong. Reading the NVIDIA Twinview configuration I found this

Code:

TwinViewOrientation

    This option controls the positioning of the second display device relative to the first within the virtual X screen, when offsets are not explicitly given in the MetaModes. The possible values are:

        "RightOf"  (the default)
        "LeftOf"
        "Above"
        "Below"
        "Clone"

    When "Clone" is specified, both display devices will be assigned an offset of 0,0.

    Because it is often unclear which display device is "first" and which is "second", TwinViewOrientation can be confusing. You can further clarify the TwinViewOrientation with display device names to indicate which display device is positioned relative to which display device. For example:

        "CRT-0 LeftOf DFP-0"

More information can be found here: Appendix G. Configuring TwinView

That is all I can think of at the moment. I hope this helps!

HappyTux 01-07-2006 08:20 AM

If the twinview is not important and you just want 2 individual screens both of which would have a taskbar then you could use my config as guide in setting up yours. As far as I can tell the bottom connector on the video card is always the primary one so you would set the monitor as screen0 connected on that one and you need to have the Load "xtrap" in the module section in order to be able to move the mouse between the screens.

Code:

>$ cat /etc/X11/xorg.conf
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was 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.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#  cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#  md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
#  dpkg-reconfigure xserver-xfree86

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


Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
#      FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        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    "bitmap"
        Load    "dbe"
        Load    "ddc"
#      Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "type1"
        Load    "vbe"
        Load    "v4l"
        Load    "xtrap"
        Load    "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
#        Option      "XkbRules"      "xfree86"
        Option      "XkbModel"      "pc105"
        Option      "XkbLayout"    "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "CorePointer"
        Option      "Protocol" "ImPS/2"
        Option      "Device" "/dev/psaux"
        Option      "Emulate3Buttons"  "True"
        Option      "ZAxisMapping"  "4 5"
EndSection


# KDS Visual Sensations VS 190i
Section "Monitor"
        #DisplaySize    350    265    # mm
        Identifier  "Monitor1"
        Option      "DPMS"  "true"
        Option      "BackingStore" "On"
        VendorName  "KDS"
        ModelName  "KDS1985"
        HorizSync  30 - 95 # DDC-probed
        VertRefresh 50 - 120 # DDC-probed
EndSection


# NEC P1250 +
Section "Monitor"
      #DisplaySize      384  288    # mm
      Identifier  "Monitor0"
      VendorName  "NEC"
      ModelName    "P1250 +"
      HorizSync    31-110
      VertRefresh  55-160
      Option      "DPMS"  "true"
      Option      "BackingStore" "On"
EndSection


Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option    "SWcursor"                  # [<bool>]
        #Option    "HWcursor"                  # [<bool>]
        #Option    "NoAccel"                  # [<bool>]
        #Option    "ShowCache"                # [<bool>]
        #Option    "ShadowFB"                  # [<bool>]
        #Option    "UseFBDev"                  # [<bool>]
        #Option    "Rotate"                    # [<str>]
        #Option    "VideoKey"                  # <i>
        #Option    "FlatPanel"                # [<bool>]
        #Option    "FPDither"                  # [<bool>]
        #Option    "CrtcNumber"                # <i>
        Identifier  "Card0"
        Driver      "nvidia"
        Option      "NoLogo" "on"
        Option      "NvAgp"  "1"
        Option      "RenderAccel" "true"
        Option      "IgnoreDisplayDevices"  "TV"
        Screen      0
        VendorName  "PNY"
        BoardName  "Verto 5900SE NV35 [GeForce FX 5900SE]"
        BusID      "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option    "accel"                    # [<bool>]
        #Option    "crt_display"              # [<bool>]
        #Option    "composite_sync"            # [<bool>]
        #Option    "hw_cursor"                # [<bool>]
        #Option    "linear"                    # [<bool>]
        #Option    "mmio_cache"                # [<bool>]
        #Option    "panel_display"            # [<bool>]
        #Option    "probe_clocks"              # [<bool>]
        #Option    "reference_clock"          # <freq>
        #Option    "shadow_fb"                # [<bool>]
        #Option    "sw_cursor"                # [<bool>]
        Identifier  "Card1"
        Driver      "nvidia"
        Option      "NoLogo" "on"
        Option      "RenderAccel" "true"
        Screen      1
        Option      "IgnoreDisplayDevices"  "TV"
        VendorName  "PNY"
        BoardName  "Verto 5900SE NV35 [GeForce FX 5900SE]"
        BusID      "PCI:1:0:0"
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    "1600x1200"  "1280x1024"  "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    "1024x768" "640x480"
        EndSubSection
EndSection


Henster 01-07-2006 08:20 AM

Centinul - Thanks for the reply. Unfortunatly, I had already played with that. They are referring to the orientation in terms of where the monitor is physically located on your desk. Depending on whether the second screen is to the right or left of the primary those options are to set on which side of the screen the mouse rolls off.

My problem is setting the primary monitor.

Henster 01-07-2006 08:24 AM

Happytux - Interesting, With two desktops and two taskbars how would the virtual desktops work? Would I be able to alt-tab between applications? (Important to me... Im a programmer).

Thanks
-h

HappyTux 01-07-2006 08:44 AM

Quote:

Originally Posted by Henster
Happytux - Interesting, With two desktops and two taskbars how would the virtual desktops work? Would I be able to alt-tab between applications? (Important to me... Im a programmer).

Thanks
-h

On the same monitor it works fine but not between the different monitors you can switch between apps open in the current screen and between any virtual desktops that you have defined on that monitor with the ctrl-tab. Oh and you cannot drag apps between the different monitors either.

Henster 01-07-2006 10:08 AM

The plot is thickening... I tried switching round the monitor cables thinking it was a surfire solution. But, it was still using the wrong monitor as the primary one. To me this implies some intellegence. As though I have set it on purpose...

Still confused.
H

Henster 01-07-2006 10:34 AM

Additionally. When in init mode 3 the second monitor is turned off and the display is displayed correctly on my main screen.

When I enter init 5 the blue startup screen thing starts on the other monitior... like it shouldn't.

?

HappyTux 01-07-2006 02:13 PM

Can you post the log files for both tries then maybe we can see what X is doing when it starts.


All times are GMT -5. The time now is 09:48 PM.