:PROPERTIES:
:ID: 91669daf-518f-4c8d-a553-ce6988d0db03
:END:
#+title: Nouveau driver (Gentoo)
#+filetags: personal
1. Installer nvidia-firmware
2. Changer VIDEO_CARDS="nouveau"
3. Comme nvidia continue à être chargée, on regarde /etc/modprobe.d. Pour être sur, on supprime nvidia.conf[fn:1] et on blacklist nvidia
#+begin_src sh
echo "blacklist nvidia" > /etc/modprobe.d/nouveau.conf
#+end_src
Ok pour wayland mais xorg continue à détecter nvidia...
* Footnotes
[fn:1]
#+begin_src
# NVIDIA drivers options
# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
# nvidia-drivers and nouveau cannot be used at same time.
# Comment out the following line if you wish to allow nouveau.
blacklist nouveau
# Kernel Mode Setting (notably needed for EGLStream/Wayland)
# Enabling may possibly cause issues with SLI and Reverse PRIME.
#options nvidia-drm modeset=1
# Suspend options. Allocations=0 recommended over =1 unless enable nvidia's
# systemd sleep services (nvidia-hibernate, nvidia-resume, nvidia-suspend),
# but even then may lead to issues on some setups (keep 0 if in doubt).
options nvidia \
NVreg_PreserveVideoMemoryAllocations=0 \
NVreg_TemporaryFilePath=/var/tmp
# !!! Security Warning !!!
# Do not change the DeviceFile options unless you know what you are doing.
# Only add trusted users to the 'video' group, these users may be able to
# crash, compromise, or irreparably damage the machine.
options nvidia \
NVreg_DeviceFileGID=27 \
NVreg_DeviceFileMode=432 \
NVreg_DeviceFileUID=0 \
NVreg_ModifyDeviceFiles=1
# Should be no need to touch anything below.
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195
remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
#+end_src