Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia & Twinview annoying problem...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hurrrtin
n00b
n00b


Joined: 14 Oct 2006
Posts: 5

PostPosted: Tue Oct 24, 2006 6:55 am    Post subject: Nvidia & Twinview annoying problem... Reply with quote

I am able to get twinview to work on my laptop with Geforce Go 6600, but there's a problem. I want the LCD to be the primary monitor, and the second I want to be the attached monitor on the vga-out port. This works. but if I restart X with the second monitor hooked up, the secondary monitor is now the primary, and the LCD is secondary. So I cannot see the login on my LCD. Does anyone know how to fix this? Thanks much.

Here is the relevant info from my xorg.conf:

Code:
Section "ServerLayout"
    Identifier     "Default Layout"
       Screen 0       "Screen[0]"
   Screen 1       "Screen[1]" RightOf "Screen[0]"   
    InputDevice    "Generic Keyboard" "CoreKeyboard"
    InputDevice    "Configured Mouse" "CorePointer"
EndSection
...
Section "Monitor"
    Identifier     "Monitor[0]" # Primary (LCD)
    HorizSync       28.0 - 84.0
    VertRefresh     60.0 - 70.0
EndSection

Section "Monitor"
   Identifier       "Monitor[1]" #Secondary (CRT)
   HorizSync        28.0 - 64.0
   VertRefresh      60.0 - 75.0
EndSection
...
Section "Device"
    Identifier     "Device[0]"
    Driver         "nvidia"
    BusID      "PCI:1:0:0"
    Screen 0
    Option      "ConnectedMonitor" "Monitor[0]"
    Option      "NoLogo" "true"
EndSection
...
Section "Device"
    Identifier     "Device[1]"
    Driver         "nvidia"
    Screen 1
    Option      "TwinView" "true"
    Option      "ConnectedMonitor" "Monitor[1]"
    BusID      "PCI:1:0:0"
EndSection
...
Section "Screen"
    Identifier     "Screen[0]"
    Device         "Device[0]"
    Monitor        "Monitor[0]"
    DefaultDepth    24
...
Section "Screen"
      Device "Device[1]"
      Identifier "Screen[1]"
      Monitor "Monitor[1]"
      DefaultDepth 24
Back to top
View user's profile Send private message
Twirlip of the Mists
n00b
n00b


Joined: 11 Apr 2004
Posts: 11
Location: Livingston, MT U.S.A.

PostPosted: Tue Oct 24, 2006 7:02 am    Post subject: Reply with quote

This is a known problem in the nvidia drivers. Nvidia has added an xorg config option for this to the 1.0.9xxx series of drivers, but these drivers are still in beta, and in my experience very unstable. They are in portage, however, so you could add "x11-drivers/nvidia-drivers" to /etc/portage/package.unmask and /etc/portage/package.keywords if you are willing to take the risk.
Back to top
View user's profile Send private message
hurrrtin
n00b
n00b


Joined: 14 Oct 2006
Posts: 5

PostPosted: Tue Oct 24, 2006 8:16 am    Post subject: Reply with quote

I already have the 1.0.9626 drivers installed, but before I try, is there & what do I need to add/change to implement this new fix?
Back to top
View user's profile Send private message
Twirlip of the Mists
n00b
n00b


Joined: 11 Apr 2004
Posts: 11
Location: Livingston, MT U.S.A.

PostPosted: Tue Oct 24, 2006 8:28 am    Post subject: Reply with quote

"TwinViewXineramaInfoOrder" is the name of the config option. I believe that adding:
Code:
Option "TwinViewXineramaInfoOrder" "DFP"
to the device section of your xorg.conf will work. I'm not sure if I have this right, and I'm away from my gentoo machine at the moment. You might want to check the nvidia documentation (in /usr/share/doc/nvidia-drivers-<version>/) before you make any changes.
Back to top
View user's profile Send private message
hurrrtin
n00b
n00b


