LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2005, 04:31 PM   #1
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Rep: Reputation: 15
twinview first and second monitor switch


I have a little (but significant) prolem with twinview...
i configured my xorg.conf for using the two monitors at the resolution i wanted them. the thing is that i want my laptop lcd screen to be the *first* monitor, while the external crt monitor should be the *second*, so that the actual desktop with taskbar, icons and stuff is on my laptop, while the external monitor is the "extansion" (now it is the opposite).

is there a way i can tell the system which monitor is the first and wich the second?
i have an nvidia card with nvidia drivers installed... it's quite recent, but i can't remember the exact model name.

btw, another problem i have since i configured the twinview is that the scrollwheel doesn't work anymore... any idea?

here is my xorg.conf:

Code:
##########################################################################
# Sample XF86Config file for NVIDIA XFree86 drivers.
#
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
#
# Be sure to replace the monitor values with correct values for your
# monitor!
##########################################################################


Section "Files"

    RgbPath	"/usr/X11R6/lib/X11/rgb"

    ModulePath  "/usr/X11R6/lib/modules"

    FontPath 	"/usr/X11R6/lib/fonts/misc"
    FontPath 	"/usr/X11R6/lib/fonts/Speedo"
    FontPath 	"/usr/X11R6/lib/fonts/Type1"
    FontPath 	"/usr/X11R6/lib/fonts/CID"
    FontPath 	"/usr/X11R6/lib/fonts/75dpi"
    FontPath 	"/usr/X11R6/lib/fonts/100dpi"
    FontPath 	"/usr/X11R6/lib/X11/fonts/webfonts"
    FontPath 	"/usr/local/share/fonts"
    FontPath 	"/usr/X11R6/lib/X11/fonts"
    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/local"
    FontPath 	"/usr/X11R6/lib/X11/fonts/misc"
    FontPath 	"/usr/X11R6/lib/X11/fonts/Speedo"
    FontPath 	"/usr/X11R6/lib/X11/fonts/winf"


#    FontPath 	"/usr/local/share/fonts/TTF"
EndSection


##########################################################################
# Server flags section.
##########################################################################

Section "ServerFlags"

    # Uncomment this to cause a core dump at the spot where a signal is
    # received.  This may leave the console in an unusable state, but may
    # provide a better stack trace in the core dump to aid in debugging
    #NoTrapSignals

    # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
    # This allows clients to receive this key event.
    #DontZap

    # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
    # sequences.  This allows clients to receive these key events.
    #DontZoom

    # This  allows  the  server  to start up even if the
    # mouse device can't be opened/initialised.
    AllowMouseOpenFail

EndSection


##########################################################################
# Input devices
##########################################################################

#
# Keyboard section
#
Section "InputDevice"

    Identifier "Keyboard1"
    Driver     "Keyboard"
    Option     "AutoRepeat"  "250 30"

    Option "XkbRules"  "xfree86"
    Option "XkbModel"  "pc104"
    Option "XkbLayout" "it"

EndSection


#
# Pointer section
#
Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "ButtonNumber" "5"
    Option      "Protocol"    "IMPS/2"
    Option      "Device"      "/dev/input/mice"
    Option      "ZAxisMapping" "4 5"
    Option      "Emulate3Buttons" "no" 
    
EndSection
Section "InputDevice"
    Identifier  "Mouse2"
    Driver      "mouse"
     
    Option      "Protocol"    "auto"
    Option      "Device"      "/dev/mouse"
   
    Option      "Emulate3Buttons" "yes"

EndSection


##########################################################################
# Module section
##########################################################################

Section "Module"

    Load        "dbe"

    # Load the glx module.
    Load	"glx"

    Load        "extmod"

    Load	"type1"
    Load	"freetype"
EndSection


##########################################################################
# Monitor section
##########################################################################

Section "Monitor"

    Identifier "MyMonitor"
    VendorName "Acer"
    ModelName  "Flat Panel 1280x800"

    # be sure to replace these values with values appropriate for your
    # monitor!
    HorizSync 31.5 - 100 
    VertRefresh 59 - 76 
    Option "IgnoreEDID" "1"
    # 3840x2400 @ 12Hz for IBM's T221 FlatPanel
    Modeline "1280x800" 83.91 1280 1312 1624 1656 800 816 824 841 

