mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
feat(nvidia): add script check for legacy nvidia hardware (#1428)
* feat: add script check for legacy nvidia hardware on nvidia image * fix(nvidia-legacy-hardware): remove unintended output from grep in the if condition * chore(nvidia): add Volta to nvidia-legacy-hardware
This commit is contained in:
parent
8fe45ee89e
commit
d88b9bcbed
7
system_files/nvidia/shared/usr/libexec/nvidia-legacy-hardware
Executable file
7
system_files/nvidia/shared/usr/libexec/nvidia-legacy-hardware
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
# Returns true if legacy nvidia hardware (older than turing) using die names
|
||||
# GK### (Kepler), GM### (Maxwell), GP### (Pascal), GV### (Volta)
|
||||
if lspci -nn | grep -P "(VGA compatible|3D) controller .+G(K|M|P|V)\d{3}" > /dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
Loading…
Reference in New Issue
Block a user