From 22aada85f07b60335af5cca8850fda4df068aa38 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 20 Apr 2025 21:52:52 +0200 Subject: [PATCH] feat: Check CPU vendor --- src/display.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display.sh b/src/display.sh index d3a5443..a9598bf 100644 --- a/src/display.sh +++ b/src/display.sh @@ -8,7 +8,9 @@ set -Eeuo pipefail : "${DISPLAY:="none"}" # Display type : "${RENDERNODE:="/dev/dri/renderD128"}" # Render node -if [[ "$GPU" != [Yy1]* ]] || [[ "$ARCH" != "amd64" ]]; then +CPU_VENDOR=$(lscpu | awk '/Vendor ID/{print $3}') + +if [[ "$GPU" != [Yy1]* ]] || [[ "$CPU_VENDOR" != "GenuineIntel" ]] || [[ "$ARCH" != "amd64" ]]; then [[ "${DISPLAY,,}" == "none" ]] && VGA="none" DISPLAY_OPTS="-display $DISPLAY -vga $VGA"