PDA

View Full Version : [ubuntu] I got Hardy 8.04 to work with my second monitor... sort of



_UsUrPeR_
April 30th, 2008, 06:41 AM
Ok, let me lay it out.

I have a Dell 2405FPW (1920x1200@60) primary monitor, and a SGI GDM-20E21 (1600x1200@60) CRT as a secondary. I am using twinview for the dual monitor setup. I am running these through an Nvidia 8800GT, and have successfully gotten both monitors to work properly after a fashion. Let me describe the steps I had due to the SGI monitor not being detected. After that, I'll ask my question.

I am using the automatically installed nvidia drivers from EnvyNG.

1) Open System>Administration>NVIDIA X Server Settings
2) Click on X Server Display Configuration
3) In the right window, I saw my 2405FPW with the proper resolution, and a monitor labeled "CRT-1 (off)"
4) Select your secondary monitor
5) Click Configure and select Twinview in there
6) Change the resolution to anything but "Auto". I changed mine to 640x480
7) Change the refresh rate to anything but "Auto" as well. Mine had only the option for Auto or 60Hz, so I picked 60.
8) Make sure your position is defined as an absolute to avoid confusion in the xorg.conf. As an example, CRT-1 monitor's position was +1920+0
9) Click Apply. This will turn on the secondary monitor.
10) Click "Save to X configuration"
11) save the xorg.conf file to your desktop or another directory/name to ensure that you don't merge the file or try to overwrite the original xorg.conf file.

Here's an example of the xorg.conf file that I got:


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@yellow) Tue Mar 4 20:28:57 UTC 2008

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

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection

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

Section "ServerFlags"
Option "Xinerama" "0"
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"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-1"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8800 GT"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "CRT: 640x480_60 +1920+0, DFP: 1920x1200_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection


12) In the xorg.conf above, you can see the the bolded text 640x480_60. To adjust the monitor's resolution, all you have to do is change the resolution to your monitor's desired settings. I changed mine to 1600x1200_60.

13) I made a backup copy of my original xorg.conf file, then copied the newly edited file over the original /etc/X11/xorg.conf.
14) Once I did that, I hit CRTL+ALT+BACKSPACE to restart x server. I logged back in, and lo and behold,the second monitor came up in it's full 1600x1200 glory.On top of the proper resolution, the monitor's model number is also properly detected in the NVIDIA X Server Settings program.


The problem I now have:
The SGI monitor does not come on after I reboot the computer. I have to go in to NVIDIA X Server Settings, select the CRT-1 monitor and turn it back to Twinview then apply that to turn the monitor on, then CRTL+ALT+BACKSACE to log out, THEN log back in. Once I do that, it comes back at the proper 1600x1200 settings in the xorg.conf.

How do I get ubuntu to read the xorg.conf file instead of skipping that and trying to detect stuff?

Thanks, and I hope this helps someone searching for the answer like I was yesterday.

davidwrocklage
May 4th, 2008, 08:47 AM
do every thing like you did before except run

"gksudo nvidia-settings"

in order to open the xserver settings gui

I also save the new file to the x configuration file instead of to desktop

_UsUrPeR_
May 25th, 2008, 04:33 PM
Sorry to report back so late. That worked perfectly, and my monitor starts on bootup. Thanks! :D

Joel