disable_nvidia_nouveau

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
disable_nvidia_nouveau [01.12.2016 10:18] Pascal Suterdisable_nvidia_nouveau [01.12.2016 10:28] Pascal Suter
Line 2: Line 2:
 <del>sometimes</del> you might want to use the most current nvidia binary driver rather than the nouveau driver package.. or you want no driver at all for whatever reason, so you need to disable the pre-installed nouveau driver..  <del>sometimes</del> you might want to use the most current nvidia binary driver rather than the nouveau driver package.. or you want no driver at all for whatever reason, so you need to disable the pre-installed nouveau driver.. 
  
-**note** all commands below should be executed with root privileges, either prepend ''sudo'' or become root first by running 'sudo su -''+**note** all commands below should be executed with root privileges, either prepend ''sudo'' or become root first by running ''sudo su -''
  
 edit /etc/modprobe.d/blacklist-framebuffer.conf edit /etc/modprobe.d/blacklist-framebuffer.conf
Line 41: Line 41:
 apt-get -y install nvidia-$(pyvidia) apt-get -y install nvidia-$(pyvidia)
 </code> </code>
 +
 +===== what if nouveau is disabled, nvidia is installed but xorg logs "no device found"? =====
 +if you have a system that contains both nvidia and non-nvidia graphics adapters (for example an onboard intel GPU), you might need to tell xorg which PCI device to use in combination with the nvidia driver. to do that, run 
 +  nvidia-smi
 +on the target system. it will display a Bus-Id for your card that looks similar to this: 
 +  0000:01:00.0
 +you will need this id for your xorg.conf file. However, the values displayed through nvidia-smi are **hex** values, for xorg.conf you need **decimal** numbers. if you don't know how to convert from hex to dec you can just google for "0x31 = ? decimal" and it will show you the decimal conversion as a suggested result :) we are only interested in the 01:00.0 section, you can ignore the 0000: at the begining. 
 +now edit your ''/etc/X11/xorg.conf'' file and find the ''Device'' Section. in this section add a ''BusID'' parameter so that the entire section looks something like this: 
 +<code>
 +Section "Device"
 +    Identifier     "Device0"
 +    Driver         "nvidia"
 +    BusID          "PCI:1:0:0"
 +EndSection
 +</code>
 +there might be more stuff in there, that's fine, just add the BusID line and keep the rest as is. what's important is, that you add the BusID in the Device section where the Driver is set to "nvidia" :)
 +
 +now restart your xorg and it should find your card at the given PCI id
 +
  • disable_nvidia_nouveau.txt
  • Last modified: 30.09.2017 07:11
  • by Pascal Suter