Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Thread Tools
Old 01-07-08, 09:16 AM   #1
Registered User
Join Date: Jun 2004
Posts: 1
Default Need nvidia driver to support multiple xorg.conf files

I have a set of machines, all with nvidia cards, all with slightly different hardware (GeForce 5200 v 6200, different models of monitors, etc). They all boot off a single NFS root share via TFTP. According to the xorg.conf man page, X starts looking for configuration files in the following order:

Since each machine knows its own hostname, I want to use /usr/etc/X11/xorg.conf.<hostname> to have a custom X config for each machine. Unfortunately, the nVidia driver seems to ONLY look in /etc/X11/xorg.conf, and the kernel module refuses to load unless it sees the "nvidia" driver option in that file. If I create an xorg.conf to make the nvidia kernel module happy, then X uses it instead of the localize version, and every machine on the network tries to use the same xorg.conf, with graphics chaos the result.

The question is: is there a way to disable the kernel module's check of xorg.conf to allow it to load, or is there a way I can convince nVidia to follow the xorg.conf spec and have their driver check all the "right" places for a valid config file, or is there some symlink treachery that someone can recommend I try to fake the driver into using the right file?

jgorkos is offline   Reply With Quote
Old 01-07-08, 09:41 AM   #2
Arch Linux
lloeki's Avatar
Join Date: Oct 2006
Posts: 122
Default Re: Need nvidia driver to support multiple xorg.conf files

things of interest:
- 'man Xorg' gives a -config filename option and a CONFIGURATION section.
- 'man xorg.conf' gives interesting details about <cmdline> and $XORGCONFIG stuff when it looks for a config file.

based on this you could have:
- a shell script with a 'case `hostname` in ... esac' or something.
- have a bunch of shell scripts named after the hostnames so that looked up config match
- have a single shell script with many symlinks giving behavior of previous point with only one file
- set $XORGCONFIG to `xorg.hostname`.conf

so, be creative...

I just tested stopping gdm, sudo rmmod nvidia, moving away my xorg.conf file, copying it to home (restriction of -config) with a weird name, sudo modprobe nvidia, startx -- -config weirdname, and it works.
lloeki is offline   Reply With Quote
Old 01-07-08, 10:44 AM   #3
NVIDIA Corporation
AaronP's Avatar
Join Date: Mar 2005
Posts: 2,487
Default Re: Need nvidia driver to support multiple xorg.conf files

Neither the X driver nor the NVIDIA kernel module know anything about the X config file. I suspect you're using Ubuntu or possibly some other Debian-based distro and are falling victim to some of the shell scripts that their driver packages install. I would recommend asking for help in your distribution's support channels.

You can tell the server to load a different config file with the -config option. Using that or the $XORGCONFIG environment variable sound like your best bet.
AaronP is offline   Reply With Quote
Old 01-07-08, 12:08 PM   #4
Registered User
Join Date: Nov 2006
Posts: 95
Default Re: Need nvidia driver to support multiple xorg.conf files

It's probably some 'magic' your distribution is doing to detect the needed kernel modules. There's probably some configuration file to override that setting or startup-script to manually call modprobe. That way you could avoid setting up a dummy xorg.conf-file with the Driver "nvidia" line.

Again, it's distribution specific, so I cannot provide details.
Tub is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 09:55 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM
Official Detonator 40.xx Feedback Thread pelly NVIDIA Windows Graphics Drivers 299 09-22-02 06:54 AM

All times are GMT -5. The time now is 01:52 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.