Joined: 14 Oct 2006
Posts: 5

PostPosted: Wed Oct 25, 2006 1:08 am    Post subject: Reply with quote

Thank you for your response. I am going to give this a shot when I get home tonight. Can you tell me, do I need to add this to each device, making the first one the DFP, and the second as CRT?
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Nov 06, 2006 12:23 am    Post subject: Reply with quote

Did you get that working?

Ive got a similar issue with my config. Well I did at one point anyway. I kept messing with it and now it wont display on both screens :) At any rate when i do get it working again did adding that option move your primary display back?

Thanks
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Nov 06, 2006 12:44 am    Post subject: Reply with quote

Actually can you post your entire Xconfig?

thanks
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Nov 06, 2006 4:25 pm    Post subject: Reply with quote

So I got my dual head working again.

And the screen is reverset :(
Where do I put that new Twinview option?
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Nov 06, 2006 5:30 pm    Post subject: Reply with quote

Ah, Got it.

So here is my Xconfig for anyone else who might find it useful.

Code:


Section "Module"

     Load  "dbe"         # Double buffer extension
     Load  "extmod"
     Load  "fbdevhw"
     Load  "record"
     Load  "type1"

     SubSection  "extmod"
       Option    "omit xfree86-dga"   # don't initialise the DGA extension
     EndSubSection

     Load        "freetype"
     Load       "glx"

 EndSection

 Section "Files"

     FontPath   "/usr/share/fonts/misc"
     FontPath   "/usr/share/fonts/75dpi"
     FontPath   "/usr/share/fonts/100dpi"

 EndSection

 Section "ServerFlags"

 EndSection

 Section "InputDevice"

     Identifier  "Keyboard1"
     Driver      "kbd"

     Option "AutoRepeat" "500 30"

     Option "XkbRules"   "xorg"
     Option "XkbModel"   "pc101"
     Option "XkbLayout"  "us"

 EndSection

 #todo: still needs synaptics setup
 Section "InputDevice"

     Identifier  "Mouse1"
     Driver      "mouse"

     Option "Protocol"    "Auto" # Auto detect
     Option "Device"      "/dev/input/mice"

     Option "ZAxisMapping"   "4 5 6 7"

     Option "Emulate3Buttons"

 EndSection
Section "InputDevice"
 Identifier "TouchPad"
 Driver "synaptics"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "auto-dev"
 Option "LeftEdge" "1700"
 Option "RightEdge" "5300"
 Option "TopEdge" "1700"
 Option "BottomEdge" "4100"
 Option "FingerLow" "25"
 Option "FingerHigh" "30"
 Option "MaxTapTime" "180"
 Option "MaxTapMove" "220"
 #Option "VertScrollDelta" "100"
 #Option "HorizScrollDelta" "100"
 Option        "VertTwoFingerScroll"   "1"
 Option        "HorizTwoFingerSroll"   "1"

 Option "MinSpeed" "0.09"
 Option "MaxSpeed" "0.27"
 Option "AccelFactor" "0.0020"
 Option "SHMConfig" "on"
 Option "UseShm" "true"
 EndSection

 Section "Monitor"
     Identifier   "HpMonitor"
     VendorName   "HP"
     ModelName    "LCD Panel 1680x1050"
 #todo: modline and horiz/vert stuff is ignored by xorg, probably because they're wrong.   it uses edid info and picks low low refresh rate settings...
     HorizSync    31.5 - 90.0
     VertRefresh  60.0 - 60.0
     Option      "dpms"
     Modeline "1680x1050" 147.17 1680 1784 1968 2256 1050 1051 1054 1087
     Modeline "1920x1200" 197.27 1920 2064 2272 2624  1200 1201 1204 1253
 EndSection

Section "Monitor"
     Identifier   "Samsung17inchfp"
     VendorName   "Samsung"
     ModelName    "Samsung17"
EndSection

Section "Device"
     Identifier  "nvidia0"
     Driver      "nvidia"
     VideoRam    524288

     Option "NvAgp" "1"
     Option "NoLogo" "True"
     Option "RenderAccel" "True"
     Option "EnablePageFlip" "True"
     Option "AgpFastWrite" "True"
     Option "AllowGLXWithComposite" "True"
     Option "BackingStore" "True"
     Option "Twinview"  "true"
     Option "TwinViewOrientation" "LeftOf"
     Option "TwinviewXineramaInfoOrder" "DFP,CRT"
     Option "SecondMonitorVertRefresh" "UseEdidFreqs"
     Option "SecondMonitorHorizSync" "UseEdidFreqs"
     #Option "ConnectedMonitor" "DFP, CRT"
     #Option "MetaModes" "1680x1050,1024x768"
     #Option "UseEdidFreqs" "False"
     #Option "UseEdidDpi" "False"
     #Option "ModeValidation" "NoEdidModes"
     # Insert Clocks lines here if appropriate
     Screen 0
     BusID      "PCI:1:0:0"
     Option "ConnectedMonitor" "HpMonitor"
EndSection

Section "Device"
     Identifier  "nvidia1"
     Driver      "nvidia"
     VideoRam    524288

     Option "NvAgp" "1"
     Option "NoLogo" "True"
     Option "RenderAccel" "True"
     Option "EnablePageFlip" "True"
     Option "AgpFastWrite" "True"
     Option "AllowGLXWithComposite" "True"
     Option "BackingStore" "True"
     Option "Twinview"  "true"
     Option "TwinViewOrientation" "RightOf"
     #Option "SecondMonitorVertRefresh" "UseEdidFreqs"
     #Option "SecondMonitorHorizSync" "UseEdidFreqs"
     Option "ConnectedMonitor" "Samsung17inchfp"
     BusID      "PCI:1:0:0"
     #Option "MetaModes" "1680x1050,1024x768"
     #Option "UseEdidFreqs" "False"
     #Option "UseEdidDpi" "False"
     #Option "ModeValidation" "NoEdidModes"
     # Insert Clocks lines here if appropriate
     Screen 1
EndSection


Section "Screen"
     Identifier  "Screen0"
     Device      "nvidia0"
     Monitor     "HpMonitor"
     DefaultDepth 24
     Option     "AddARGBGLXVisuals" "true"
     Subsection "Display"
         Depth       24
         #Option "MetaModes" "1680x1050, 1024x768"
         #Modes       "1680x1050"
         #Modes       "1280x1024" "1024x768" "800x600" "640x480"
         #ViewPort    0 0
         #Option "TwinViewOrientation" "LeftOf"
         #Option "ConnectedMonitor" "CRT, CRT"
     EndSubsection
EndSection

Section "Screen"
     Identifier "Screen1"
     Device     "nvidia1"
     Monitor    "Samsung17inchfp"
     #Option "TwinViewOrientation" "LeftOf"
     Option "MetaModes" "1680x1050, 1024x768"
    # Option "TwinviewXineramaInfoOrder" "1"
     Subsection "Display"
        Depth       24
         #odes       "1024x768"
         #ViewPort    0 0

         #Option "TwinViewOrientation" "RightOf"
         #Option "ConnectedMonitor" "dfp,dfp"
     EndSubsection
EndSection


Section "Extensions"
        Option      "Composite"   "enable"
EndSection

#Section "ServerLayout"
#
#     Identifier  "Simple Layout"
#
#     Screen "Screen 0"
#     InputDevice "Mouse1" "CorePointer"
#     InputDevice "TouchPad" "AlwaysCore"
#     InputDevice "Keyboard1" "CoreKeyboard"
#
#EndSection

Section "ServerLayout"

     Identifier  "dual"

     Screen 0 "Screen0"
     Screen 1 "Screen1" RightOf "Screen0"
     InputDevice "Mouse1" "CorePointer"
     InputDevice "TouchPad" "AlwaysCore"
     InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum