Compare commits

..

4 commits

Author SHA1 Message Date
Asimuddin Mohammed
62d81b42f9 haydn: Add props for GameBar v2.0 2025-04-07 23:36:43 +00:00
chemusqui1
2119eea9bc haydn: Define thresholds for switching refresh rate
* The display uses different gamma curves for different refresh rates.It's hard for panel vendor to tune the curves to have exact same brightness for different refresh rate (lazy), rr can switch so fast that makes a weird really annoying flicker, like a CRT, so we need to set a threshold for avoiding that flicker.

* Also, increasing rr switching timers, even if they made the CRT bug to be reduced, slowly scrolling on GMaps while Smooth Display is enabled, led to a weird gamma switching to a green tint, so we need to tune that too for avoiding that shifting.

Signed-off-by: 1xtAsh <ashraykrsingh321@gmail.com>
2025-04-07 23:36:32 +00:00
AdarshGrewal
c48138a0b3 haydn: Include Leica Camera if exists 2025-04-07 23:36:22 +00:00
Bruno Martins
14225b4fa7 haydn: Shim camera libs
Change-Id: Id4bec2bc8bf5da014a69e1953bdb36bc85d11f1e
2025-04-07 23:36:14 +00:00
3 changed files with 30 additions and 2 deletions

View file

@ -33,7 +33,8 @@ blob_fixups: blob_fixups_user_type = {
'vendor/etc/camera/pureShot_parameter.xml': blob_fixup() 'vendor/etc/camera/pureShot_parameter.xml': blob_fixup()
.regex_replace(r'=(\d+)>', r'="\1">'), .regex_replace(r'=(\d+)>', r'="\1">'),
'vendor/lib64/hw/camera.qcom.so': blob_fixup() 'vendor/lib64/hw/camera.qcom.so': blob_fixup()
.binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74'), .binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74')
.add_needed('libprocessgroup_shim.so'),
'vendor/lib64/hw/camera.xiaomi.so': blob_fixup() 'vendor/lib64/hw/camera.xiaomi.so': blob_fixup()
.sig_replace('52 07 00 94', '1F 20 03 D5'), .sig_replace('52 07 00 94', '1F 20 03 D5'),
'vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so': blob_fixup() 'vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so': blob_fixup()
@ -53,7 +54,9 @@ blob_fixups: blob_fixups_user_type = {
.clear_symbol_version('remote_handle64_invoke') .clear_symbol_version('remote_handle64_invoke')
.clear_symbol_version('remote_handle64_open') .clear_symbol_version('remote_handle64_open')
.clear_symbol_version('remote_register_buf_attr'), .clear_symbol_version('remote_register_buf_attr'),
} 'vendor/lib64/hw/com.qti.chi.override.so' : blob_fixup()
.add_needed('libprocessgroup_shim.so'),
} # fmt: skip
module = ExtractUtilsModule( module = ExtractUtilsModule(
'haydn', 'haydn',

View file

@ -340,4 +340,21 @@
<item>haydn</item> <item>haydn</item>
<item>haydnpro</item> <item>haydnpro</item>
</string-array> </string-array>
<!-- The display uses different gamma curves for different refresh rates. It's hard for panel
vendor to tune the curves to have exact same brightness for different refresh rate. So
flicker could be observed at switch time. The issue is worse at the gamma lower end.
In addition, human eyes are more sensitive to the flicker at darker environment.
To prevent flicker, we only support higher refresh rates if the display brightness is above
a threshold. And the darker environment could have higher threshold.
For example, no higher refresh rate if
display brightness <= disp0 && ambient brightness <= amb0
|| display brightness <= disp1 && ambient brightness <= amb1
-->
<integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
<item>74</item> <!-- 77% UI brightness -->
</integer-array>
<integer-array name="config_ambientThresholdsOfPeakRefreshRate">
<item>63</item>
</integer-array>
</resources> </resources>

View file

@ -46,3 +46,11 @@ on boot && property:ro.boot.hwc=GL
on boot && property:ro.boot.hwc=IN on boot && property:ro.boot.hwc=IN
setprop bluetooth.device.default_name "Mi 11X Pro" setprop bluetooth.device.default_name "Mi 11X Pro"
on property:vendor.post_boot.parsed=1
chown system graphics /sys/class/drm/sde-crtc-0/measured_fps
chmod 0660 /sys/class/drm/sde-crtc-0/measured_fps
chown system system /sys/class/power_supply/battery/temp
chmod 0660 /sys/class/power_supply/battery/temp