Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258440 - Add autoconfig of nvidia to xorg-server
Summary: Add autoconfig of nvidia to xorg-server
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo X packagers
URL: http://cgit.freedesktop.org/xorg/xser...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 13:45 UTC by Sascha Hlusiak
Modified: 2009-02-15 14:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Hlusiak 2009-02-10 13:45:38 UTC
Hi,
I'm building a total general Linux installation that should run on lot's of different hardware with maximal support. There is excellent support these days for Xorg-autoconfiguration; it all just works witout an xorg.conf. 

There was an official commit, which was reversed, because Xorg does not support nvidia at all (http://www.nabble.com/revert-b59757e468227127b91fff17b523da4deec8b04d-td18558857.html), but Gentoo does.

I'd be happy to see the following patch applied (only), when VIDEO_CARDS includes "nvidia", so people with nvidia can live without hardcoded xorg.conf as well.

Thanks.



diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index 7e5fab4..66da7a9 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -164,7 +164,8 @@ videoPtrToDriverName(struct pci_device *dev)
        case 0x102b:                return "mga";
        case 0x10c8:                return "neomagic";
        case 0x105d:                return "i128";
-       case 0x10de: case 0x12d2:   return "nv";
+       case 0x10de:                return "nvidia";
+       case 0x12d2:                return "nv";
        case 0x1163:                return "rendition";
        case 0x5333:
            switch (dev->device_id)


Reproducible: Always

Steps to Reproduce:
1. Emerge nvidia-drivers and xf86-video-nv
2. Delete xorg.conf
3. See Xorg picking the nv driver instead of the better nvidia



Expected Results:  
I'd like to see nvidia chosen; that's why I installed it
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2009-02-15 07:09:16 UTC
Sorry, I have no interest in adding patches that aren't supported by upstream. Feel free to keep the patch in your overlay. Otherwise, you can have a nice simple xorg.conf (works for me with 1.5.3):

metis $ cat /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection
Comment 2 Sascha Hlusiak 2009-02-15 14:58:08 UTC
I understand, I'll keep a patched version in my overlay.

The xorg.conf snipped does not help because the same system should run on NVidia, ATI and Intel hardware without any modifications, which it does with my patched xorg-server.

Thanks for your time.