xf86-video-nvidia: fix make_nvidia_udev.py since 545.29.02

This commit is contained in:
Rudi Heitbaum 2024-03-16 11:05:48 +00:00
parent d108ae118a
commit e3ad9e0ecb

View File

@ -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.