From 62d81ad6b2ecc18f4265ff2e446ba2eb0abf5f23 Mon Sep 17 00:00:00 2001 From: Kane You Date: Fri, 6 Jul 2018 21:26:43 +0800 Subject: [PATCH] fix gpu bug Fix gpu detect on some noGPU machine bug --- screenfetch-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenfetch-dev b/screenfetch-dev index a3b257b..69f10b6 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -1602,7 +1602,7 @@ detectgpu () { # Run it only on Intel Processors if GPU is unknown DetectIntelGPU() { if [ -r /proc/fb ]; then - gpu=$(awk '{print $2}' /proc/fb) + gpu=$(lspci | grep -i vga | awk -F ": " '{print $2}') fi case $gpu in