How to make xorg prefer "nvidia" over "nv" driver in a xorg.conf less configuration?

Francesco Pretto ceztkoml at gmail.com
Fri May 15 00:54:06 PDT 2009


Aaron Plattner <aplattner <at> nvidia.com> writes:
> You can sort of do this, but you do need an xorg.conf.  For example,
> ... 

Yes, it worked! Here is the xorg.conf I am using now:

---------------------------------------

Section "ServerLayout"
        Identifier      "default layout"
        Screen 0        "vbox"
        Screen 1        "nvidia"
EndSection

Section "Screen"
        Identifier "vbox"
        Device "VirtualBox Video Card"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nVidia Corporation G70 [GeForce Go 7600]"
        Monitor         "Generic Monitor"
        Defaultdepth    24
        SubSection "Display"
                Modes           "1280x800"
        EndSubSection
EndSection

Section "Device"
        Identifier      "VirtualBox Video Card"
        Driver          "vboxvideo"
EndSection

Section "Device"
        Identifier      "nVidia Corporation G70 [GeForce Go 7600]"
        Driver          "nvidia"
        Busid           "PCI:1:0:0"
        Option          "AddARGBVisuals"        "True"
        Option          "AddARGBGLXVisuals"     "True"
        Option          "NoLogo"        "True"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        Horizsync       28-64
        Vertrefresh     43-60
EndSection

---------------------------------------

As you stated, it's tricky as it's based on failing of another driver first.
Still, I'm against that commit putting "nvidia" before "nv" in the hardcoded
loading mechanism of Xserver. A better solution, like HAL fdi policies working
for video drivers, is IMO the way to go.

Thanks,
Francesco




More information about the xorg mailing list