From af8b4dcedec133641f0fe9bbc92930f593779a59 Mon Sep 17 00:00:00 2001 From: jabashque Date: Fri, 14 Oct 2022 16:32:35 -0700 Subject: [PATCH] sm8250-common: Don't process display brightness on pxlw disp mode change In libpwirissoft.so's `pxlw` class, `qcomSetDisplayMode()` ends up calling `irisSetConfigEx()` with `brightness_level_` as one of the parameters. `irisSetConfigEx()` ends up passing that `brightness_level_` param to `processDisplayBrightness()`, which seems to do some sort of additional dimming of the display output depending on what the current brightness level is. On AOSP, it looks like `brightness_level_` doesn't get set properly. After hwcomposer is initialized for the first time (or terminated and restarted), if we turn the panel off and back on at least once, and then try changing display modes, hwcomposer seems to apply a constant dimming of the display output regardless of the backlight level. Let's work around that by nop-ing out the `irisSetConfigEx()` call in `qcomSetDisplayMode()`. That way, `processDisplayBrightness()` won't get called, and we will not get that dimming. Change-Id: Ied87b229d596bcc597b9ccb0a47368cbcb97f54b --- extract-files.sh | 3 +++ proprietary-files.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index 8820edd..270d3f2 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -69,6 +69,9 @@ function blob_fixup() { odm/etc/vintf/manifest/manifest_oplus_fingerprint.xml) sed -ni "/android.hardware.biometrics.fingerprint/{x;s/hal format/hal override=\"true\" format/;x};x;1!p;\${x;p}" "${2}" ;; + odm/lib64/libpwirissoft.so) + "${SIGSCAN}" -p "72 1F 00 94" -P "1F 20 03 D5" -f "${2}" + ;; product/etc/sysconfig/com.android.hotwordenrollment.common.util.xml) sed -i "s/\/my_product/\/product/" "${2}" ;; diff --git a/proprietary-files.txt b/proprietary-files.txt index 47d9dcb..69cc185 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -800,7 +800,7 @@ odm/lib64/libpwirisfeature.so odm/lib64/libpwirishalwrapper.so odm/lib64/libpwirispq.so odm/lib64/libpwirisservice.so -odm/lib64/libpwirissoft.so +odm/lib64/libpwirissoft.so|e6fddaebca2981a09a46cf5397d47379b455228a|c0c3eb5df1210030190f634eceded4e3daff8506 odm/lib64/libpwsnapdragoncolor.so odm/lib64/libpwsoftirisPCS.so odm/lib64/vendor.pixelworks.hardware.display@1.0.so