From fa589c551404b4208b167d1621686ac27409db4d Mon Sep 17 00:00:00 2001 From: willoong9559 <501801418@qq.com> Date: Mon, 5 Aug 2019 07:43:51 +0800 Subject: [PATCH] Correct Pid if gDisplayProduct_pr=0 --- hidpi.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hidpi.sh b/hidpi.sh index 1ccd650..67e4503 100755 --- a/hidpi.sh +++ b/hidpi.sh @@ -159,6 +159,9 @@ function get_edid() fi gDisplayProduct_st=${gDisplayProductID_RAW:0:2} gDisplayProductID_reverse="${gDisplayProduct_pr}${gDisplayProduct_st}" + if [[ ${gDisplayProduct_pr} == 0 ]]; then + gDisplayProductID_reverse="${gDisplayProduct_st}" + fi gDisplayProductID=$((0x$gDisplayProduct_pr$gDisplayProduct_st)) EDID=$gMonitor