Skip to content

Commit

Permalink
New configuration options, egl vendor disable, and minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro00dk committed May 22, 2024
1 parent d67c728 commit 7b1e889
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 182 deletions.
5 changes: 2 additions & 3 deletions nvx-modprobe.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Nouveau is not only blacklisted, it is also fully disabled when manually loaded
# Nouveau can cause PCI rescans to freeze the system
# nouveau is fully disabled when manually loaded
# nouveau may cause PCI rescan to freeze the system
install nouveau /usr/bin/echo "NVX: nouveau disabled" >>/var/log/nvx.log && /usr/bin/true

# Prevent nouveau and nvidia modules from being automatically loaded
blacklist nouveau
blacklist nvidia
blacklist nvidia-drm
Expand Down
16 changes: 16 additions & 0 deletions nvx-options.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# kernel modules to load and unload
# extra options can be passed to modprobe
kernel_modules=nouveau, nvidia, nvidia_drm modeset=1, nvidia_uvm, nvidia_modeset

# device classes filter, perfect match
device_classes=display

# device vendors filter, partial match
device_vendors=nvidia

# nvidia's egl vendor path, if provided, the file will be edited to disable the vendor on boot
# this prevents some applications e.g. gnome-shell from grabbing the gpu and preventing turning it off
egl_vendor_path=/usr/share/glvnd/egl_vendor.d/10_nvidia.json

# kill running processes using the gpu before unloading the driver
kill_on_off=true
5 changes: 0 additions & 5 deletions nvx-udev.rules

This file was deleted.

Loading

0 comments on commit 7b1e889

Please sign in to comment.