Skip to content

Instantly share code, notes, and snippets.

@sar
Created November 18, 2019 04:59
Show Gist options
  • Save sar/ef0c20d5fad483c8f4f3cc4dd0269329 to your computer and use it in GitHub Desktop.
Save sar/ef0c20d5fad483c8f4f3cc4dd0269329 to your computer and use it in GitHub Desktop.
/usr/lib/modprobe.d/nvidia.conf
blacklist nouveau
# Make a soft dependency for nvidia-uvm as adding the module loading to
# /usr/lib/modules-load.d/nvidia-uvm.conf for systemd consumption, makes the
# configuration file to be added to the initrd but not the module, throwing an
# error on plymouth about not being able to find the module.
# Ref: /usr/lib/dracut/modules.d/00systemd/module-setup.sh
# Even adding the module is not the correct thing, as we don't want it to be
# included in the initrd, so use this configuration file to specify the
# dependency.
softdep nvidia post: nvidia-uvm
# Uncomment the following line to enable kernel modesetting support.
# There is NO graphical framebuffer (like OSS drivers) at the moment; this is
# only for Wayland. For Gnome, you also require an EGLStream build of Mutter.
# Fedora disables Wayland if detecting the Nvidia driver.
#
options nvidia-drm modeset=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment