stuartore / device_xiaomi_psyche

Device tree of Xiaomi 12X(psyche) - Auto bringup ability
https://gitlab.com/stuartore
7 stars 2 forks source link

[UDFPS] UDFPS Sensor do not work on low brightness #2

Closed stuartore closed 1 year ago

stuartore commented 1 year ago

as title

stuartore commented 1 year ago

Now works in Global HBM mode with DISPPARAM nodes suggested by @Moonlight4004

Double checked VoidUI-Devices:sm8250 implements HBM since https://github.com/stuartore/device_xiaomi_psyche/commit/0d68564aabbf1054d7b2f25cff616fceaaed6085

It faces a problem of keeping high level display brightness after press udfps sensor.

stuartore commented 1 year ago

It's maybe a problem of dim_layer so the device still goes HBM after using udfps. (Gist Note)

stuartore commented 1 year ago

verify if this file exists: /sys/devices/platform/soc/soc:qcom,dsi-display/dimlayer_hbm Also try sudo echo 1 > /sys/devices/platform/soc/soc:qcom,dsi-display/dimlayer_hbm to see if the dim layer shows. It should dim HBM manually. If not dim automatically, check sepolicy.

stuartore commented 1 year ago

qcdm files extracted from MIUI vendor could be needed by refer to PixelOS:device_xiaomi_toco/configs/display | PE:davinci

Method for adding to device.mk

stuartore commented 1 year ago
stuartore commented 1 year ago

One solution: push DC dimming node to avoid flicker after pressing fingerprint

stuartore commented 1 year ago

In Local HBM, log indicates that: QSEE COMMAND FAILED

stuartore commented 1 year ago

Fix Local HBM by reffering to https://github.com/mickaelmendes50/android_device_xiaomi_psyche/commit/ce4d0cb10f47a07fd83a7dcedef92518ad61b784 since https://github.com/stuartore/device_xiaomi_psyche/commit/14934f58927620dbf7de9d5c9fc4c713bb3b84ac

More: switch to Local HBM from Glocbal HBM in https://github.com/stuartore/device_xiaomi_psyche/commit/724608df32c3bcc1f3832bbd63cf83bc65bb638a