From 1b1db2b4f49c761ecb82757ca1895af0e57d54e6 Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Fri, 8 Dec 2023 16:17:54 -0500 Subject: [PATCH] fix panel reporting --- .../quirks/devices/Anbernic RG353P/info.d/001-panel | 12 ++++++------ .../quirks/devices/Anbernic RG353V/info.d/001-panel | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/hardware/quirks/devices/Anbernic RG353P/info.d/001-panel b/packages/hardware/quirks/devices/Anbernic RG353P/info.d/001-panel index 16eacd8a5..da49dae9d 100755 --- a/packages/hardware/quirks/devices/Anbernic RG353P/info.d/001-panel +++ b/packages/hardware/quirks/devices/Anbernic RG353P/info.d/001-panel @@ -1,11 +1,11 @@ #!/bin/sh -ID=$(dmesg | grep "panel id:" | sed "s#^.*panel id: ##g") +ID=$(dmesg | grep "panel") case ${ID} in - "30 52") - ID="v1 (${ID})" + *newvision*) + ID="v1" ;; - "38 21") - ID="v2 (${ID})" + *sitronix*) + ID="v2" ;; *) ID="Unknown" @@ -15,4 +15,4 @@ esac if [ -n "${ID}" ] then echo "PANEL VERSION: ${ID}" -fi +fi diff --git a/packages/hardware/quirks/devices/Anbernic RG353V/info.d/001-panel b/packages/hardware/quirks/devices/Anbernic RG353V/info.d/001-panel index e4cf3cb55..da49dae9d 100755 --- a/packages/hardware/quirks/devices/Anbernic RG353V/info.d/001-panel +++ b/packages/hardware/quirks/devices/Anbernic RG353V/info.d/001-panel @@ -1,10 +1,10 @@ #!/bin/sh -ID=$(dmesg | grep "panel id:" | sed "s#^.*panel id: ##g") +ID=$(dmesg | grep "panel") case ${ID} in - "30 52") + *newvision*) ID="v1" ;; - "38 21") + *sitronix*) ID="v2" ;; *) @@ -15,4 +15,4 @@ esac if [ -n "${ID}" ] then echo "PANEL VERSION: ${ID}" -fi +fi