From 8d970a4a97147891265fd4f8cccf5719d958b125 Mon Sep 17 00:00:00 2001 From: Pablo Cholaky Date: Fri, 2 Jun 2023 15:01:30 -0400 Subject: [PATCH] Added support for workarounds on external GPU. lspci detects VGA for main/integrated videocards and Display for external videocards. This commit should apply workarounds on computers with more than one GPU. Useful for most laptops using weak iGPU and good dGPU. Signed-off-by: Pablo Cholaky --- webui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.sh b/webui.sh index ab52ac3b..3e7c3cf3 100755 --- a/webui.sh +++ b/webui.sh @@ -112,7 +112,7 @@ then fi # Check prerequisites -gpu_info=$(lspci 2>/dev/null | grep VGA) +gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display") case "$gpu_info" in *"Navi 1"*|*"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0 ;;