xorg.conf hell...
Chris van Es
cvanes at gmail.com
Thu Aug 28 23:21:45 UTC 2008
Your xorg.conf file looks a little bare because as of hardy the focus
has been to remove the need for lots of manual xorg configuration and
replace it with gui functionality. I haven't looked into this too much
yet but as far as I'm aware manually editing the file should still
produce the same results. I've provided an example of a simple xorg
configuration which could be a good basis to start from. I can't
guarantee it will work for you, there always needs to be some tweaking
done. The ServerLayout section is most likely the area you will need to
play with, depending on how you want your dual display setup can be
determined in one line within this section.
# 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.
#
# 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 "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
Section "Module"
## I'm unsure what I used for this section, I don't think it matters too
much for the task you're trying to achieve
Load "glx"
Load "GLcore"
Load "v4l"
EndSection
Section "Device"
Identifier "device0"
#substitute for the correct address for your hardware
Busid "PCI:X:X:X"
Driver "i810"
Screen 0
EndSection
Section "Device"
Identifier "device1"
#substitute for the correct address for your hardware
Busid "PCI:X:X:X"
Driver "nvidia" # or nvidia-new, nvidia-legacy etc. depending
on your hardware (can't remember the driver names now so they may be
wrong, a bit of research on what best supports your hardware will make
this much easier)
Screen 1
EndSection
Section "Screen"
Identifier "screen0"
Device "device0"
Defaultdepth 24
Monitor "monitor0"
Device "device0"
#everything below should be set to your own specifications
SubSection "Display"
Depth 24
Modes "640x480 at 60" "640x480 at 72" "640x480 at 75"
"800x600 at 56" "800x600 at 72" "800x600 at 75" "800x600 at 60"
"832x624 at 75" "1024x768 at 75" "1024x768 at 70" "1024x768 at 60"
"1152x864 at 75" "1280x1024 at 75" "1280x960 at 60" "1280x1024 at 60"
"1280x960 at 75" "1400x1050 at 60" "1600x1200 at 65" "1600x1200 at 60"
EndSubSection
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Defaultdepth 24
Monitor "monitor1"
Device "device1"
#everything below should be set to your own specifications
SubSection "Display"
Depth 24
Modes "640x480 at 60" "640x480 at 72" "640x480 at 75"
"800x600 at 56" "800x600 at 72" "800x600 at 75" "800x600 at 60"
"832x624 at 75" "1024x768 at 75" "1024x768 at 70" "1024x768 at 60"
"1152x864 at 75" "1280x1024 at 75" "1280x960 at 60" "1280x1024 at 60"
"1280x960 at 75" "1400x1050 at 60" "1600x1200 at 65" "1600x1200 at 60"
EndSubSection
EndSection
Section "monitor" #
Identifier "monitor0"
Vendorname "Samsung"
Modelname "Samsung SyncMaster 730B (Analog)"
Horizsync 30-81
Vertrefresh 56-75
modeline "640x480 at 60" 25.2 640 656 752 800 480 490 492 525 -vsync
-hsync
modeline "640x480 at 72" 31.5 640 664 704 832 480 489 491 520 -vsync
-hsync
modeline "640x480 at 75" 31.5 640 656 720 840 480 481 484 500 -vsync
-hsync
modeline "800x600 at 56" 36.0 800 824 896 1024 600 601 603 625 +hsync
+vsync
modeline "800x600 at 72" 50.0 800 856 976 1040 600 637 643 666 +hsync
+vsync
modeline "800x600 at 75" 49.5 800 816 896 1056 600 601 604 625 +hsync
+vsync
modeline "800x600 at 60" 40.0 800 840 968 1056 600 601 605 628 +hsync
+vsync
modeline "832x624 at 75" 57.284 832 864 928 1152 624 625 628 667 -vsync
-hsync
modeline "1024x768 at 75" 78.8 1024 1040 1136 1312 768 769 772 800
+hsync +vsync
modeline "1024x768 at 70" 75.0 1024 1048 1184 1328 768 771 777 806
-vsync -hsync
modeline "1024x768 at 60" 65.0 1024 1048 1184 1344 768 771 777 806
-vsync -hsync
modeline "1152x864 at 75" 108.0 1152 1216 1344 1600 864 865 868 900
+hsync +vsync
modeline "1280x1024 at 75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066
+hsync +vsync
modeline "1280x960 at 60" 102.1 1280 1360 1496 1712 960 961 964 994
-hsync +vsync
modeline "1280x1024 at 60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066
+hsync +vsync
modeline "1280x960 at 75" 129.86 1280 1368 1504 1728 960 961 964 1002
-hsync +vsync
modeline "1400x1050 at 60" 122.61 1400 1488 1640 1880 1050 1051 1054
1087 -hsync +vsync
modeline "1600x1200 at 65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250
+hsync +vsync
modeline "1600x1200 at 60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250
+hsync +vsync
Gamma 1.0
EndSection
Section "monitor" #
Identifier "monitor1"
Vendorname "Samsung"
Modelname "Samsung SyncMaster 730B (Analog)"
Horizsync 30-81
Vertrefresh 56-75
modeline "640x480 at 60" 25.2 640 656 752 800 480 490 492 525 -vsync
-hsync
modeline "640x480 at 72" 31.5 640 664 704 832 480 489 491 520 -vsync
-hsync
modeline "640x480 at 75" 31.5 640 656 720 840 480 481 484 500 -vsync
-hsync
modeline "800x600 at 56" 36.0 800 824 896 1024 600 601 603 625 +hsync
+vsync
modeline "800x600 at 72" 50.0 800 856 976 1040 600 637 643 666 +hsync
+vsync
modeline "800x600 at 75" 49.5 800 816 896 1056 600 601 604 625 +hsync
+vsync
modeline "800x600 at 60" 40.0 800 840 968 1056 600 601 605 628 +hsync
+vsync
modeline "832x624 at 75" 57.284 832 864 928 1152 624 625 628 667 -vsync
-hsync
modeline "1024x768 at 75" 78.8 1024 1040 1136 1312 768 769 772 800
+hsync +vsync
modeline "1024x768 at 70" 75.0 1024 1048 1184 1328 768 771 777 806
-vsync -hsync
modeline "1024x768 at 60" 65.0 1024 1048 1184 1344 768 771 777 806
-vsync -hsync
modeline "1152x864 at 75" 108.0 1152 1216 1344 1600 864 865 868 900
+hsync +vsync
modeline "1280x1024 at 75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066
+hsync +vsync
modeline "1280x960 at 60" 102.1 1280 1360 1496 1712 960 961 964 994
-hsync +vsync
modeline "1280x1024 at 60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066
+hsync +vsync
modeline "1280x960 at 75" 129.86 1280 1368 1504 1728 960 961 964 1002
-hsync +vsync
modeline "1400x1050 at 60" 122.61 1400 1488 1640 1880 1050 1051 1054
1087 -hsync +vsync
modeline "1600x1200 at 65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250
+hsync +vsync
modeline "1600x1200 at 60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250
+hsync +vsync
Gamma 1.0
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "screen0" "screen1"
EndSection
On Wed, 2008-08-27 at 17:34 -0700, Leonard Chatagnier wrote:
> --- Denis Haskin <denis at haskinferguson.net> wrote:
>
> > Ok, I was incorrect that the xorg.conf I posted
> > earlier was from
> > dpkg-reconfigure xserver-xorg; I don't think it was.
> >
> > So I booted to recovery mode, renamed my xorg.conf,
> > and ran
> > dpkg-reconfigure -phigh xserver-xorg.
> >
> > That gives me an xorg.conf that seems to have no
> > device/driver/monitor-specific details in it (see
> > below), but it *does*
> > recognize the correct mfr+model of my primary
> > monitor, gives me all the
> > resolutions I expect, and as far as I know is using
> > the right driver for
> > the onboard intel chip (how can I confirm that?).
> >
> lsmod | grep <chip name or ID> or just lsmod and scan
> the list for your driver. But if uour onboard graphics
> is working that's a confirmation you have the correct
> driver, IMO.
>
> > So now, starting from this workable point, tips on
> > getting the nvidia
> > card to work, and the 2nd monitor attached to it?
> >
> Did you ever try the nvidia-glx-new-envy driver as I
> mentioned below. It's what worked for me. You might
> try turning off the monitor using your onboard video,
> with the monitor using the nvidia card left on, and do
> nvedia-xconfig and if that fails do from recovery mode
> selecting xfix. I haven't done dual monitors yet so
> someone with that experience feel free to chime in.
>
> > Before when I ran nvidia-xconfig, it left me with a
> > bad xorg.conf (I
> > think that may have been the one I posted earlier; I
> > can try it again).
> > Maybe I should remove all the nvidia-glx stuff and
> > reinstall from
> > repository?
> >
> Unless you had an error on the install, I doubt there
> is a problem; but do install teh new envy driver. My
> xorg.conf is just like yours and my xorg.config, the
> nvodia-xconfig file has this:
> Section "Device"
> Identifier "Device0"
> Driver "nvidia"
> VendorName "NVIDIA Corporation"
> EndSection
>
> This loads the nvodia proprietary driver that you
> want. I believe that it uses the last driver that you
> downloaded or else I'm not using teh new-envy driver
> either. If you want teh high resolution nvidia drivers
> make sure it say "nvidia" and not "nv". HTH, and
> someone experienced with dual m onitor setup feel free
> to jump on board.
>
>
> > Thanks!
> >
> > # 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.
> > #
> > # 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 "InputDevice"
> > Identifier "Generic Keyboard"
> > Driver "kbd"
> > Option "XkbRules" "xorg"
> > Option "XkbModel" "pc104"
> > Option "XkbLayout" "us"
> > EndSection
> >
> > Section "InputDevice"
> > Identifier "Configured Mouse"
> > Driver "mouse"
> > Option "CorePointer"
> > EndSection
> >
> > Section "Device"
> > Identifier "Configured Video Device"
> > EndSection
> >
> > Section "Monitor"
> > Identifier "Configured Monitor"
> > EndSection
> >
> > Section "Screen"
> > Identifier "Default Screen"
> > Monitor "Configured Monitor"
> > Device "Configured Video Device"
> > EndSection
> >
> > Section "ServerLayout"
> > Identifier "Default Layout"
> > Screen "Default Screen"
> > EndSection
> >
> > Leonard Chatagnier wrote:
> > > FWIW, YMMV, I have an nVidia Corporation G71
> > [GeForce
> > > 7300 GS] (rev a1) card and had to use the
> > > nvidia-glx-new-envy driver to get my LG 226WTQS BF
> > > Flatron Wide lcd monitor to work in it's native
> > > resolution of 1680x1050. Also had to boot in
> > recovery
> > > mode and select xfix a few times before it all
> > sorted
> > > out after reinstalling the new-envy driver.
> > Wouldn't
> > > hurt to try the nvidia-glx-new-envy driver to see
> > if
> > > it fixes your issue. One caveat, I'm only using
> > the
> > > one monitor.
> > > HTH,
> > >
> > > Leonard Chatagnier
> > > lenc5570 at sbcglobal.net
> > >
> > >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> >
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
>
> Leonard Chatagnier
> lenc5570 at sbcglobal.net
>
More information about the ubuntu-users
mailing list