| 1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nvidia-guide.xml,v 1.49 2010/05/14 22:22:26 nightmorph Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nvidia-guide.xml,v 1.50 2010/07/13 19:55:51 nightmorph Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide> |
5 | <guide> |
| 6 | <title>Gentoo Linux nVidia Guide</title> |
6 | <title>Gentoo Linux nVidia Guide</title> |
| 7 | |
7 | |
| … | |
… | |
| 26 | |
26 | |
| 27 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
27 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 28 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
28 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 29 | <license/> |
29 | <license/> |
| 30 | |
30 | |
| 31 | <version>1.40</version> |
31 | <version>1.41</version> |
| 32 | <date>2010-05-14</date> |
32 | <date>2010-07-13</date> |
| 33 | |
33 | |
| 34 | <chapter> |
34 | <chapter> |
| 35 | <title>Introduction</title> |
35 | <title>Introduction</title> |
| 36 | <section> |
36 | <section> |
| 37 | <body> |
37 | <body> |
| … | |
… | |
| 217 | link="/doc/en/handbook/">Installation Handbook</uri> for details on configuring |
217 | link="/doc/en/handbook/">Installation Handbook</uri> for details on configuring |
| 218 | your kernel. |
218 | your kernel. |
| 219 | </p> |
219 | </p> |
| 220 | |
220 | |
| 221 | <p> |
221 | <p> |
| 222 | First, you'll need to emerge <c>eselect</c> (if you don't already have it). If |
222 | First, you'll need to choose the right kernel source using <c>eselect</c>. If |
| 223 | you are using <c>gentoo-sources-2.6.18-r4</c>, your kernel listing might look |
223 | you are using <c>gentoo-sources-2.6.34-r1</c>, your kernel listing might look |
| 224 | something like this: |
224 | something like this: |
| 225 | </p> |
225 | </p> |
| 226 | |
226 | |
| 227 | <pre caption="Check your /usr/src/linux symlink"> |
227 | <pre caption="Check your /usr/src/linux symlink"> |
| 228 | # <i>eselect kernel list</i> |
228 | # <i>eselect kernel list</i> |
| 229 | Available kernel symlink targets: |
229 | Available kernel symlink targets: |
| 230 | [1] linux-2.6.18-gentoo-r4 * |
230 | [1] linux-2.6.34-gentoo-r1 * |
| 231 | [2] linux-2.6.20-gentoo-r7 |
231 | [2] linux-2.6.33-gentoo-r2 |
| 232 | [3] linux-2.6.20-gentoo-r8 |
232 | [3] linux-2.6.32.9 |
| 233 | <comment>(Verify that the right kernel is marked with an asterisk</comment> |
233 | <comment>(Verify that the right kernel is marked with an asterisk</comment> |
| 234 | </pre> |
234 | </pre> |
| 235 | |
235 | |
| 236 | <p> |
236 | <p> |
| 237 | In the above output, you'll notice that the <c>linux-2.6.18-gentoo-r4</c> kernel |
237 | In the above output, you'll notice that the <c>linux-2.6.34-gentoo-r1</c> kernel |
| 238 | is marked with an asterisk (<b>*</b>) to show that it is the symlinked kernel. |
238 | is marked with an asterisk (<b>*</b>) to show that it is the symlinked kernel. |
| 239 | </p> |
239 | </p> |
| 240 | |
240 | |
| 241 | <p> |
241 | <p> |
| 242 | If the symlink is not pointing to the correct sources, you must update the link |
242 | If the symlink is not pointing to the correct sources, you must update the link |
| … | |
… | |
| 254 | <section> |
254 | <section> |
| 255 | <title>Installing the Appropriate Drivers</title> |
255 | <title>Installing the Appropriate Drivers</title> |
| 256 | <body> |
256 | <body> |
| 257 | |
257 | |
| 258 | <p> |
258 | <p> |
| 259 | Now it's time to install the drivers. |
259 | Now it's time to install the drivers. You can do this by first following the |
| 260 | </p> |
260 | <uri link="/doc/en/xorg-config.xml">X Server Configuration HOWTO</uri> and |
| 261 | |
261 | setting <c>VIDEO_CARDS="nvidia"</c> in <path>/etc/make.conf</path>. When you |
| 262 | <pre caption="Installing the nVidia drivers"> |
262 | install the X server, it will then install the right version of |
| 263 | # <i>emerge nvidia-drivers</i> |
263 | <c>nvidia-drivers</c> for you. |
| 264 | </pre> |
264 | </p> |
| 265 | |
265 | |
| 266 | <note> |
266 | <note> |
| 267 | The drivers can be installed with the <c>gtk</c> USE flag set. This will install |
267 | The drivers can be installed with the <c>gtk</c> USE flag set in |
|
|
268 | <path>/etc/make.conf</path>. This will install |
| 268 | <c>media-video/nvidia-settings</c>, a handy graphical tool for monitoring and |
269 | <c>media-video/nvidia-settings</c>, a handy graphical tool for monitoring and |
| 269 | configuring several aspects of your nVidia card. |
270 | configuring several aspects of your nVidia card. |
| 270 | </note> |
271 | </note> |
| 271 | |
272 | |
| 272 | <impo> |
273 | <impo> |
| 273 | Every time you <uri link="/doc/en/kernel-upgrade.xml">compile a new kernel</uri> |
274 | Every time you <uri link="/doc/en/kernel-upgrade.xml">compile a new kernel</uri> |
| 274 | or recompile the current one, you will need to run <c>emerge nvidia-drivers</c> |
275 | or recompile the current one, you will need to reinstall the nVidia kernel |
| 275 | to reinstall the nVidia modules. An easier way to keep track of modules |
276 | modules. An easy way to keep track of modules installed by ebuilds (such as |
| 276 | installed by ebuilds (such as <c>nvidia-drivers</c>) is to install |
277 | <c>nvidia-drivers</c>) is to install <c>sys-kernel/module-rebuild</c>. Once |
| 277 | <c>sys-kernel/module-rebuild</c>. Once you've installed it, simply run |
278 | you've installed it, simply run <c>module-rebuild populate</c> to populate its |
| 278 | <c>module-rebuild populate</c> to populate its database with a list of packages |
279 | database with a list of packages to be rebuilt. Once you've finished compiling |
| 279 | to be rebuilt. Once you've finished compiling or recompiling a kernel, just run |
280 | or recompiling a kernel, just run <c>module-rebuild rebuild</c> to rebuild the |
| 280 | <c>module-rebuild rebuild</c> to rebuild the drivers for your new kernel. |
281 | drivers for your new kernel. |
| 281 | </impo> |
282 | </impo> |
| 282 | |
283 | |
| 283 | <p> |
284 | <p> |
| 284 | Once the installation has finished, run <c>modprobe nvidia</c> to load the |
285 | Once the installation has finished, run <c>modprobe nvidia</c> to load the |
| 285 | kernel module into memory. If this is an upgrade, you should remove the |
286 | kernel module into memory. If this is an upgrade, you should remove the |