aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/system/etc/rqbalance_config.xml54
-rw-r--r--shinano.mk5
-rw-r--r--system.prop16
3 files changed, 59 insertions, 16 deletions
diff --git a/rootdir/system/etc/rqbalance_config.xml b/rootdir/system/etc/rqbalance_config.xml
new file mode 100644
index 0000000..ce43a99
--- /dev/null
+++ b/rootdir/system/etc/rqbalance_config.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Copyright (C) 2017 AngeloGioacchino Del Regno <kholk11@gmail.com> -->
+<!-- -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
+<!-- you may not use this file except in compliance with the License. -->
+<!-- You may obtain a copy of the License at -->
+<!-- -->
+<!-- http://www.apache.org/licenses/LICENSE-2.0 -->
+<!-- -->
+<!-- Unless required by applicable law or agreed to in writing, software -->
+<!-- distributed under the License is distributed on an "AS IS" BASIS, -->
+<!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
+<!-- See the License for the specific language governing permissions and -->
+<!-- limitations under the License. -->
+
+<rqbalance_config>
+
+ <batterysave>
+ <cpuquiet min_cpus="1" max_cpus="2"/>
+ <rqbalance balance_level="80"/>
+ <rqbalance down_thresholds="0 100 300 500 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="200 400 600 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </batterysave>
+
+ <balanced>
+ <cpuquiet min_cpus="2" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </balanced>
+
+ <performance>
+ <cpuquiet min_cpus="4" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </performance>
+
+ <video_decoding>
+ <cpuquiet min_cpus="1" max_cpus="4"/>
+ <rqbalance balance_level="40"/>
+ <rqbalance down_thresholds="0 90 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 115 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </video_decoding>
+
+ <video_encoding>
+ <cpuquiet min_cpus="3" max_cpus="4"/>
+ <rqbalance balance_level="60"/>
+ <rqbalance down_thresholds="0 130 220 300 4294967295 4294967295 4294967295 4294967295"/>
+ <rqbalance up_thresholds="65 145 300 4294967295 4294967295 4294967295 4294967295 4294967295"/>
+ </video_encoding>
+
+</rqbalance_config>
+
diff --git a/shinano.mk b/shinano.mk
index 07fb1f8..011b6d3 100644
--- a/shinano.mk
+++ b/shinano.mk
@@ -106,6 +106,11 @@ PRODUCT_PACKAGES += \
com.qualcomm.location \
gps.msm8974
+
+# RQBalance-PowerHAL configuration
+PRODUCT_COPY_FILES += \
+ $(COMMON_PATH)/rootdir/system/etc/rqbalance_config.xml:system/etc/rqbalance_config.xml
+
# IPC Security Config
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/system/etc/sec_config:system/etc/sec_config
diff --git a/system.prop b/system.prop
index 52e2d67..0fe2f49 100644
--- a/system.prop
+++ b/system.prop
@@ -1,19 +1,3 @@
-#
-# rqbalance specific values
-#
-
-cpuquiet.low.min_cpus=1
-cpuquiet.low.max_cpus=2
-rqbalance.low.balance_level=80
-rqbalance.low.up_threshold=200 400 600 4294967295
-rqbalance.low.down_threshold=0 100 300 500
-
-cpuquiet.normal.min_cpus=2
-cpuquiet.normal.max_cpus=4
-rqbalance.normal.balance_level=40
-rqbalance.normal.up_threshold=100 250 330 4294967295
-rqbalance.normal.down_threshold=0 130 220 300
-
# Ril
ro.use_data_netmgrd=true
ro.ril.enable.amr.wideband=1