nixGL icon indicating copy to clipboard operation
nixGL copied to clipboard

Add some driver version-selection logic

Open ulucs opened this issue 1 year ago • 3 comments

Fixes #170, which stemmed from Nvidia not hosting every single minor driver version.

This PR adds a somewhat smart driver version selection logic (first one released after the device's driver) to keep the nix and device drivers as close as possible while trying to download an existing one.

Currently the list is hard-coded, collected with the following script: copy($$('a').map(e=>e.innerText).filter(e=>e.match(/[0-9]/)).map(e=>e.substring(0, e.length-1)).map(s=>`"${s}"`).join("\n")) from https://download.nvidia.com/XFree86/Linux-x86_64

If/when #131 gets merged, the driver selection logic can be modified to select from existing drivers

ulucs avatar Oct 15 '24 09:10 ulucs

@ulucs I ended up finding another source for drivers, not sure if that solves the instigating problem, see https://github.com/nix-community/nixGL/blob/3ee94e1aa20e729ed7ea856f130ad142a02cdf52/known_drivers/mk-nvidia-drivers.py#L24

cfhammill avatar Dec 19 '24 14:12 cfhammill

I think many people are struggling with their NVIDIA driver minor version not being found on the download site, this seems to fix it for me. Could this be merged into main, as it seems to be a good fix?

Aietes avatar Mar 10 '25 12:03 Aietes

Well, even the links on NVIDIA's developer site seems to be broken now, just tested with the latest driver. So maybe this still no quite fixes it, unless NVIDIA is willing and able to provide working links for their drivers with some stability and consistency.

Aietes avatar Mar 10 '25 12:03 Aietes