From c83e1717350b2df06d4cf5af3fca970201073c96 Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Sun, 26 Nov 2023 20:20:25 +0530 Subject: [PATCH 1/2] FP5: Use content detection for refresh rate - No artifact noticed on boot animation with 90Hz refresh rate. This reverts commit 585150e90cfb66f4845d2b29f3348d94f8e1aeef. This reverts commit 03ccb9158317960626757813582ea716dab3819a. This reverts commit fe45821c73fb8a427d684b244ca5aab7b3316509. This reverts commit 1dc193d74a2652acbb1758770f991d8db3e0ef26. --- device.mk | 2 -- .../apps/Settings/res/values/config.xml | 22 ----------------- .../FrameworksResCommon/res/values/config.xml | 24 +++++++++++++++---- vendor.prop | 1 + 4 files changed, 20 insertions(+), 29 deletions(-) delete mode 100644 overlay-lineage/packages/apps/Settings/res/values/config.xml diff --git a/device.mk b/device.mk index 570144c..6f09f7a 100644 --- a/device.mk +++ b/device.mk @@ -320,8 +320,6 @@ PRODUCT_PACKAGES += \ libstagefrighthw # Overlay -DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage - PRODUCT_PACKAGES += \ CarrierConfigResCommon \ eCameraTarget \ diff --git a/overlay-lineage/packages/apps/Settings/res/values/config.xml b/overlay-lineage/packages/apps/Settings/res/values/config.xml deleted file mode 100644 index 7050a98..0000000 --- a/overlay-lineage/packages/apps/Settings/res/values/config.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - true - diff --git a/overlay/FrameworksResCommon/res/values/config.xml b/overlay/FrameworksResCommon/res/values/config.xml index 3e117ff..d37afc8 100644 --- a/overlay/FrameworksResCommon/res/values/config.xml +++ b/overlay/FrameworksResCommon/res/values/config.xml @@ -94,11 +94,25 @@ the restoring is handled by modem if it is true --> true - - 60 + + 240 + + + 0 4 diff --git a/vendor.prop b/vendor.prop index 8469cd7..1ebd817 100644 --- a/vendor.prop +++ b/vendor.prop @@ -134,6 +134,7 @@ ro.surface_flinger.max_frame_buffer_acquired_buffers=3 ro.surface_flinger.max_virtual_display_dimension=4096 ro.surface_flinger.protected_contents=true ro.surface_flinger.use_color_management=true +ro.surface_flinger.use_content_detection_for_refresh_rate=true ro.surface_flinger.wcg_composition_dataspace=143261696 # Incremental FS -- GitLab From 60b69c3c60a01722c9db787015155c529b959aef Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sun, 26 Nov 2023 20:26:31 +0530 Subject: [PATCH 2/2] FP5: overlay: Enable Smooth Display setting FP5 has peak refresh rate higher than 60 Hz, so allow users to toggle high-refresh rate like on stock. Change-Id: I7fcbb905b61575de8c5e9d9a935463932551fb6a --- device.mk | 1 + overlay/SettingsResCommon/Android.bp | 9 +++++++++ overlay/SettingsResCommon/AndroidManifest.xml | 13 +++++++++++++ overlay/SettingsResCommon/res/values/config.xml | 4 ++++ 4 files changed, 27 insertions(+) create mode 100644 overlay/SettingsResCommon/Android.bp create mode 100644 overlay/SettingsResCommon/AndroidManifest.xml create mode 100644 overlay/SettingsResCommon/res/values/config.xml diff --git a/device.mk b/device.mk index 6f09f7a..17ad769 100644 --- a/device.mk +++ b/device.mk @@ -325,6 +325,7 @@ PRODUCT_PACKAGES += \ eCameraTarget \ FrameworksResCommon \ FrameworksResTarget \ + SettingsResCommon \ SystemUIResCommon \ SystemUIResTarget \ TelephonyResCommon \ diff --git a/overlay/SettingsResCommon/Android.bp b/overlay/SettingsResCommon/Android.bp new file mode 100644 index 0000000..e007bd6 --- /dev/null +++ b/overlay/SettingsResCommon/Android.bp @@ -0,0 +1,9 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +runtime_resource_overlay { + name: "SettingsResCommon", + vendor: true, +} diff --git a/overlay/SettingsResCommon/AndroidManifest.xml b/overlay/SettingsResCommon/AndroidManifest.xml new file mode 100644 index 0000000..c36f685 --- /dev/null +++ b/overlay/SettingsResCommon/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/overlay/SettingsResCommon/res/values/config.xml b/overlay/SettingsResCommon/res/values/config.xml new file mode 100644 index 0000000..bc7b11a --- /dev/null +++ b/overlay/SettingsResCommon/res/values/config.xml @@ -0,0 +1,4 @@ + + + true + -- GitLab