Linux disable nouveau kernel driver is currently

Отключение модуля nouveau

Бывает появляется необходимость отключить модуль nouveau , например если необходимо использовать универсальный модуль vesafb или перед установкой проприетарного видео-драйвера NVIDIA.

«nouveau ([nuvo]) — проект по созданию свободных драйверов видеокарт компании nVIDIA с поддержкой ускорения вывода трёхмерной графики. Изначально основан на распространяемом по свободной лицензии, но нечитаемом драйвере «nv» 2D-графики от nVIDIA.»

Если установщик nvidia-installer обнаружит активный драйвер Nouveau, он предложит создать файл настроек modprobe для отключения Nouveau. После чего потребуется перезагрузить компьютер и снова запустить nvidia-installer . Но мы пойдём инным путём и создадим такой файл настроек modprobe вручную.

Можно отредактировать уже имеющийся файл /etc/modprobe.d/blacklist.conf но тогда при обновление системы файл может быть обновлён и изменения будут потеряны.

Поэтому вместо редактирования уже имеющегося файла создадим новый файл, например /etc/modprobe.d/disable-nouveau.conf и впишем в него две строки.

Вне зависимости от того, создаете ли вы новый файл или редактируете имеющийся, в него должны быть добавлены следующие строки:

Первая строка запрещает модулю Nouveau уровня ядра автоматически загружаться при загрузке операционной системы. Она не предотвратит загрузку модуля по требованию, как и загрузку модуля сервером Х-интерфейса. Вторая строка запретит драйверу Nouveau осуществлять операции смены видеорежима через ядро.

Просто копируйте команды ниже, вставьте их в терминале (для тех кто вдруг ещё не знает, это тот который открывается после одновременного нажатия CTRL+ALT+T) и нажмите ENTER, а когда попросит ввести пароль сделайте это.

Если эта статья помогла вам, пожалуйста, оставьте комментарий

Спасибо за прочтение!

Если этот пост помог вам, и вы хотели бы показать свою поддержку, подумайте о том, чтобы заправить будущие посты, купив мне чашку кофе!

Источник

Wpilot

суббота, 13 июля 2013 г.

Как отключить драйвер Nouveau в Linux

При попытке установить драйвера для видеокарты Nvidia многие сталкивались вот с такой ошибкой:

ERROR: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding. Please consult the NVIDIA driver README and your Linux distribution’s documentation for details on how to correctly disable the Nouveau kernel driver. WARNING: The modprobe configuration file to disable Nouveau, /etc/modprobe.d/nvidia-installer-disable-nouveau.conf, is already present. Please be sure you have rebooted your system since that file was written. If you have rebooted, then Nouveau may be enabled for other reasons, such as being included in the system initial ramdisk or in your X configuration file. Please consult the NVIDIA driver README and your Linux distribution’s documentation for details on how to correctly disable the Nouveau kernel driver. ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Читайте также:  Windows 10 не определять переднюю панель

Эта ошибка говорит о том что в настоящее время используется драйвер Nouveau и его нужно отключить для установки драйверов Nvidia.
Чтобы не возникало такой проблемы нужно отключить драйвер на начальном этапе загрузки системы. Для этого если система грузится как здесь Ubuntu 9.10 с флешки добавляем в menu.lst nouveau.modeset=0 после этого наш menu.lst будет выглядеть вот так:

title Start Ubuntu 9.10 from USB DISK
root (cd)
kernel /boot/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper noprompt cdrom-detect/try-usb=true persistent nouveau.modeset=0
initrd /boot/initrd.lz
boot

Следущий шаг удаляем все драйвера Nouveau пишем в терминале:

sudo apt-get purge xserver-xorg-video-nouveau

Источник

How do I disable the «Nouveau Kernel Driver»?

I’m trying to install proprietary nvidia graphics driver I downloaded from nvidia website. It will not install because it says that the «Nouveau kernel driver» needs to be disabled first.

I opened synaptic and uninstalled everything that had nvidia, nouveau, or jockey in its name. It still won’t work.

What exactly do I need to do to disable the «Nouveau kernel driver»?

9 Answers 9

All links above are correct, however you must run sudo update-initramfs -u so the initramfs can be purged of nouveau

Just a quick question: Why are you downloading the drivers from Nvidia directly? The packages available through jockey (the Additional Drivers application) should be fine for most people and if you don’t fit into «most people», using the X-SWAT PPA should give you the latest version of the nvidia driver.

Anyway, what you want is simple. Firstly you have to get out of X before you can install. You can do that by switching to a virtual terminal (tty) by pressing ctrl + alt + F1 logging on and then running sudo stop lightdm . Now run the installer. If it’s still moaning about nouveau continue:

Run sudoedit /etc/modprobe.d/nvidia-graphics-drivers.conf and fill it with this:

The driver will create that file when it’s installed, but you just want to speed things along. You’ll need to reboot and kill X again now.

Then run the installer and all should be fine.

Add string nomodeset to your /etc/default/grub file at line GRUB_CMDLINE_LINUX_DEFAULT=line , or your nvidia driver won’t work.

After the modifications, run:

Pass a kernel argument ( nouveau.blacklist=1 ) at boot to blacklist the driver by editing your /etc/default/grub file:

I was stuck with this issue for a long time. After installing a fresh copy of Ubuntu 16.04, I installed cuda 8.0 using the deb(local):

Nvidia driver is working well on my computer now. Prior to that, I was trying to install Nvidia driver using the *.run file without any luck. Give it a shot it will save your valuable time.

Источник

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.
Читайте также:  Отправка почты консоль linux

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%.

Читайте также:  Как подключить windows диски mac os

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).

Источник

Lubuntu.ru

Русскоязычное сообщество Lubuntu Linux

Lubuntu 10.10 Как отключить nouveau

Модератор: Vadim

Lubuntu 10.10 Как отключить nouveau

Сообщение WhiteWolf » 15 апр 2011, 21:25

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение Lubrox » 17 апр 2011, 18:01

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение WhiteWolf » 18 апр 2011, 18:38

Хм. у меня вот что выводит

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение Lubrox » 18 апр 2011, 20:41

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение WhiteWolf » 19 апр 2011, 14:01

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение Lubrox » 19 апр 2011, 19:16

Re: Lubuntu 10.10 Как отключить nouveau

Сообщение Lubrox » 02 май 2011, 15:42

(kill и killall не помогут в борьбе с ним )

Источник

Оцените статью