EndSection


##########################################################################
# Graphics device section(s)
##########################################################################

#Section "Device"
#    Identifier  "NV AGP"
#    VendorName  "nvidia"
#    Driver   "nvidia"
#    # update this with the PCI id of your card.  Consult the output
#    # of the 'lspci' command.  The BusID is usually optional when
#    # only using one graphics card.
#    BusID       "PCI:1:0:0"
#EndSection

#Section "Device"
#    Identifier "NV PCI"
#    VendorName "nvidia"
#    Driver "nvidia"
#    # update this with the PCI id of your card.  Consult the output
#    # of the 'lspci' command.  The BusID is usually optional when
#    # only using one graphics card.
#    BusID       "PCI:0:13:0"
#EndSection

Section "Device"
    Identifier "NV AGP TwinView"
    VendorName "nvidia"
    Driver "nvidia"
    # update this with the PCI id of your card.  Consult the output
    # of the 'lspci' command. The  BusID is usually optional when
    # only using one graphics card.
#    BusID       "PCI:1:0:0"

    # sample twinview setup
    Option "TwinView"
    # be sure to replace the HorizSync and VertRefresh with correct values
    # for your monitor!  
    Option "SecondMonitorHorizSync"   "30-55"
    Option "SecondMonitorVertRefresh" "50-120"
    Option "TwinViewOrientation"      "RightOf"
    Option "MetaModes"                "DFP-0: 1280x800, CRT-0: 1280x960; DFP-0: 1280x800, NULL"
    Option "ConnectedMonitor"         "crt,crt"
EndSection


##########################################################################
# Screen sections
##########################################################################

#
# screen section for an nvidia AGP card
#
#Section "Screen"
#    Identifier "Screen AGP"
#    Device      "NV AGP"
#    Monitor     "MyMonitor"
#    DefaultColorDepth 24
#    Subsection "Display"
#        Depth       8
#        Modes       "1280x1024" "1024x768" "800x600" "640x400"
#    EndSubsection
#    Subsection "Display"
#        Depth       16
#        Modes       "1280x1024" "1024x768" "800x600" "640x480"
#    EndSubsection
#    Subsection "Display"
#        Depth       24

#        Modes       "1280x800" "1024x768" "800x600" "640x480"
#    EndSubsection

#EndSection


#
# screen section for an nvidia PCI card
#
#Section "Screen"
#    Identifier "Screen PCI"
#    Device      "NV PCI"
#    Monitor     "MyMonitor"
#    DefaultColorDepth 24
#    Subsection "Display"
#        Depth       8
#        Modes       "1280x1024" "1024x768" "800x600" "640x400"
#    EndSubsection
#    Subsection "Display"
#        Depth       16
#        Modes       "1280x1024" "1024x768" "800x600" "640x480"
#    EndSubsection
#    Subsection "Display"
#        Depth       24
#        Modes       "1280x800" "1024x768" "800x600" "640x480"
#    EndSubsection
#EndSection

#
# screen section for an nvidia AGP TwinView card
# (look at the appropriate Device section)
#
Section "Screen"
    Identifier "Screen AGP TwinView"
    Device "NV AGP TwinView"
    Monitor "MyMonitor"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x400"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x800" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x800" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection


##########################################################################
# ServerLayout sections
# (invoke using the '-layout' option of 'startx'.
##########################################################################

#
# just one agp card
#
#Section "ServerLayout"
#    Identifier  "AGP"
#    Screen      "Screen AGP"
#    InputDevice "Mouse2" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
#    InputDevice "Mouse1" "SendCoreEvents"
#EndSection

#
# just one pci card
#
#Section "ServerLayout"
#    Identifier  "PCI"
#    Screen      "Screen PCI"
#    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
#EndSection

#
# 2 cards, non twinview
#
#Section "ServerLayout"
#    Identifier  "Both"
#    Screen      "Screen AGP"
#    Screen      "Screen PCI" LeftOf "Screen AGP"
#    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
#EndSection

