Linux:Docking Station + External Monitor + Laptop Lid Closed

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
helikaon
Posts: 3
Joined: Tue Apr 08, 2008 12:35 am
Location: Mlada Boleslav, Czech republic

Linux:Docking Station + External Monitor + Laptop Lid Closed

#1 Post by helikaon » Mon May 05, 2008 3:45 pm

Hello,
recently, i setup linux CentOS 5.1 on my R61 ntb. I'd say pretty straightforward install in text mode (gui mode wasnt running). All turned ok after installing proprietary nvidia driver NVIDIA-Linux-x86_64-169.12-pkg2.run.
Only problem i experienced was with redirecting my dvi signal to external screen.
Description:
My laptop would boot up with the External monitor working, untill it came to the part where the desktop manager starts - when the GDM hit start, it turned signal back to internal notebook display. Confirmed by opening the lid of my laptop and revealed that it reverted back to the laptop display.
I tried fiddling with the nvidia-settings utility (nice graphical gui utility - working correctly only under root account btw). I tried setting twin view than back to separate screens, tried turn on/off xinerama and again back to separate screens. Nothing worked. I just wanna come to office, throw ntb to dock, turn it on (without opening lid) and enjoy ext keyboard, mouse, monitor.
I did some googling and found that quite a bunch of people had same problem in various distributions ... ubuntu, kubuntu, fedora, debian to name a few. So it's not a distro problem, but problem of nvidia utility incorrectly setting the /etc/X11/xorg.conf configuration file.
Took me couple of hours of reading, trying. Finally i found what items to edit in xorg. conf to get it working as i intended.
Here i'll post the 2 xorg.conf files - first one the wrong, secon one the good one working, so you might have a look and in case of same problem, find some inspiration:
1. bad xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder26) Thu Feb 14 18:13:41 PST 2008
# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" RightOf "Screen1"
Screen 1 "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "IBM"
HorizSync 53.2 - 63.9
VertRefresh 50.0 - 60.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "HP LP2065"
HorizSync 30.0 - 92.0
VertRefresh 48.0 - 85.0
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 140M"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 140M"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Videocard1"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: 1680x1050_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
Identifier "Screen1"
Device "Videocard0"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: 1600x1200_60 +0+0"
EndSection

2. working xorg.conf after edit:

I'l paste only the end of the file, the beginning is same....

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 140M"
BusID "PCI:1:0:0"
Option "UseDisplayDevice" "DFP-1" #changed
Screen 1 #changed
EndSection

Section "Device"
Identifier "Videocard1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 140M"
BusID "PCI:1:0:0"
Screen 0 #changed
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: 1680x1050_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: 1600x1200_60 +0+0"
EndSection

The section "device" is where i did the little arrangement.
IBM-Lenovo 8918 DEG
hw: Intel Core 2 Duo T8100, 4GB Ram, Quadro NVS 140M, 160GB HDD
sw: MS Windows XP Professional x64 + linux CentOS 5.1 64bit

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: axur-delmeria and 1 guest