summaryrefslogtreecommitdiff
path: root/InstallNouveau.mdwn
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 18:25:32 -0700
committerJoe Rayhawk <jrayhawk@freedesktop.org>2013-05-13 18:25:32 -0700
commitbef5e8e79f56c7a848456247ab3da046293c8fd6 (patch)
treee566530ea16fb56940365a3116c84f0e82f96271 /InstallNouveau.mdwn
parente422d6c582a7a736613579b7132ee836236a7e35 (diff)
moin2mdwn: convert page InstallNouveau
Diffstat (limited to 'InstallNouveau.mdwn')
-rw-r--r--InstallNouveau.mdwn73
1 files changed, 73 insertions, 0 deletions
diff --git a/InstallNouveau.mdwn b/InstallNouveau.mdwn
new file mode 100644
index 0000000..5726b77
--- /dev/null
+++ b/InstallNouveau.mdwn
@@ -0,0 +1,73 @@
+
+English/[[Español|InstallNouveau-es]]/[[Português|InstalandoNouveau]]
+
+
+## Specific instructions for distribution
+
+* up-to-date : [[Exherbo|ExherboInstall]] [[Gentoo|GentooEbuilds]] [[openSUSE|openSUSEPackages]] [[Arch Linux|http://wiki.archlinux.org/index.php/Nouveau]]
+* needs updating and merging : [[DebianInstall|DebianInstall]] and [[DebianTips|DebianTips]] , [[UbuntuPackages|UbuntuPackages]] and [[UbuntuTips|UbuntuTips]]
+
+## Introduction
+
+If you use one of the distributions listed above, check if the packages there are recent, and you can try them. Nouveau packages and the instructions here currently only provide accelerated 2D rendering using EXA (with RENDER acceleration), Randr 1.2 for dual-head and dynamic monitor configuration, and accelerated Xvideo.
+
+Some distros already package the 3D drivers, too. See [[MesaDrivers|MesaDrivers]] for information on the 3D drivers. 3D requires the Nouveau 2D working first.
+
+If you have problems with packaged versions of Nouveau, seek help from your distribution, not from Nouveau developers.
+
+
+## Install Nouveau
+
+NOTE: If you ever plan to go back to your previous driver, especially if it is the nvidia proprietary driver (the blob), read the Uninstall chapter before actually doing anything.
+
+Now, if you want to try out nouveau, please follow these steps carefully :
+
+1. Install xorg-server version 1.8 or later (appears in Xorg 7.6) - Versions prior to this won't work due to difference in some internal structures. Read the [[Xorg Modular Developer's Guide|http://wiki.x.org/wiki/ModularDevelopersGuide]] for help with building from source.
+1. Install the Nouveau kernel modules by following [[InstallDRM|InstallDRM]] guide.
+1. Download the drm git tree Use `git clone git://anongit.freedesktop.org/git/mesa/drm/` to obtain the current sources. If you already have downloaded the repository update it via `git fetch ; git rebase origin`. You can use this sequence to update all git repositories.
+1. Now compile libdrm via :
+ * [[!format txt """
+./autogen.sh ; ./configure --enable-nouveau-experimental-api --prefix=/usr/; make ; make install
+"""]]The `make install` would by default install to `/usr/local/` which may create problems when compiling xf86-video-nouveau, therefore we added `--prefix=/usr/`. This will overwrite the libdrm installed by your distribution. **Note that libdrm might also be installed in `/lib/` (Ubuntu 10.04) or some place else in your distribution. In that case you have to use `--libdir=/lib` (or where your libdrm is installed) with the configure command.**
+1. Make sure, that neither DRM nor nvidia (binary version) kernel drivers are loaded. Use `lsmod` and `rmmod nvidia` should you still have it loaded.
+1. Now insert the kernel modules. If you installed the modules, `modprobe nouveau` should be enough. If not, do
+ * [[!format txt """
+insmod /path/to/drm.ko
+insmod /path/to/ttm.ko
+insmod /path/to/nouveau.ko
+"""]]Using `insmod drm.ko debug=1` would spam your syslog with some more messages, which could be useful for us.
+1. Now edit your /etc/X11/xorg.conf to use the nouveau driver: Change in `Section "Device"` the Driver line to `Driver "nouveau"`
+ * The minimal xorg.conf file, which you should try, if you encounter any problems, is: [[!format txt """
+Section "Device"
+Identifier "n"
+Driver "nouveau"
+EndSection
+"""]]
+1. leave directory drm and get the Xorg nouveau driver: `git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/ `
+1. Switch into xf86-video-nouveau and compile: `./autogen.sh ; make` and copy the nouveau_drv.so to the drivers directory of Xorg: `cp src/.libs/nouveau_drv.so /usr/lib/xorg/modules/drivers`
+1. Now start Xorg and run for cover. If you used the the nvidia blob before, the X server may possibly not start because NVIDIA overwrites the X server's libglx.so with a proprietary libglx.so. If that happens, install the X server package from your distribution again to restore the original libglx.so and make a backup copy of it in case you install the blob again.
+
+## Troubleshooting
+
+See [[TroubleShooting|TroubleShooting]].
+
+
+## Uninstall Nouveau / Reinstall previous driver
+
+The nouveau installation process involves updating the drm kernel module, adding a new kernel module (nouveau.ko) and a new X module (nouveau_drv.so).
+
+The drm kernel module is needed to get new features still not merged in upstream kernels and it shouldn't be a problem when using the previous drivers you had installed, as neither nv nor nvidia use it. Do disable Nouveau KMS, if you used it.
+
+The new nouveau.ko and nouveau_drv.so files don't overwrite any previous existing files, so you just need to rmmod the nouveau driver and restore your previous xorg.conf.
+
+Libdrm installation will overwrite existing files. Libdrm Makefile should offer an uninstall command: `make uninstall`, after which you can reinstall the distribution packaged libdrm.
+
+
+### If you were previously using the free nv driver
+
+Change your xorg.conf to use 'nv' as driver again and restart X.
+
+
+### If you were previously using the binary driver by nvidia
+
+To get the binary driver back you edit xorg.conf and either copy NVIDIA's proprietary libglx.so back or run the installer again.