-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c06e60
commit 2729c20
Showing
2 changed files
with
109 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[nvidia-dkms] | ||
ai_sdk = false | ||
class_ids = "0300 0302 0380" | ||
desc = "Closed source NVIDIA drivers for Linux (Latest)" | ||
device_ids = "*" | ||
device_name_pattern = '((GM|GP)+[0-9]+[^M]*\s.*)' | ||
packages = "nvidia-utils egl-wayland nvidia-settings opencl-nvidia lib32-opencl-nvidia lib32-nvidia-utils libva-nvidia-driver vulkan-icd-loader lib32-vulkan-icd-loader" | ||
post_install = ''' | ||
cat <<EOF >/etc/mkinitcpio.conf.d/10-chwd.conf | ||
# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. | ||
MODULES+=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) | ||
EOF | ||
mkinitcpio -P | ||
# Add libva-nvidia-driver to profile | ||
echo "export LIBVA_DRIVER_NAME=nvidia" > /etc/profile.d/nvidia-vaapi.sh | ||
''' | ||
post_remove = """ | ||
rm -f /etc/mkinitcpio.conf.d/10-chwd.conf | ||
rm -f /etc/profile.d/nvidia-vaapi.sh | ||
mkinitcpio -P | ||
""" | ||
priority = 12 | ||
vendor_ids = "10de" |