kernel driver in use nouveau

суббота, 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.

Эта ошибка говорит о том что в настоящее время используется драйвер 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

When installing CUDA in Ubuntu 16.04 by executing cuda_8.0.44_linux.run,

I got the following error message in /var/log/nvidia-installer.log

Then I checked /etc/modprobe.d/nvidia-installer-disable-nouveau.conf and got

Any suggestion to disable Nouveau Kernel Driver?

I found this 2012 discussion but didn’t work for me.

2 Answers 2

According to the NVIDIA developer zone: Create a file

with the following contents:

Regenerate the kernel initramfs:

and finally: reboot

maybe it is too late ,but hope can help for others. the follow tips worked for ubuntu 16.04 and elementary os 0.4.

remove all nvidia packages ,skip this if your system is fresh installed

install some packages for build kernel:

now block and disable nouveau kernel driver:

WARNING This tutorial could break your system, make sure you backup your system before following the steps.

Installing the Offial nvidia drivers will return an error if the Nouveau kernel driver is currently in use. We will explain how to fix the error and install the official drivers.

At this step we will remove all nvidia related packages.

If you get the following error it means that you never had an nvidia package installed and is ok:

Now install some required dependencies:

now block and disable nouveau kernel driver:

And append the follow lines to the blacklist.conf:

Disable the Kernel nouveau by typing the following commands:

Оцените статью
SoftLast
Добавить комментарий