Nouveau or nvidia drivers linux

NVIDIA

nouveau (Open Source Driver)

This is a reverse engineered driver largely developed by the community, with some documentation provided by Nvidia. It tends to perform well on older hardware, and is required to use a large portion of the available Wayland compositors.

At the time of writing, graphics cards starting with second generation Maxwell (GTX 9xx) are unable to perform at their full potential with nouveau . This is because the linux-firmware collection is missing signed firmware blobs needed to reclock these cards past their boot frequencies.

To use nouveau with Wayland, you only need the mesa-dri package, which provides the accelerated OpenGL driver. On X11, you also need an appropriate Xorg driver. You can either install xf86-video-nouveau or use the universal modesetting driver bundled with Xorg (this is the only option on Tegra based ARM boards). The former can make use of GPU-specific 2D acceleration paths, which is primarily useful on older cards with specialized fixed function hardware (the modesetting driver will accelerate 2D using OpenGL via GLAMOR). When in doubt, it’s a good idea to try xf86-video-nouveau first.

Note: xf86-video-nouveau is usually installed by default if you use the xorg metapackage. If you use xorg-minimal , you will need to install it manually, either directly or through xorg-video-drivers .

nvidia (Proprietary Driver)

The proprietary drivers are available in the nonfree repository.

Check if your graphics card belongs to the legacy branch. If it does not, install the nvidia package. Otherwise you should install the appropriate legacy driver, nvidia390 . The older legacy driver, nvidia340 , is no longer available, and users are encouraged to switch to nouveau.

Brand Type Model Driver Package
NVIDIA Proprietary 600+ nvidia
NVIDIA Proprietary 400/500 Series nvidia390

The proprietary driver integrates in the kernel through DKMS.

This driver offers better performance and power handling, and is recommended where performance is needed.

32-bit program support (glibc only)

In order to run 32-bit programs with driver support, you need to install additional packages.

If using the nouveau driver, install the mesa-dri-32bit package.

If using the nvidia driver, install the nvidia -libs-32bit package. represents the legacy driver version ( 390 ) or can be left empty for the main driver.

Reverting from nvidia to nouveau

Uninstalling nvidia

In order to revert to the nouveau driver, install the nouveau driver (if it was not installed already), then remove the nvidia or nvidia390 package, as appropriate.

If you were using the obsolete nvidia340 driver, you might need to install the libglvnd package after removing the nvidia340 package.

Keeping both drivers

It is possible to use the nouveau driver while still having the nvidia driver installed. To do so, remove the blacklisting of nouveau in /etc/modprobe.d/nouveau_blacklist.conf , /usr/lib/modprobe.d/nvidia.conf , or /usr/lib/modprobe.d/nvidia-dkms.conf by commenting it out:

For Xorg, specify that it should load the nouveau driver rather than the nvidia driver by creating the file /etc/X11/xorg.conf.d/20-nouveau.conf with the following content:

You may need to reboot your system for these changes to take effect.

Источник

Установка nVidia в linux

Материал из Пингвиньи радостей

Содержание

Статья об установке видеокарт nVidia в linux

Статья даёт описание установки и настройки видеокарт nVidia в Linux. Описание осуществляется на примере операционной системы debian (squeeze). Для получения дополнительной информации по данной теме смотри Установка видеокарт в linux.

Официальный сайт изготовителя видекарт: http://www.nvidia.ru

Обзор режимов работы видеокарт nVidia

Видеокарты nVidia в linux могут работать в текстовом и графическом режимах. Для запуска видеокарты в текстовом режиме (в режиме консоли) не требуется дополнительных действий. Для использования графического режима требуется установка/настройка X-сервера и подключение/указание «графических» драйверов. Могут быть использованы драйвера как включённые в дистрибутив (debian), так и драйвера поставляемые изготовителем видеокарт. В графическом режиме видеокарты nVidia поддерживают как 2D так и 3D ускорение графики.

Поддержка работы видеокарты в графическом режиме осуществляется пакетом Xorg. Подключение установленных драйверов и настройка видеокарты осуществляется в файле конфигурации Xorg — /etc/X11/xorg.conf. Если драйвер видеокарты в файле конфигурации не указан или самого файла нет вовсе, операционная система (например debian squeeze) самостоятельно определит и установит совместимый драйвер.

Для установки графических режимов видеокарт nVidia могут быть использованы

  • драйвера из пакета Xorg — vesa, nv, nouveau
  • драйвер nvidia из дистрибутива поставки debian
  • или драйвер nvidia предоставленный изготовителем

Драйвер vesa

Видеокарты nVidia поддерживают работу в графическом режиме vesa. Описание настройки X-сервера и /etc/X11/xorg.conf в режиме vesa приведено в статье Xorg. Для получения дополнительной информации по данной теме смотри Установка видеокарт в linux.

