From caf51ee5b6b1c25f0850ca3d04cef33854b1b723 Mon Sep 17 00:00:00 2001 From: Ziyi Cui Date: Tue, 13 Jun 2023 18:00:42 +0000 Subject: [PATCH 1/3] powerhint: Reduce StaleTimeFactor Reduce StaleTimeFactor for power saving Bug: 269523712 Test: boot and run uibench Change-Id: I347a2e3c24fe6ad3a81edca32b44abd83008adf9 Signed-off-by: Ziyi Cui --- powerhint-oriole.json | 6 +++--- powerhint-raven.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/powerhint-oriole.json b/powerhint-oriole.json index b8f0a52..cf33119 100644 --- a/powerhint-oriole.json +++ b/powerhint-oriole.json @@ -1860,7 +1860,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "REFRESH_90FPS", @@ -1884,7 +1884,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "REFRESH_60FPS", @@ -1908,7 +1908,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "UiHighBoostWithoutPid", diff --git a/powerhint-raven.json b/powerhint-raven.json index b71165f..483ef8d 100644 --- a/powerhint-raven.json +++ b/powerhint-raven.json @@ -1841,7 +1841,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "REFRESH_90FPS", @@ -1865,7 +1865,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "REFRESH_60FPS", @@ -1889,7 +1889,7 @@ "EarlyBoost_On": false, "EarlyBoost_TimeFactor": 0.0, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 20.0 + "StaleTimeFactor": 15.0 }, { "Name": "UiHighBoostWithoutPid", From 2fccecff0f373966f4c52680f24cf8e77a825c1c Mon Sep 17 00:00:00 2001 From: paulsu Date: Wed, 14 Jun 2023 05:22:04 +0000 Subject: [PATCH 2/3] Remove UgBgGroupThrottle node to keep ug_bg_group_throttle 308 by default Bug: 280258727 Test: Found regression in b/286002292, local test. Change-Id: I7628d4dd8f115926f2c33efa252b8256ec628f7a Signed-off-by: paulsu --- powerhint-oriole.json | 10 ---------- powerhint-raven.json | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/powerhint-oriole.json b/powerhint-oriole.json index b8f0a52..16a368f 100644 --- a/powerhint-oriole.json +++ b/powerhint-oriole.json @@ -497,16 +497,6 @@ ], "DefaultIndex": 0, "ResetOnInit": true - }, - { - "Name": "UgBgGroupThrottle", - "Path": "/proc/vendor_sched/ug_bg_group_throttle", - "Values": [ - "512", - "308" - ], - "DefaultIndex": 0, - "ResetOnInit": true } ], "Actions": [ diff --git a/powerhint-raven.json b/powerhint-raven.json index b71165f..b0b22d8 100644 --- a/powerhint-raven.json +++ b/powerhint-raven.json @@ -496,16 +496,6 @@ ], "DefaultIndex": 0, "ResetOnInit": true - }, - { - "Name": "UgBgGroupThrottle", - "Path": "/proc/vendor_sched/ug_bg_group_throttle", - "Values": [ - "512", - "308" - ], - "DefaultIndex": 0, - "ResetOnInit": true } ], "Actions": [ From d552119737ca69ee682de816b025428bd1910f87 Mon Sep 17 00:00:00 2001 From: Avichal Rakesh Date: Mon, 6 Feb 2023 13:32:35 -0800 Subject: [PATCH 3/3] Enable UVC support on raviole Raven and Oriole now supports UVC gadget function. Setting this flag triggers the framework to surface the UVC specific functionality and UI. Test: Manually tested that the UVC functionality is enabled Bug: 242344221 Change-Id: I979a2d8f5a3d35bc8dffac87e2e9e29c1a03043a --- device-oriole.mk | 3 +++ device-raven.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/device-oriole.mk b/device-oriole.mk index d9dff81..bdfa515 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -284,3 +284,6 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) PRODUCT_SYSTEM_PROPERTIES += \ persist.settings.large_screen_opt.enabled=false +# Enable DeviceAsWebcam support +PRODUCT_VENDOR_PROPERTIES += \ + ro.usb.uvc.enabled=true diff --git a/device-raven.mk b/device-raven.mk index 2afddb6..16129fc 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -303,3 +303,6 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) PRODUCT_SYSTEM_PROPERTIES += \ persist.settings.large_screen_opt.enabled=false +# Enable DeviceAsWebcam support +PRODUCT_VENDOR_PROPERTIES += \ + ro.usb.uvc.enabled=true