https://wiki.archlinux.org/api.php?action=feedcontributions&user=Jameh0&feedformat=atomArchWiki - User contributions [en]2024-03-28T12:36:34ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Nouveau&diff=271212Nouveau2013-08-15T02:12:41Z<p>Jameh0: Fix broken link.</p>
<hr />
<div>[[Category:Graphics]]<br />
[[Category:X Server]]<br />
[[es:Nouveau]]<br />
[[it:Nouveau]]<br />
[[ru:Nouveau]]<br />
[[zh-CN:Nouveau]]<br />
{{Article summary start}}<br />
{{Article summary text|This article details the installation of the Nouveau Open Source 3D acceleration graphics driver for NVIDIA cards. The name of the project refers to the fact that "nouveau" means "new" in French.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|NVIDIA}}<br />
{{Article summary wiki|Xorg}}<br />
{{Article summary end}}<br />
<br />
This article covers installing and configuring the [http://nouveau.freedesktop.org/ Nouveau] open source driver for NVIDIA graphic cards. For information about the official proprietary driver, see [[NVIDIA]].<br />
<br />
== Coming from the proprietary NVIDIA driver ==<br />
{{Note|This section is only for people who have the proprietary [[NVIDIA]] driver installed. It can be skipped by all other users.}}<br />
<br />
{{Tip|If you want to keep Nvidia driver installed, it [[#Keep NVIDIA driver installed|requires some configuration]] to load the Nouveau driver instead of Nvidia.}}<br />
If you already installed the proprietary Nvidia driver, then remove it first: <br />
<br />
# pacman -Rdds nvidia nvidia-utils nvidia-libgl<br />
<br />
Be sure to also delete the {{ic|/etc/X11/xorg.conf}} file that the Nvidia driver created (or undo the changes), or else X will fail to properly load the Nouveau driver.<br />
<br />
== Installation ==<br />
<br />
Before proceeding, figure out your card's [http://nouveau.freedesktop.org/wiki/CodeNames codename] (a more detailed list is available on [[Wikipedia:Comparison of Nvidia Graphics Processing Units|Wikipedia]]) and have a look at the [http://nouveau.freedesktop.org/wiki/FeatureMatrix/ feature matrix] to see what features are supported for your graphics card. Also make sure you have [[Xorg]] properly installed.<br />
<br />
[[pacman|Install]] the DDX driver with the {{Pkg|xf86-video-nouveau}} package, which is available in the [[Official Repositories|official repositories]]. It pulls in {{Pkg|nouveau-dri}} as a dependency, providing the DRI driver for 3D acceleration.<br />
<br />
For 32-bit 3D support on x86_64, install {{Pkg|lib32-nouveau-dri}} from the [[multilib]] repository.<br />
<br />
{{Note|See the [http://nouveau.freedesktop.org/wiki/MesaDrivers Nouveau MesaDrivers page] before reporting bugs with the 3D drivers.}}<br />
<br />
== Loading ==<br />
<br />
The Nouveau kernel module should load fine automatically on system boot.<br />
<br />
If it does not happen, then:<br />
<br />
* Make sure you do '''not''' have {{ic|nomodeset}} or {{ic|1=vga=}} as a [[Kernel parameters|kernel parameter]], since Nouveau needs kernel mode-setting in order to run successfully (see below).<br />
* Also, check that you have not disabled Nouveau by using any modprobe blacklisting within {{ic|/etc/modprobe.d/}}.<br />
<br />
=== KMS ===<br />
<br />
{{Tip|If you have problems with the resolution, check [[Kernel Mode Setting#Forcing modes and EDID]].}}<br />
<br />
[[Kernel Mode Setting]] (KMS) is required by the Nouveau driver. As the system boots, the resolution will likely change when KMS initializes the display driver. Simply installing the Nouveau driver should be enough to get the system to recognize and initialize it in "Late start" mode (see below). See the [http://nouveau.freedesktop.org/wiki/KernelModeSetting Nouveau KernelModeSetting page] for more details.<br />
<br />
{{Note|Users may prefer the early start method as it does not cause the annoying resolution change part way through the boot process.}}<br />
<br />
==== Late start ====<br />
<br />
This method will start the KMS after the other kernel modules are loaded. You will see the text "Loading modules" and the size of the text may change, possibly with an undesirable flicker.<br />
<br />
==== Early start ====<br />
<br />
This method will start the KMS as early as possible in the boot process, when the [[initramfs]] is loaded. <br />
<br />
To do this, add {{ic|nouveau}} to the {{ic|MODULES}} array in {{ic|/etc/mkinitcpio.conf}}: <br />
<br />
MODULES="... nouveau ..."<br />
<br />
If you are using a custom EDID file, you should embed it into initramfs as well:<br />
<br />
{{hc|/etc/mkinitcpio.conf|<br />
2=FILES="/lib/firmware/edid/your_edid.bin"}}<br />
<br />
Re-generate the initial ramdisk image:<br />
<br />
# mkinitcpio -p <kernel preset; e.g. ''linux''><br />
<br />
If you're experiencing troubles with Nouveau leading to rebuild nouveau-drm several times for testing purposes, do not add {{ic|nouveau}} to the initramfs. It is too easy to forget to rebuild the initramfs and it will just make any testing harder. Just use "Late start" until you are confident the system is stable. There might be additional problems with initramfs if you need a custom firmware (generally not advised).<br />
<br />
== Tips and tricks ==<br />
<br />
=== Keep NVIDIA driver installed ===<br />
<br />
If you want to keep the proprietary NVIDIA driver installed, but want to use the Nouveau driver, comment out nouveau blacklisting in {{ic|/etc/modprobe.d/nouveau_blacklist.conf}} modifying it as follows:<br />
<br />
#blacklist nouveau<br />
<br />
And tell Xorg to load nouveau instead of nvidia by creating the file {{ic|/etc/X11/xorg.conf.d/20-nouveau.conf}} with the following content:<br />
<br />
Section "Device"<br />
Identifier "Nvidia card"<br />
Driver "nouveau"<br />
EndSection<br />
<br />
{{Tip|You can use [[NVIDIA#Switching_between_NVIDIA_and_nouveau_drivers|these scripts]] if you are switching between open and closed drivers often.}}<br />
<br />
If you already used the NVIDIA driver, and want to test Nouveau without reboot, make sure the 'nvidia' module is no longer loaded:<br />
<br />
# rmmod nvidia<br />
<br />
Then load the 'nouveau' module: <br />
<br />
# modprobe nouveau<br />
<br />
And check that it loaded fine by looking at kernel messages: <br />
<br />
$ dmesg<br />
<br />
=== Installing the latest development packages ===<br />
<br />
You may install the latest -git packages, through AUR:<br />
<br />
* You can use {{AUR|mesa-git}} which will allow the installation of the latest Mesa (including the latest DRI driver).<br />
* You can use {{AUR|xf86-video-nouveau-git}} which will allow the installation of the latest DDX driver.<br />
* You can also try installing a newer kernel version, through packages like {{AUR|linux-mainline}} in which the Nouveau DRM code would allow better performance.<br />
* To get the latest Nouveau improvements, you should use the {{AUR|linux-git}} package from the AUR, edit the PKGBUILD and use Nouveau's own kernel repository, which is currently located at git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau.<br />
<br />
Upsteam driver sources can be found at the [http://nouveau.freedesktop.org/wiki/Source Nouveau Source page].<br />
<br />
=== Tear-free compositing ===<br />
<br />
Edit your {{ic|/etc/X11/xorg.conf.d/20-nouveau.conf}}, and add the following to the {{ic|Device}} section:<br />
<br />
Section "Device"<br />
Identifier "nvidia card"<br />
Driver "nouveau"<br />
Option "GLXVBlank" "true"<br />
EndSection<br />
<br />
=== Dual Head ===<br />
<br />
Nouveau supports the xrandr extension for modesetting and multiple monitors. See the [[RandR12]] page for tutorials.<br />
<br />
Here is a full sample {{ic|/etc/X11/xorg.conf.d/20-nouveau.conf}} above for running 2 monitors in dual head mode. You may prefer to use a graphical tool to configure monitors like GNOME Control Center's Display panel ({{ic|gnome-control-center display}}).<br />
<br />
{{bc|<br />
# the right one<br />
Section "Monitor"<br />
Identifier "NEC"<br />
Option "PreferredMode" "1280x1024_60.00"<br />
EndSection<br />
<br />
# the left one<br />
Section "Monitor"<br />
Identifier "FUS"<br />
Option "PreferredMode" "1280x1024_60.00"<br />
Option "LeftOf" "NEC"<br />
EndSection<br />
<br />
Section "Device"<br />
Identifier "nvidia card"<br />
Driver "nouveau"<br />
Option "Monitor-DVI-I-1" "NEC"<br />
Option "Monitor-DVI-I-2" "FUS"<br />
EndSection<br />
<br />
Section "Screen"<br />
Identifier "screen1"<br />
Monitor "NEC"<br />
DefaultDepth 24<br />
SubSection "Display"<br />
Depth 24<br />
Virtual 2560 2048<br />
EndSubSection<br />
Device "nvidia card"<br />
EndSection<br />
<br />
Section "ServerLayout"<br />
Identifier "layout1"<br />
Screen "screen1"<br />
EndSection}}<br />
<br />
=== Setting console resolution ===<br />
<br />
Use the {{Pkg|fbset}} tool to adjust console resolution.<br />
<br />
You can also pass the resolution to nouveau with the video= kernel line option (see [[KMS]]).<br />
<br />
=== Power Management ===<br />
<br />
GPU Scaling is in various stages of readiness depending on the GPU. See the [http://nouveau.freedesktop.org/wiki/PowerManagement Nouveau PowerManagement page] for more details.<br />
<br />
=== Enable MSI (Message Signaled Interrupts) ===<br />
<br />
This may provide a slight performance advantage. It is only supported on NV50+ and is disabled by default.<br />
<br />
{{Warning|This may cause instability with some motherboard / GPU combinations.}}<br />
<br />
Place the following in {{ic|/etc/modprobe.d/nouveau.conf}}: <br />
<br />
options nouveau msi=1<br />
<br />
If using [[#Early_start|early start]], add the line {{ic|1= FILES="/etc/modprobe.d/nouveau.conf"}} to {{ic|/etc/mkinitcpio.conf}}, then re-generate kernel image: <br />
<br />
# mkinitcpio -p <kernel preset; e.g. ''linux''><br />
<br />
Reboot the system for the changes to take effect.<br />
<br />
== Troubleshooting ==<br />
Add the following to your kernel command line (if using grub hit {{keypress|e}} at the boot menu to edit) to turn on video debugging:<br />
drm.debug=14 log_buf_len=16M<br />
<br />
Create verbose Xorg log:<br />
startx -- -logverbose 9 -verbose 9<br />
<br />
View loaded video module parameters and values:<br />
modinfo -p video</div>Jameh0