Nouveau (Italiano)

From ArchWiki
Revision as of 10:50, 2 June 2010 by 4javier (Talk | contribs) (Created page with 'Category: Graphics (English) Category: X Server (English) Category: HOWTOs (English) [http://nouveau.freedesktop.org/wiki/ Nouveau] is an open source graphic driver f…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Nouveau is an open source graphic driver for NVIDIA cards. Do not forget to check out the FAQ if you have any questions, as there is a lot of valuable information there.

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Nouveau (Italiano)#)
Note: Questo articolo è in fase di traduzione. Seguite per ora le istruzioni della versione inglese.

Installation

Before proceeding, have a look at the FeatureMatrix to see what features are supported for a given architecture, and the list of codenames to determine the card's category.

You could also consult wikipedia for a even more detailed list.

Install the following packages:

# pacman -S nouveau-drm xf86-video-nouveau

As of 2010-02-25, nouveau automatically generates the firmware for nv50. Thus nouveau-firmware is no longer needed for any cards with nouveau-drm 0.0.15_20100313-1.

Loading

If you kept the proprietary nvidia driver installed, nouveau is probably not going to work. Either uninstall nvidia or blacklist it by adding the following line to /etc/modprobe.d/modprobe.conf

blacklist nvidia

Then nouveau should load fine automatically on next reboot. To test it now, first make sure nvidia is no longer loaded

rmmod nvidia

The load nouveau

modprobe nouveau

And check that it loaded fine by looking at kernel messages

dmesg

Configuration

You can use the following xorg.conf, which allows you to easily switch back to other drivers:

Section "Device"
       Identifier "nvidia"
       Driver "nouveau"
       #Driver "nv"
       #Driver "nvidia"
EndSection

KMS

Kernel Mode-Setting (KMS) is supported by the Nouveau driver and upstream actually recommends testing it as it is the future implementation for all graphics chipsets. See the KernelModeSetting page for more information.

As of 2009-12-11, KMS is the default with the kernel module (with nouveau-drm 0.0.15_20091220-1 and higher). You can still disable it with nouveau.modeset=0 , however non KMS support was removed from xorg driver on 2010-01-10 (xf86-video-nouveau 0.0.15_git20100117-1 and higher).

Late start

With this choice, KMS will be enabled when the boot process says, "Loading modules." This may cause an undesirable screen flicker as the mode changes.

Remove all "vga=" and "video=" options from your kernel commandline in Template:Filename. Using other framebuffer drivers (such as uvesafb) will conflict with KMS.

Early start

Warning: If you have troubles with nouveau, and are led to rebuild nouveau-drm several times for testing purpose, do not add 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. There might be additional problems with initramfs if you need a firmware for the nv50 family

This method will start KMS as early as possible in the boot process, when the initramfs is loaded. Here is how to do this with the official packages:

1) Add "nouveau" to the MODULES array in Template:Filename:

MODULES="nouveau ..."

2) Add "/etc/modprobe.d/modprobe.conf" to the FILES section in Template:Filename:

FILES="/etc/modprobe.d/modprobe.conf"

3) Re-generate your initcpio:

# mkinitcpio -p <your kernel preset (kernel26, etc.)>

You can also look at the Intel instructions for an early start: Intel Graphics:KMS (Kernel Mode Setting)

Alternative installation

If the official Arch Linux packages do not work, you can try a more current video driver from the AUR: Template:Package AUR. A more up-to-date DRM module can be built by using the Template:Package Official PKGBUILD from ABS. Simply update Template:Codeline to the current date, and modify the Template:Codeline array to read:

source=(# ftp://ftp.archlinux.org/other/$pkgname/master-${_snapdate}.tar.gz
        http://people.freedesktop.org/~pq/nouveau-drm/master.tar.gz
        # get the Makefile from http://cgit.freedesktop.org/nouveau/linux-2.6/plain/nouveau/Makefile?h=master-compat
        Makefile)

You can use Template:Package AUR to compile the nouveau project's kernel tree, which already includes the necessary modules. This is the method recommended by upstream.

3D

3D is unsupported.

That means:

  • Do not ask for instructions to try it.
  • What ever you do, do not install the 3D driver system-wide.
  • If you want to try 3D acceleration or you have problems with it, you are on your own, unless you are looking to contribute patches.

References: Nouveau frontpage and Nouveau FAQ

DualHead

Nouveau supports the xrandr extension for modesetting and multiple monitors. See the RandR12 page for tutorials.

Here is a full sample Template:Filename above for running 2 monitors in dual head mode. You may prefer to use a graphical tool to configure monitors like gnome-display-properties (System -> Preferences -> Display).

# the right one
Section "Monitor"
          Identifier   "NEC"
          Option "PreferredMode" "1280x1024_60.00"
EndSection

# the left one
Section "Monitor"
          Identifier   "FUS"
          Option "PreferredMode" "1280x1024_60.00"
          Option "LeftOf" "NEC"
EndSection

Section "Device"
    Identifier "nvidia card"
    Driver "nouveau"
    Option  "Monitor-DVI-I-0" "NEC"
    Option  "Monitor-DVI-I-1" "FUS"
    #Option "AccelMethod" "XAA"
EndSection

Section "Screen"
    Identifier "screen1"
    DefaultDepth 24
      SubSection "Display"
       Depth      24
       Virtual 2560 1024
      EndSubSection
    Device "nvidia card"
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen "screen1"
    # will be replaced by gallium 3D
    Option "AIGLX" "false"
EndSection

Troubleshooting

Console virtual resolution does not correspond to real one

Use the Template:Package Official tool to adjust console resolution.