Драйвер nv

Драйвер nv осуществляет поддержку 2D/3D ускорения.

Для подключения драйвера

Драйвер nouveau

Драйвер nouveau осуществляет полноценную поддержку 2D/3D ускорения. Драйвер требует ядра linux 2.6.32 или выше. В отличие от проприетарного драйвера nvidia nouveau корректно (то есть стандартным образом) поддерживает возможности X-системы Например поддержку через xrandr несколько мониторов.

Для подключения драйвера

  • удаляем (если были установлены) все драйвера nvidia-glx
  • устанавливаем драйвер xorg-nouveau
  • добавляем в файл конфигурации X-сервера/etc/X11/xorg.conf секцию
  • (возможно необязательно?) проверяем модуль и добавляем загрузку драйвера nouveau при старте
  • перезапускаем X-сервер

Драйвер nvidia

Драйвер nvidia осуществляет полноценную поддержку 2D/3D ускорения.

Получить и установить драйвер можно тремя способами:

  • установка закрытых драйверов изготовителя
  • установка готовых (бинарных) OpenSource пакетов с драйверами
  • сборка драйверов под свою машину из исходников

Установка проприетарных драйверов

Для установки драйвера

  • открываем страницу загрузки драйвера
  • выбираем нужную архитектуру и скачиваем установщик
  • получаем права суперпользователя
  • останавливаем X-сервер (например так # killall Xorg или так # /etc/init.d/kdm stop для менеджер дисплея Kdm)
  • смещаемся в каталог с драйвером # cd

и

  • запускаем установщик (напр.): # sh NVIDIA-Linux-. -pkg1.run
  • добавляем в файл конфигурации X-сервера/etc/X11/xorg.conf секцию
    • перезапускаем рабочую станцию
    • проводим тестирование ускорения 3D

    Установка свободных бинарных драйверов

    (незавершенный раздел)
    Дистрибутив Debian распространяет через свои хранилища и бинарные драйвера для видеокарт nVidia. При смене ядра (upgrade системы) 3D драйвера следует перекомпилировать. Проще всего это сделать путем переустановки используемых пакетов.

    Для установки свободных бинарных драйверов

    • получаем права суперпользователя
    • устанавливаем необходимые пакеты
    • перезапускаем рабочую станцию
    • проводим тестирование ускорения 3D

    Компиляция драйверов из исходников

    (незавершенный раздел)
    Компиляция драйверов из исходников включённых в дистрибутив Debian позволяет собрать драйвера для видеокарт nVidia в том случае если бинарные пакеты не заработали.

    Для компиляции драйверов из исходников

    • устанавливаем сборщик модулей как описано в статье Module-assistant
    • компилируем и устанавливаем модуль
    • добавляем в файл конфигурации X-сервера/etc/X11/xorg.conf секцию
    • перезапускаем рабочую станцию
    • проводим тестирование ускорения 3D

    Настройка отдельных видеокарт

    В таблице приведены ссылки на статьи в википедии с описание настройки отдельных видеокарт nVidia

    Источник

    Nouveau

    This article covers the open-source Nouveau driver for NVIDIA graphics cards. For information about the proprietary driver, see NVIDIA.

    Find your card’s code name (a more detailed list is available on Wikipedia), and compare it with the feature matrix for supported features.

    Contents

    Installation

    Install the mesa package, which provides the DRI driver for 3D acceleration.

    • For 32-bit application support, also install the lib32-mesa package from the multilib repostory.
    • For the DDX driver (which provides 2D acceleration in Xorg), install the xf86-video-nouveau package.

    Loading

    The Nouveau kernel module should load automatically on system boot. If it does not happen, then:

    • Make sure you do not have nomodeset or vga= as a kernel parameter, since Nouveau requires kernel mode-setting.
    • Also, check that you do not have Nouveau disabled using any modprobe blacklisting technique within /etc/modprobe.d/ or /usr/lib/modprobe.d/ .
    • If all above still fails to load nouveau check dmesg for an opcode error. Add nouveau.config=NvBios=PRAMIN to your Kernel parameters to prevent module unloading.[1]
    • Check if /etc/X11/xorg.conf exists and is referencing nvidia driver. It is probably a good idea to rename the file.

    Enable early KMS

    Kernel mode setting (KMS) is required by the Nouveau driver. By default, the KMS is done 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. See the Nouveau KernelModeSetting page for more details.

    It is also possible to start the KMS as early as possible in the boot process, when the initramfs is loaded.

    To do this, add nouveau to the MODULES array in /etc/mkinitcpio.conf (module names are separated by spaces):

    If you are using a custom EDID file, you should embed it into initramfs as well:

    Re-generate the initial ramdisk image:

    If you are experiencing troubles with Nouveau leading to rebuild nouveau-drm several times for testing purposes, 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» until you are confident the system is stable. There might be additional problems with initramfs if you need a custom firmware (generally not advised).

    Tips and tricks

    Keep NVIDIA driver installed

    If you want to keep the proprietary NVIDIA driver installed (and are not using OpenGL), but want to use the Nouveau driver, comment out nouveau blacklisting in /etc/modprobe.d/nouveau_blacklist.conf , /usr/lib/modprobe.d/nvidia.conf , or /usr/lib/modprobe.d/nvidia-dkms.conf modifying it as follows:

    And tell Xorg to load nouveau instead of nvidia by creating the file /etc/X11/xorg.conf.d/20-nouveau.conf with the following content:

    If you already used the NVIDIA driver, and want to test Nouveau without reboot, make sure the ‘nvidia’ module is no longer loaded:

    Then load the ‘nouveau’ module:

    And check that it loaded fine by looking at kernel messages:

    Installing the latest development packages

    To get the latest Nouveau improvements

    Dual head

    See Multihead#RandR how to setup multiple monitors by using RandR.

    Setting console resolution

    You can pass the resolution to nouveau with the video= kernel line option (see KMS).

    Power management

    The lack of proper power management in the nouveau driver is one of the most important causes of performance issues, since most cards will remain in their lower power state with lower clocks during their use. Experimental support for GPU reclocking is available for some cards (see the Nouveau PowerManagement page) and since kernel 4.5 can be controlled through a debugfs interface located at /sys/kernel/debug/dri/*/pstate .

    For example, to check the available power states and the current setting for the first card in your system, run:

    It is also possible to manually set/force a certain power state by writing to said interface:

    Fan control

    If it is implemented for your card you can configure fan control via /sys .

    pwm1_enable can be set to 0, 1 or 2 meaning NONE, MANUAL and AUTO fan control. If set to manual fan control, you can set pwm1 manually, for example to 40 for 40%.

    You can also set it by udev rule:

    Optimus

    You have two solutions to use Optimus on a laptop (aka hybrid graphics, when you have two GPUs on your laptop): bumblebee and PRIME

    Vertical Sync

    The factual accuracy of this article or section is disputed.

    Xorg compositors are prone to show issues with Nouveau. Unlike most of them, Picom offers lots of options to tweak for a smoother and tearing free result. A configuration which is expected to deliver a good result would be the following:

    Troubleshooting

    Add drm.debug=14 and log_buf_len=16M to your kernel parameters to turn on video debugging:

    Create verbose Xorg log:

    View loaded video module parameters and values:

    Disable MSI

    If you are still having problems loading the module or starting X server append nouveau.config=NvMSI=0 to your Kernel parameters.

    Phantom output issue

    It is possible for the nouveau driver to detect «phantom» outputs. For example, both VGA-1 and LVDS-1 are shown as connected but only LVDS-1 is present.

    This causes display problems and/or prevent suspending on lid closure.

    Kernel parameters

    The problem can be overcome by disabling the phantom output (VGA-1 in the examples given) with Kernel parameters:

    Where d = disable.

    The nouveau kernel module also has an option to disable TV-out detection [2]:

    Xorg configuration

    The phantom output can be disabled in Xorg by adding the following to /etc/X11/xorg.conf.d/20-nouveau.conf :

    Xrandr

    Xrandr can disable the output:

    This can be added to the xinit configuration.

    Random lockups with kernel error messages

    Specific Nvidia chips with Nouveau may give random system lockups and more commonly throw many kernel messages, seen with dmesg. Try adding the nouveau.noaccel=1 kernel parameter. See Fedora:Common kernel problems#Systems with nVidia adapters using the nouveau driver lock up randomly for more information.

    As an alternative you can also use the QT_XCB_FORCE_SOFTWARE_OPENGL=1 environment variable to disable OpenGL acceleration in Qt applications.

    Flat Panel Table Invalid

    This article or section needs expansion.

    NVIDIA graphics cards with recent chipsets can cause startup issues — this includes X11 being unable to start and lspci freezing indefinitely[3][4][5][6][7].

    This can break live distributions/installation media. This can be detected either by running lspci, or checking the systemd journal for the error:

    The system may start if the Nouveau driver is disabled by passing the following kernel parameters:

    The Nouveau driver can then be loaded using

    The system should then function correctly. If you have another Nvidia graphics card, or just want to be safe, you can disable the offending card using:

    The NVIDIA proprietary driver currently works correctly (version 381).

    Источник

    Читайте также:  Net send для windows
    Оцените статью