tvogel / vaio-f11-linux

Automatically exported from code.google.com/p/vaio-f11-linux
7 stars 2 forks source link

No Dual Monitor Support with Nvidia Drivers #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Plug in an external monitor (VGA or HDMI)
2. Use sudo nvidia-settings to try and detect the monitor
3.

What is the expected output? What do you see instead?
Doesn't pick up a monitor

What version of the product are you using? On what operating system?
Ubuntu 10.04, Vaio F CTO

Please provide any additional information below.
If you install the Nvidia drivers while an external monitor is plugged in the 
external monitor will work, but not the built in screen.

Original issue reported on code.google.com by dennis.r...@gmail.com on 18 Jul 2010 at 1:34

GoogleCodeExporter commented 9 years ago
I have the same situation as above, running Debian Squeeze, 2.6.32-5-amd64.

Original comment by anvilf...@gmail.com on 18 Jul 2010 at 3:11

GoogleCodeExporter commented 9 years ago
To connect 2 monitors to your laptop, you should enable the twinview option 
from nvidia.
Apparently this can't be set up directly through the "NVIDIA X Server settings" 
applet.
Therefore first edit the file /etc/X11/xorg.conf like below.
After that you can use the "NVIDIA X Server settings" applet again to change 
further settings.

Requirements:

- extract the .edid file of your laptop monitor and copy it to 
      /etc/X11/sony-vpcf11m1e.edid

  (OR use the file attached if you have a vpcf11m1e model)

- make a backup copy of your original "xorg.conf" in case something goes wrong

- modify the "xorg.conf" as described below or use the one attached

- log out from linux or restart the laptop to make the new settings active

- if it worked, the 2 monitors should appear in the "NVIDIA X Server settings" 
applet.

(if this did not work for you, restore your backup xorg.conf file to 
/etc/X11/xorg.conf )

Notes:

- in "xorg.conf" below, DFP-0 is the laptop screen and DFP-1 is the second 
monitor

- the .edid file provided works for a VPCF11M1E, 
  possibly other models have other .edid files than the one attached.

xorg.conf file:

################################################################################
############
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@yellow)  Fri Apr  9 11:51:21 UTC 2010

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Fri Mar 12 02:12:40 
PST 2010

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "MS_ Nvidia Default Flat Panel"
    HorizSync       62.5 - 68.6
    VertRefresh     50.0 - 60.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 330M"
    Option         "NoLogo" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "ConnectedMonitor" "DFP-0,DFP-1"
    Option         "CustomEdid" "DFP-0:/etc/X11/sony-vpcf11m1e.edid"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+768, DFP-1: 1024x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Original comment by tmb...@gmail.com on 18 Jul 2010 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago
I just use the following xorg.conf, and use nvidia server settings to control 
the second monitor. Note that I use CRT-0 for the second monitor as I'm using a 
VGA cable, I guess you'd use DFP-1 when using DVI.

Section "Screen"
    Identifier  "Default Screen"
    DefaultDepth    24
EndSection

Section "Device"
    Identifier "InternalCard"
    Driver     "nvidia"
    Option     "NoLogo" "true"
    Option     "ConnectedMonitor"  "DFP-0,CRT-0"
    Option     "CustomEDID" "DFP-0: /proc/acpi/video/NGFX/LCD/EDID" 
    Option     "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Original comment by auxb...@gmail.com on 28 Jul 2010 at 8:43

GoogleCodeExporter commented 9 years ago
Success! I needed a little bit of both to make this work.  I have GeForce 330M 
and connected my Samsung LED through VGA.  Thanks so much for all the help 
everyone.  My xorg is as follows:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "MS_ Nvidia Default Flat Panel"
    HorizSync       62.5 - 68.6
    VertRefresh     50.0 - 60.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 330M"
    Option         "NoLogo" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "ConnectedMonitor" "DFP-0,CRT-0"
    Option         "CustomEdid" "DFP-0:/etc/X11/sony-vpcf11m1e.edid"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "DFP-0: nvidia-auto-select +0+768, CRT-0: 1024x768 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Original comment by dennis.r...@gmail.com on 31 Jul 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Seems like this is not related to the Vaio but just a general issue on not 
knowing how to use Nvidia drivers.

Original comment by Jason.Donenfeld on 11 Aug 2010 at 1:20

GoogleCodeExporter commented 9 years ago
Correct me if I'm wrong, but shouldn't NVidia Drivers / nvidia-settings be able 
to recognize your hardware settings automatically? I use them on another laptop 
(with an 7300 go card) and I do not need to create a xorg.conf file to get 
nvidia drivers or TwinView. 

It is also my understanding that the xorg.conf file is starting to become 
deprecated (again, correct me if I'm wrong). More and more systems do not have 
it by default. I had to create one manually for my VAIO to work, and now I will 
need to modify it again to have TwinView enabled by default, instead of it 
being recognized as elsewhere.

Personally, I think it is either an issue with Nvidia drivers or with the 
VAIO's relationship with those drivers.

Original comment by anvilf...@gmail.com on 11 Aug 2010 at 7:48

GoogleCodeExporter commented 9 years ago
Did you give a try with the latest (256.44) driver?

Original comment by stephv...@gmail.com on 18 Aug 2010 at 12:10