/[gentoo]/xml/htdocs/doc/en/nvidia-guide.xml
Gentoo

Contents of /xml/htdocs/doc/en/nvidia-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Tue May 18 16:15:25 2004 UTC (10 years, 7 months ago) by swift
Branch: MAIN
Changes since 1.1: +2 -2 lines
File MIME type: application/xml
Use right date :)

1 <?xml version='1.0' encoding="UTF-8"?>
2 <!-- $Header: /home/cvsroot/gentoo/xml/htdocs/doc/en/nvidia-guide.xml,v 1.1 2004/05/18 16:13:37 swift Exp $ -->
3 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4
5 <guide link="/doc/en/nvidia-guide.xml">
6 <title>Gentoo Linux nVidia Guide</title>
7
8 <author title="Author">
9 <mail link="swift@gentoo.org">Sven Vermeulen</mail>
10 </author>
11
12 <abstract>
13 Many Gentooists have an nVidia chipset on their system. nVidia provides specific
14 Linux drivers to boost the performance of your card. This guide informs you how
15 to install and configure these drivers.
16 </abstract>
17
18 <license/>
19
20 <version>1.0</version>
21 <date>May 18, 2004</date>
22
23 <chapter>
24 <title>Configuring your Card</title>
25 <section>
26 <title>Installing the Appropriate Drivers</title>
27 <body>
28
29 <p>
30 The nVidia drivers include kernel modules that must integrate in your current
31 kernel. To accomplish this, your kernel must support the loading of kernel
32 modules. If you used <c>genkernel</c> to configure the kernel for you then
33 you're all set. If not, double check your kernel configuration so that this
34 support is enabled:
35 </p>
36
37 <pre caption="Enabling the Loading of Kernel Modules">
38 Loadable module support ---&gt;
39 [*] Enable loadable module support
40 </pre>
41
42 <p>
43 nVidia's modules and libraries are combined in two packages: <c>nvidia-glx</c>
44 and <c>nvidia-kernel</c>. The former are the X11 GLX libraries while the latter
45 are the kernel modules. You need both so you should install those now.
46 </p>
47
48 <pre caption="Installing the nVidia modules">
49 # <i>emerge nvidia-glx nvidia-kernel</i>
50 </pre>
51
52 <p>
53 Once the installation has finished, run <c>modprobe nvidia</c> to load the
54 kernel module into memory.
55 </p>
56
57 <pre caption="Loading the kernel module">
58 # <i>modprobe nvidia</i>
59 </pre>
60
61 <p>
62 You probably want to have this done each time you boot your system, so edit
63 <path>/etc/modules.autoload.d/kernel-2.6</path> (or <path>kernel-2.4</path>) and
64 add <c>nvidia</c> to it. Don't forget to run <c>modules-update</c> afterwards!
65 </p>
66
67 <pre caption="Running modules-update">
68 # <i>modules-update</i>
69 </pre>
70
71 </body>
72 </section>
73 <section>
74 <title>Configuring the X Server</title>
75 <body>
76
77 <p>
78 Once the appropriate drivers are installed you need to configure your X Server
79 (XFree86 or Xorg) to use the <c>nvidia</c> driver instead of the default
80 <c>nv</c> driver.
81 </p>
82
83 <p>
84 Open <path>/etc/X11/XF86Config</path> (or <path>/etc/X11/xorg.conf</path>) with
85 your favorite editor (such as <c>nano</c> or <c>vim</c>) and go to the
86 <c>Device</c> section. In that section, change the <c>Driver</c> line:
87 </p>
88
89 <pre caption="Changing nv to nvidia in the X Server configuration">
90 Section "Device"
91 Identifier "nVidia Inc. GeForce2"
92 <i>Driver "nvidia"</i>
93 VideoRam 65536
94 EndSection
95 </pre>
96
97 <p>
98 Run <c>opengl-update</c> so that the X Server uses the nVidia GLX libraries:
99 </p>
100
101 <pre caption="Running opengl-update">
102 # <i>opengl-update nvidia</i>
103 </pre>
104
105 </body>
106 </section>
107 <section>
108 <title>Testing your Card</title>
109 <body>
110
111 <p>
112 To test your nVidia card, fire up X and run the <c>glxinfo | grep direct</c>
113 command. It should say that direct rendering is activated:
114 </p>
115
116 <pre caption="Checking the direct rendering status">
117 $ <i>glxinfo | grep direct</i>
118 direct rendering: Yes
119 </pre>
120
121 <p>
122 To monitor your FPS, run <c>glxgears</c>.
123 </p>
124
125 </body>
126 </section>
127 </chapter>
128 </guide>

  ViewVC Help
Powered by ViewVC 1.1.20