Skip to content

Commit

Permalink
profiles/graphic_drivers: Make a determination of PRIME profile usage…
Browse files Browse the repository at this point in the history
… based on the device name
  • Loading branch information
ventureoo committed Jul 31, 2024
1 parent 4143cae commit 9519ca8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ device_name_pattern = '(AD)\w+'
[nvidia-dkms]
desc = 'Closed source NVIDIA drivers for Linux (Latest)'
nonfree = true
class_ids = "0300 0380"
class_ids = "0300 0302 0380"
vendor_ids = "10de"
priority = 8
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'
Expand Down Expand Up @@ -61,11 +61,12 @@ post_remove = """
rm -f /etc/profile.d/nvidia-vaapi.sh
mkinitcpio -P
"""
device_ids = '*'
device_name_pattern = "([A-Z]+[0-9]+[^M]*)[[:blank:]].*"

[nvidia-dkms.prime]
desc = 'Closed source NVIDIA drivers for Linux (Latest)'
class_ids = "0302"
class_ids = "0300 0302 0308"
device_name_pattern = "([A-Z]+[0-9]+[A-Z]*M)[[:blank:]].*"
priority = 10
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 nvidia-prime switcheroo-control'
post_install = """
Expand All @@ -87,7 +88,6 @@ post_remove = """
rm -f /etc/profile.d/nvidia-rt3d-workaround.sh
mkinitcpio -P
"""
device_ids = '*'

[nvidia-dkms-470xx]
desc = 'Closed source NVIDIA drivers for Linux (470xx branch, only for Kepler GPUs)'
Expand Down

0 comments on commit 9519ca8

Please sign in to comment.