From bfd7626b8fcc3c86352eb92f29f8d5b1fbb106ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AAA=20Elysia=20=E7=8C=AB=E7=8C=AB=E4=BE=A0=20=E2=81=A7=7E?= =?UTF-8?q?=E5=96=B5?= Date: Sat, 18 Jul 2026 04:27:53 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=85=E5=9C=A8=E4=BD=BF=E7=94=A8loon?= =?UTF-8?q?ggpu=E6=97=B6=E7=A6=81=E7=94=A8=E6=98=BE=E5=8D=A1=E5=8A=A0?= =?UTF-8?q?=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AAA Elysia 猫猫侠 ⁧~喵 --- extras/spark-store | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extras/spark-store b/extras/spark-store index c07d6ede..4404b6cb 100755 --- a/extras/spark-store +++ b/extras/spark-store @@ -29,11 +29,14 @@ if grep -q "ID=aosc" /etc/os-release; then ARGS="$ARGS --no-spark" fi -# 检查龙芯架构,添加 --disable-gpu +# 检查龙GPU,添加 --disable-gpu ARCH=$(uname -m) if [ "$ARCH" = "loongarch64" ] || [ "$ARCH" = "loong64" ]; then - echo "检测到龙芯架构 ($ARCH)" - ARGS="$ARGS --disable-gpu" + is_loonggpu=$(lspci -s $(basename $(readlink $(grep -l connected /sys/class/drm/card*/*/status 2>/dev/null | head -1 | grep -o 'card[0-9]*' | xargs -I{} echo /sys/class/drm/{}/device))) | grep -qi loongson && echo "Found" || echo "NotFound") + if [ "$is_loonggpu" = "Found" ]; then + echo "检测到龙GPU" + ARGS="$ARGS --disable-gpu" + fi fi # 注意:已移除原先针对 arm64 + wayland 添加 --disable-gpu 的逻辑,