[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing Nvida DKMS way, what's the difference between /etc/X11/xorg.conf.d and /etc/X11/xorg.conf method?

On Fri, Sep 02, 2011 at 23:50 +1000, yudi v wrote:
> I am trying to understand the difference between the following two methods
> First method
> this taken from irc dpkg bot
> "aptitude -r install linux-headers-2.6-`uname -r|sed 's,[^-]*-[^-]*-,,'`
> nvidia-kernel-dkms && mkdir /etc/X11/xorg.conf.d ; echo -e 'Section "Device"\n\
> tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/
> 20-nvidia.conf"
> this uses the xord.conf.d directory but it also has /etc/X11/xorg.conf  file.
> What happens in this case?

AFAICT this does not use a /etc/X11/xorg.conf file, but a device specific
configuration file in /etc/X11/xorg.conf.d. Since Xorg in Squeeze configures
itself automagically it is (IMHO) preferred to manually configure just the
devices that you actually want to configure.

It might help if I break this command down for you:

1. aptitude -r install linux-headers-2.6-`uname -r|sed 's,[^-]*-[^-]*-,,'`

   This installs the kernel headers which are needed to compile the nvidia
   module. The `uname -r|sed 's,[^-]*-[^-]*-,,'` command will just expand to
   your architecture:

       $ uname -r|sed 's,[^-]*-[^-]*-,,'


   and this package contains/pulls-in the nvidia driver itself.

 2. mkdir /etc/X11/xorg.conf.d ; echo -e 'Section "Device"\n\t
    Identifier "My GPU"\n\tDriver "nvidia"\nEndSection' > 

    This command will create a /etc/X11/xorg.conf.d/20-nvidia.conf file with
    the following content:

        Section "Device"
            Identifier "My GPU"
            Driver "nvidia"

    which configures Xorg to use the nvidia driver in lieu of the nouveau one.
Wolodja <babilen@gmail.com>

081C B7CD FF04 2BA9 94EA  36B2 8B7F 7D30 CAF1 4EFC

Attachment: signature.asc
Description: Digital signature

Reply to: