PDA

View Full Version : [ubuntu] Need help writing xorg.conf file



tnsmart
May 7th, 2010, 09:08 PM
I'm hoping that someone can help me write my xorg.conf file for a dual monitor setup. I have 2 Gateway 17" monitor connected to a Gateway E-4610S desktop with both a VGA and DVI port built in. 1 monitor is connected by VGA, the other by DVI.

I want both monitors at 1280x1024, but the Monitor Preferences in Ubuntu only gives me 1280x1024 for the DVI monitor. I have tried creating an xorg.conf file (in /etc/X11), but it is not working. The file is:


# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Intel Q965 "
Driver "intel"
Option "monitor-VGA" "primary"
#Option "monitor-TMDS-1" "secondary"
EndSection

Section "Monitor"
Identifier "primary"
Option "PreferredMode" "1280x1024"
Option "Position" "0 0"
EndSection

Section "Monitor"
Identifier "secondary"
Option "PreferredMode" "1280x1024"
Option "RightOf" "primary"
Option "Enable" "true"
Option "Rotate" "normal"
EndSection

Section "Screen"
Identifier "primary"
Device "Intel Corporation 82Q963/Q965 Integrated Graphics Controller"
Monitor "primary"
DefaultDepth 24

SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "640x480"
EndSubSection

EndSection

Section "Screen"
Identifier "secondary"
Device "Intel Corporation 82Q963/Q965 Integrated Graphics Controller"
Monitor "secondary"
DefaultDepth 24

SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "640x480"
EndSubSection

EndSectionIf it helps, xrandr in Terminal returns:

Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
1024x768 60.0*
800x600 60.3 56.2
848x480 60.0
640x480 59.9
DVI1 connected 1280x1024+1024+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0 + 75.0*
1024x768 75.1 70.1 60.0
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 60.0
720x400 70.1
and lspci returns:

00:00.0 Host bridge: Intel Corporation 82Q963/Q965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82Q963/Q965 PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q963/Q965 HECI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q963/Q965 PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q963/Q965 KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HO (ICH8DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
03:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6101 single-port PATA133 interface (rev b1)
root@CASAserver:~#
Any help is greatly appreciated. Thanks.

nanohead
May 7th, 2010, 09:17 PM
Sorry for my dumb question.... are both monitors already working together at the same time?

Not sure how to do xorg.conf files for duallies, but what you did makes some sense. I wonder if you need a native driver to make it work :confused:

tnsmart
May 7th, 2010, 10:01 PM
Sorry for my dumb question.... are both monitors already working together at the same time?

Not sure how to do xorg.conf files for duallies, but what you did makes some sense. I wonder if you need a native driver to make it work :confused:

Yes, both work together. My secondary monitor (DVI, on the right) has the correct 1280x1024 resolution. However, the primary monitor (VGA, on the left) is stuck at 1024x768. I know it's nothing wrong with the monitor because if I connect it with DVI, I get the 1280x1024.

I looked for Hardware Drivers under the Administration menu, but none were found.

Thanks for the reply.

tnsmart
May 10th, 2010, 07:57 PM
Anybody?