GPU: [Linux] lspci, look for 'Display'
This commit is contained in:
parent
07c4f9fc52
commit
691dc9bad4
2
neofetch
2
neofetch
|
@ -927,7 +927,7 @@ get_gpu() {
|
||||||
if [[ -f "/tmp/neofetch/gpu" ]]; then
|
if [[ -f "/tmp/neofetch/gpu" ]]; then
|
||||||
source "/tmp/neofetch/gpu"
|
source "/tmp/neofetch/gpu"
|
||||||
else
|
else
|
||||||
gpu="$(PATH="/sbin:$PATH" lspci -mm | awk -F '\\"|\\" \\"' '/3D|VGA/ {print $3 " " $4}')"
|
gpu="$(PATH="/sbin:$PATH" lspci -mm | awk -F '\\"|\\" \\"' '/Display|3D|VGA/ {print $3 " " $4}')"
|
||||||
|
|
||||||
case "$gpu" in
|
case "$gpu" in
|
||||||
*"advanced"*)
|
*"advanced"*)
|
||||||
|
|
Reference in New Issue