Hopefully fixed blank gpu with nvidia cards
This commit is contained in:
parent
19b4861e83
commit
c5c34637b8
4
fetch
4
fetch
|
@ -661,9 +661,6 @@ getcpu () {
|
||||||
getgpu () {
|
getgpu () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "OpenBSD")
|
"Linux" | "OpenBSD")
|
||||||
if type -p nvidia-smi >/dev/null 2>&1; then
|
|
||||||
gpu="$(nvidia-smi | awk -F':' '/Product Name/ {printf $2}')"
|
|
||||||
else
|
|
||||||
gpu="$(lspci | grep "VGA")"
|
gpu="$(lspci | grep "VGA")"
|
||||||
gpu=${gpu/* VGA compatible controller: }
|
gpu=${gpu/* VGA compatible controller: }
|
||||||
gpu=${gpu/(rev*)}
|
gpu=${gpu/(rev*)}
|
||||||
|
@ -700,7 +697,6 @@ getgpu () {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
gpu="$brand $gpu"
|
gpu="$brand $gpu"
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
|
Reference in New Issue