#
# just one agp twinview card
#
Section "ServerLayout"
    Identifier  "AGPTwinView"
    Screen      "Screen AGP TwinView"
    InputDevice "Mouse1" "SendCoreEvent"
    InputDevice "Mouse2" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

#
# 2 cards, one agp twinview and one pci (3 monitors total)
#
#Section "ServerLayout"
#    Identifier  "BothTwinView"
#    Screen      "Screen AGP TwinView"
#    Screen      "Screen PCI" LeftOf "Screen AGP TwinView"
#    InputDevice "Mouse1" "CorePointer"
#    InputDevice "Keyboard1" "CoreKeyboard"
#EndSection
 
Old 01-20-2005, 05:15 PM   #2
madcowjim
LQ Newbie
 
Registered: Jan 2005
Location: Happy Valley, USA
Distribution: Ubuntu 8.04
Posts: 9

Rep: Reputation: 0
I was using nvidia's twinview to get my dual monitors out. It worked just fine, I could drag windows between the two and everything, except that the main monitor was on the wrong screen, the panel always showed up on the wrong side.

After working on it for several hours, I finally gave up and tried simply to drag the panel across from my secondary monitor onto my main monitor. VOILA! It worked! And all this time I thought there was something wrong with xorg.conf!

Anyway, hopefully that's all you need to do. If not, good luck.

-jim
 
Old 01-21-2005, 08:36 AM   #3
jnsenit
Member
 
Registered: Oct 2004
Location: Milano, Italy
Distribution: slackware 10.0
Posts: 39

Original Poster
Rep: Reputation: 15
yes i had solved the problem this way! the only thing is that the icons are still placed in the wrong screen, and i have to drag them every time... no big deal anyway!

i don't get what happened to the scroll wheel though... i'll just play around with xorg.conf a little bit...
 
Old 05-01-2005, 02:07 AM   #4
layersection
LQ Newbie
 
Registered: Jan 2003
Location: US of A
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
I have the same problem with twinview setting up the monitors opposite of what I would like them. I would hope there is a better way to do this. Because when I try to run a full screen opengl application, it will still try to output to the wrong monitor.

From nvidia-bug-report.log
Code:
(**) NVIDIA(0): Option "HWcursor" "true"
(**) NVIDIA(0): Option "ConnectedMonitor" "CRT-1, CRT-0"
(**) NVIDIA(0): Option "TwinView" "True"
(**) NVIDIA(0): Option "TwinViewOrientation" "LeftOf"
(**) NVIDIA(0): Option "SecondMonitorHorizSync" "31.5 - 67.0"
(**) NVIDIA(0): Option "SecondMonitorVertRefresh" "50.0 - 75.0"
(**) NVIDIA(0): Option "MetaModes" "1280x1024, 1280x1024; NULL, 1280x1024;"
(**) NVIDIA(0): ConnectedMonitor string: "CRT-1, CRT-0"
(**) NVIDIA(0): TwinView enabled
(--) NVIDIA(0): Linear framebuffer at 0xD8000000
(--) NVIDIA(0): MMIO registers at 0xE0000000
(II) NVIDIA(0): NVIDIA GPU detected as: GeForce 6800
(--) NVIDIA(0): VideoBIOS: 05.40.02.12.71
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(II) NVIDIA(0): Detected AGP rate: 8X
(--) NVIDIA(0): VideoRAM: 131072 kBytes
(II) NVIDIA(0): Using ConnectedMonitor string "CRT-0, CRT-1"
I even tried to specify using CRT-1, CRT-0 for my monitor setup and for some reason it still reverts to CRT-0, CRT-1? I'm at a loss....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TwinView: want maximized window on [B]one[/B] monitor. pingu Linux - Hardware 0 10-25-2005 02:13 AM
Twinview - Red tinted second monitor! mmf144 Linux - Hardware 1 05-20-2005 03:16 PM
Nvidia + Twinview; Howto switch primary monitor? layersection Linux - General 1 04-30-2005 12:24 AM
Nvidia + Twinview; Howto switch primary monitor? layersection Linux - Software 1 04-29-2005 10:11 PM
Twinview/Dual Monitor problem Totaldom Linux - Newbie 0 07-06-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration