From e3ad9e0ecbbb6f3d1980e3bea992d3e1e6596d8f Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Sat, 16 Mar 2024 11:05:48 +0000 Subject: [PATCH] xf86-video-nvidia: fix make_nvidia_udev.py since 545.29.02 --- .../driver/xf86-video-nvidia/scripts/make_nvidia_udev.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/x11/driver/xf86-video-nvidia/scripts/make_nvidia_udev.py b/packages/x11/driver/xf86-video-nvidia/scripts/make_nvidia_udev.py index bdd48d6349..bf4e4fe8f7 100755 --- a/packages/x11/driver/xf86-video-nvidia/scripts/make_nvidia_udev.py +++ b/packages/x11/driver/xf86-video-nvidia/scripts/make_nvidia_udev.py @@ -34,13 +34,10 @@ page = requests.get(url, headers=headers) tree = html.fromstring(page.content) # These are the tables we want to use (gpu's supported by the current driver) -# NVIDIA GeForce GPUs = 1 -# NVIDIA Quadro GPUs = 2 -# NVIDIA NVS GPUs = 3 -# NVIDIA Tesla GPUs = 4 +# NVIDIA GPU product = 2 ids = [] -for table in range(1, 5): +for table in range(1, 2): ids = ids + tree.xpath('//html/body/div[@class="appendix"]/div[@class="informaltable"][' + str(table) + ']/table/tbody/tr[starts-with(@id, "devid")]/td[2]//text()') # If three IDs are listed, the first is the PCI Device ID, the second is the PCI Subsystem Vendor ID, and the third is the PCI Subsystem Device ID.