Commit graph

19 commits

Author SHA1 Message Date
Peter (YM)
0b1da34e0d Merge "thermal: read thermistor temp from sysfs" into main 2024-08-19 04:10:06 +00:00
Peter (YM)
caeaff1444 thermal: read thermistor temp from sysfs
- avoid wrong sensor value reading for thermalHAL

Bug: 327327502
Test: Build to boot to home
Flag: EXEMPT (bug 337358613)
Change-Id: I93cbfa767a8d882eba526d72ce9ba3c389cd0a1e
Signed-off-by: Peter (YM) <peterym@google.com>
2024-08-16 06:26:10 +00:00
Peter (YM)
5142673794 thermal:remove unused state2power value
Bug: 355566259
Test: Build test
Flag: EXEMPT NDK
Change-Id: Ib3e2e2772c340d13f3bc80583f6e1f1b7715a44d
Signed-off-by: Peter (YM) <peterym@google.com>
2024-08-15 04:14:36 +00:00
TeYuan Wang
57ef8047d8 thermal: modify emergency and shutdown threshold for VIRTUAL-SKIN
Bug: 289752109
Test: adb shell dumpsys android.hardware.thermal.IThermal/default | grep VIRTUAL-SKIN | grep hotThrottlingThreshold
Change-Id: I1327be31f164a9e4263fb9c5381adc09378b19c5
(cherry picked from commit 3a0c866fa5)
2023-07-24 21:39:16 +00:00
TeYuan Wang
e5bfe1cdaa thermal: modify emergency and shutdown threshold am: b486f5a3ee am: c68fa0ddf8 am: d9e0307530
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/24116684

Change-Id: I1ea3ddb3a2621154784f5580ab33a26dcd1a6f8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-19 06:59:08 +00:00
TeYuan Wang
b486f5a3ee thermal: modify emergency and shutdown threshold
Bug: 289752109
Test: adb shell cat /dev/thermal/tz-by-name/skin_therm/trip_point_*_temp
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: I619fd5a5ee4e668430b4002c58123525e9b14812
2023-07-18 15:59:57 +00:00
TeYuan Wang
1237bf6499 thermal: Update VSKIN equation V06.2
Bug: 289752109
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: Ib957fae2db39f421c0b11c3b3b106f3ec333e4f5
2023-07-18 00:21:53 +00:00
TeYuan Wang
66d98f41ed thermal: Provide smooth transient when switch VSKIN OPEN/CLOSE equation
If the since_last_update time < 14s, apply the 20% stepRatio when VSKIN
switch between open/close to prevent the sudden VSKIN thermal change

Bug: 260531200
Test: on/off innser dispaly and check thermal log
Change-Id: I00bd748b203dd8a2edae278503d8ddf1a914d3aa
2023-07-14 00:01:31 +00:00
TeYuan Wang
2a50391912 thermal: update the VSKIN equation V06
Bug: 284262604
Test: adb shell dumpsys android.hardware.thermal.IThermal/default
Change-Id: I7c3354b0832668c1d721d085f39434cd328e045a
2023-05-26 05:00:29 +00:00
TeYuan Wang
faee7a6ae6 thermal: Adjust CLOSE-SUB1 VSKIN equation
CLOSE-SUB1 will cause 5 degC VSKIN correlation gap for solar loading
case, so adding a check to prevent over prediction

Bug: 280447982
Test: adb shell "echo 50000 > dev/thermal/tz-by-name/outer_disp_therm/emul_temp"
      adb shell "echo 0 > dev/thermal/tz-by-name/outer_disp_therm/emul_temp"
Change-Id: I3679ca4a72aa3585a0a0718013006fff54918893
2023-05-10 22:27:02 +00:00
TeYuan Wang
c809762ffa thermal: Increase "I" to have better control at target temperature
Bug: 269730273
Test: Charge device and confirm thermal log
Change-Id: I6aa02a7963359dd9f75be251f51c4a96da3a3eb7
2023-03-07 22:50:30 +08:00
NT Tsai
25f4d660db Merge "thermal: register sensor for thermal diff between right and left inner display" into tm-qpr-dev 2023-03-03 13:29:37 +00:00
TeYuan Wang
e6898a29f3 thermal: register sensor for thermal diff between right and left inner display
Bug: 260663676
Test: adb shell dumpsys thermalservice | grep INNER-PANEL-DIFF
Change-Id: I0c1528dab395302d3ccdb84022bc1d7bec9bbf5f
2023-03-03 09:36:34 +08:00
TeYuan Wang
38f717943a thermal: increase the throttling speed for BIG cluster
Bug: 267841021
Test: Run burn8 and check the CDEV state
Change-Id: I50f9014d09fdf64dac97f66541056d05cad269cf
2023-02-18 12:49:14 +08:00
TeYuan Wang
7b4560dad5 thermal: more aggressive charging throttling
Bug: 239372822
Test: verified by emul_temp
Change-Id: Ie6cdfefd8443a90e93a0a4984de5ac98f979c4aa
2023-02-08 19:25:27 +08:00
TeYuan Wang
a1c43dba6c thermal: align the gxp throttling policy with P22
Bug: 265609046
Test: verified by emul_temp
Change-Id: I8688208c7b9b2830841c8b81dadf5c0cd682b813
2023-01-31 11:03:15 +00:00
TeYuan Wang
067fd6ce02 [DO NOT MERGE] thermal: update VSKIN equation V0.5
Bug: 254163925
Test: verified by emul_temp
Change-Id: I1f33fa8b728ef31740ba1fe2fc18d1b63ffa4d96
2023-01-12 09:53:22 +08:00
TeYuan Wang
64ba8eec26 thermal: refer inner display brightness for VSKIN equation
Bug: 263215628
Test: Check VSKIN log with camera + open/close device
Change-Id: I04b8d008e1dfeec129599255eeb1925f402bf43b
2022-12-30 01:55:48 +00:00
TeYuan Wang
fd349fa42c thermal: update experimental thermal config
Bug: 261933386
Test: switch property and check thermal log
Change-Id: Iad5ad7aecc7957a489ed8a1afb1da8e148b46ea7
2022-12-23 15:55:18 +08:00