fix(hardware): Improve Nvidia driver installation (#3302)

Fixes a few issues related to the installation of Nvidia drivers.

1. No longer install the redudant nvidia-open package as it's provided
by the nvidia-open-dkms package.
2. Install vulkan-nouveau when selecting the open-source nouveau driver.
3. Install the libva-nvidia-driver package for hardware accelerated
video decoding.
This commit is contained in:
Lisichka 2025-03-30 03:53:17 -04:00 committed by GitHub
parent 9f7c3bab0f
commit d616de25f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 5 deletions

View File

@ -48,12 +48,13 @@ class GfxPackage(Enum):
IntelMediaDriver = 'intel-media-driver'
LibvaIntelDriver = 'libva-intel-driver'
LibvaMesaDriver = 'libva-mesa-driver'
LibvaNvidiaDriver = 'libva-nvidia-driver'
Mesa = "mesa"
NvidiaDkms = 'nvidia-dkms'
NvidiaOpen = 'nvidia-open'
NvidiaOpenDkms = 'nvidia-open-dkms'
VulkanIntel = 'vulkan-intel'
VulkanRadeon = 'vulkan-radeon'
VulkanNouveau = 'vulkan-nouveau'
Xf86VideoAmdgpu = "xf86-video-amdgpu"
Xf86VideoAti = "xf86-video-ati"
Xf86VideoNouveau = 'xf86-video-nouveau'
@ -104,7 +105,8 @@ class GfxDriver(Enum):
GfxPackage.LibvaIntelDriver,
GfxPackage.IntelMediaDriver,
GfxPackage.VulkanRadeon,
GfxPackage.VulkanIntel
GfxPackage.VulkanIntel,
GfxPackage.VulkanNouveau
]
case GfxDriver.AmdOpenSource:
packages += [
@ -123,20 +125,22 @@ class GfxDriver(Enum):
]
case GfxDriver.NvidiaOpenKernel:
packages += [
GfxPackage.NvidiaOpen,
GfxPackage.NvidiaOpenDkms,
GfxPackage.Dkms,
GfxPackage.NvidiaOpenDkms
GfxPackage.LibvaNvidiaDriver
]
case GfxDriver.NvidiaOpenSource:
packages += [
GfxPackage.Mesa,
GfxPackage.Xf86VideoNouveau,
GfxPackage.LibvaMesaDriver
GfxPackage.LibvaMesaDriver,
GfxPackage.VulkanNouveau
]
case GfxDriver.NvidiaProprietary:
packages += [
GfxPackage.NvidiaDkms,
GfxPackage.Dkms,
GfxPackage.LibvaNvidiaDriver
]
case GfxDriver.VMOpenSource:
packages += [