mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-28 12:49:25 +00:00
Fix nvidia check
This commit is contained in:
@ -9,12 +9,7 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# --- GPU Detection ---
|
# --- GPU Detection ---
|
||||||
# Check if nvidia gpu exists, exit silently if not found
|
if [ -n "$(lspci | grep -i 'nvidia')" ]; then
|
||||||
gpu_info=$(lspci | grep -i 'nvidia')
|
|
||||||
if [ -z "$gpu_info" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --- Driver Selection ---
|
# --- Driver Selection ---
|
||||||
# Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules
|
# Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules
|
||||||
if echo "$gpu_info" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then
|
if echo "$gpu_info" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then
|
||||||
@ -84,3 +79,4 @@ env = LIBVA_DRIVER_NAME,nvidia
|
|||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user