Skip to content

Commit 286a1df

Browse files
committed
Added power related configurations from original ROM.
1 parent 248b96f commit 286a1df

File tree

4 files changed

+186
-1
lines changed

4 files changed

+186
-1
lines changed

BoardConfigCommon.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,8 @@ WIFI_DRIVER_FW_PATH_AP := "ap"
6767
WIFI_DRIVER_FW_PATH_STA := "sta"
6868
WPA_SUPPLICANT_VERSION := VER_0_8_X
6969

70+
# Overlay
71+
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
72+
7073
# inherit from the proprietary version
7174
-include vendor/lge/g3-kddi-common/BoardConfigVendor.mk

configs/thermal-engine-8974.conf

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
sampling 5000
2+
c_mode 1
3+
4+
[CPU_LCD_management]
5+
algo_type monitor
6+
sensor xo_batt
7+
sampling 10000
8+
thresholds 41000 43000 45000 47000 49000 51000 53000
9+
thresholds_clr 39000 41500 43500 45500 47500 49500 51500
10+
actions cpu+lcd cpu+lcd cpu+lcd cpu+lcd cpu+lcd cpu+lcd cpu+lcd
11+
action_info FFFFFFF+255 2265600+236 1958400+214 1728000+195 1574400+176 1267200+176 1190400+176
12+
action_type 25000
13+
14+
[GPU_management]
15+
algo_type monitor
16+
sensor xo_therm_pu2
17+
sampling 10000
18+
thresholds 47000 50000 56000
19+
thresholds_clr 46500 47500 50500
20+
actions gpu gpu gpu
21+
action_info 462400000 389000000 330000000
22+
action_type 25000
23+
24+
[battery_monitor]
25+
algo_type monitor
26+
sensor xo_therm_pu2
27+
sampling 10000
28+
thresholds 40000 42000 44000 46000 53000 55000 57000 59000
29+
thresholds_clr 38000 40500 42500 44500 51500 53500 55500 57500
30+
actions battery+battery_quick battery+battery_quick battery+battery_quick battery+battery_quick battery+battery_quick battery+battery_quick battery+battery_quick battery+battery_quick
31+
action_info 1400+2000 700+2000 500+2000 300+2000 300+1900 300+1700 300+1500 300+1
32+
33+
[CPU0_MONITOR]
34+
algo_type monitor
35+
sensor cpu0
36+
sampling 65
37+
thresholds 120000
38+
thresholds_clr 115000
39+
actions shutdown
40+
action_info 0
41+
42+
[CPU1_MONITOR]
43+
algo_type monitor
44+
sensor cpu1
45+
sampling 65
46+
thresholds 120000
47+
thresholds_clr 115000
48+
actions shutdown
49+
action_info 0
50+
51+
[CPU2_MONITOR]
52+
algo_type monitor
53+
sensor cpu2
54+
sampling 65
55+
thresholds 120000
56+
thresholds_clr 115000
57+
actions shutdown
58+
action_info 0
59+
60+
[CPU3_MONITOR]
61+
algo_type monitor
62+
sensor cpu3
63+
sampling 65
64+
thresholds 120000
65+
thresholds_clr 115000
66+
actions shutdown
67+
action_info 0
68+
69+
[SS-CPU0]
70+
algo_type ss
71+
sampling 65
72+
sensor cpu0
73+
device cpu
74+
set_point 85000
75+
set_point_clr 55000
76+
action_type 10000
77+
78+
[SS-CPU1]
79+
algo_type ss
80+
sampling 65
81+
sensor cpu1
82+
device cpu
83+
set_point 85000
84+
set_point_clr 55000
85+
action_type 10000
86+
87+
[SS-CPU2]
88+
algo_type ss
89+
sampling 65
90+
sensor cpu2
91+
device cpu
92+
set_point 85000
93+
set_point_clr 55000
94+
action_type 10000
95+
96+
[SS-CPU3]
97+
algo_type ss
98+
sampling 65
99+
sensor cpu3
100+
device cpu
101+
set_point 85000
102+
set_point_clr 55000
103+
action_type 10000
104+
105+
[SS-POPMEM]
106+
algo_type ss
107+
sampling 65
108+
sensor pop_mem
109+
device cpu
110+
set_point 80000
111+
set_point_clr 55000
112+
time_constant 16
113+

overlay/frameworks/base/core/res/res/values/config.xml

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
Empty is viewed as "all". Only used on devices which
3939
don't support RIL_REQUEST_GET_RADIO_CAPABILITY
4040
format is UMTS|LTE|... -->
41-
<string translatable="false" name="config_radio_access_family">LTE|CDMA|EVDO</string>
41+
<string translatable="false" name="config_radio_access_family">LTE|CDMA|EVDO|GSM|WCDMA</string>
42+
43+
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
44+
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
45+
<bool name="config_automatic_brightness_available">false</bool>
4246

4347
</resources>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<device name="Android">
3+
<item name="none">0</item>
4+
<item name="screen.on">158.73</item>
5+
<item name="bluetooth.active">42.51</item>
6+
<item name="bluetooth.on">1.18</item>
7+
<item name="screen.full">245.61</item>
8+
<item name="wifi.on">1.19</item>
9+
<item name="wifi.active">143.18</item>
10+
<item name="wifi.scan">28.99</item>
11+
<item name="dsp.audio">27.4</item>
12+
<item name="dsp.video">338.9</item>
13+
<item name="radio.active">161.22</item>
14+
<item name="radio.scanning">113.76</item>
15+
<item name="gps.on">89.14</item>
16+
<array name="radio.on">
17+
<value>1.87</value>
18+
<value>1.88</value>
19+
</array>
20+
<item name="lte.on">1.87</item>
21+
<item name="lte.active">161.22</item>
22+
<item name="lte.scanning">113.76</item>
23+
<item name="wimax.on">1.7</item>
24+
<item name="wimax.active">147.15</item>
25+
<item name="wimax.scanning">113.76</item>
26+
<item name="camera.on">696.80</item>
27+
<item name="light.on">483.12</item>
28+
<array name="cpu.speeds">
29+
<value>300000</value>
30+
<value>422400</value>
31+
<value>652800</value>
32+
<value>729600</value>
33+
<value>883200</value>
34+
<value>960000</value>
35+
<value>1036800</value>
36+
<value>1190400</value>
37+
<value>1267200</value>
38+
<value>1497600</value>
39+
<value>1574400</value>
40+
<value>1728000</value>
41+
<value>1958400</value>
42+
<value>2265600</value>
43+
<value>2457600</value>
44+
</array>
45+
<item name="cpu.idle">3.7</item>
46+
<item name="cpu.awake">20.66</item>
47+
<array name="cpu.active">
48+
<value>44.38</value>
49+
<value>65.52</value>
50+
<value>79.97</value>
51+
<value>86.27</value>
52+
<value>94.84</value>
53+
<value>114.86</value>
54+
<value>121.07</value>
55+
<value>128.68</value>
56+
<value>182.59</value>
57+
<value>204.98</value>
58+
<value>213.14</value>
59+
<value>227.17</value>
60+
<value>252.83</value>
61+
<value>289.50</value>
62+
<value>317.38</value>
63+
</array>
64+
<item name="battery.capacity">3000</item>
65+
</device>

0 commit comments

Comments
 (0)