Bug 266247 - x11/nvidia-xconfig: add compatible version with legacy driver
Summary: x11/nvidia-xconfig: add compatible version with legacy driver
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL: https://www.freshports.org/x11/nvidia...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 04:00 UTC by Theron Tarigo
Modified: 2023-11-28 01:19 UTC (History)
3 users (show)

See Also:
grahamperrin: maintainer-feedback? (x11)


Attachments
fix (2.87 KB, patch)
2022-09-06 04:00 UTC, Theron Tarigo
theron.tarigo: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Theron Tarigo 2022-09-06 04:00:16 UTC
Created attachment 236387 [details]
fix

With nvidia-driver-390 (or older) or nvidia-secondary-driver-390, `nvidia-xconfig --enable-all-gpus` fails with:
> WARNING: error retrieving symbol nvCfgIsPrimaryDevice from libnvidia-cfg.so.1:
>         Undefined symbol "nvCfgIsPrimaryDevice"
> ERROR: Unable to determine number of GPUs in system; cannot honor
>       '--enable-all-gpus' option.

nvidia-xconfig is required for functionality of nvidia-hybrid-graphics-390 for legacy Nvidia Optimus GPUs.

The library incompatibility occurs since libnvidia-cfg.so.1 is part of nvidia driver port, not the xconfig port.

Ideally nvidia-xconfig version should always match driver version, but the existing ports do not accomplish this.
Using nvidia-xconfig 390.151 for drivers 390 and earlier, and nvidia-xconfig 470.86 for drivers 470 and newer seems sufficient.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-12-30 00:42:04 UTC
Triage: 

* the patch-ready keyword is deprecated

* the dashboard shows this ports bug as ready to be taken by a committer.
Comment 2 Graham Perrin 2023-09-29 03:45:25 UTC
^Triage: 

* correct assignment
* flag for feedback from the maintainer.

(I don't know why Bugzilla did not automate those things; FreshPorts shows that x11@ became maintainer more than three years ago. I'll raise this issue with a bugmeister in Matrix.)