StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

[Linux] Run lspci with sudo / add manual GPU type override

Open nerett opened this issue 3 months ago • 0 comments

Proposal

As I understand, StabilityMatrix tries to run nvidia-smi and then defaults to lspci in order to detect GPU on Linux. The problem is that on some distributions lspci requires root permissions, so the only way to be fine with AMD GPU is to edit visudo like that:

username ALL=(ALL) NOPASSWD: /sbin/lspci

and create a lspci wrapper script somewhere into /usr/local/bin:

#!/bin/sh

exec sudo /sbin/lspci "$@"

Please consider adding manual GPU override ability (or at least post info about GPU detection process in README).

nerett avatar Sep 27 '25 16:09 nerett