mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-04-29 10:37:35 +09:00
sm6250-common: Changes for Pixel thermal HAL
Change-Id: Id5e4ec3e15f047a6ffd84af34dd9943fa70f7554 Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
parent
c03d9330bc
commit
46df85c08a
3
atoll.mk
3
atoll.mk
@ -355,5 +355,8 @@ PRODUCT_BOOT_JARS += \
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.thermal@2.0-service.pixel
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
|
||||
|
||||
# Inherit proprietary targets
|
||||
$(call inherit-product, vendor/xiaomi/sm6250-common/sm6250-common-vendor.mk)
|
||||
|
242
configs/thermal_info_config.json
Normal file
242
configs/thermal_info_config.json
Normal file
@ -0,0 +1,242 @@
|
||||
{
|
||||
"Sensors":[
|
||||
{
|
||||
"Name":"cpu-0-0-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-0-1-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-0-2-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-0-3-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-0-4-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-0-5-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-1-0-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-1-1-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-1-2-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"cpu-1-3-usr",
|
||||
"Type":"CPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"gpuss-0-usr",
|
||||
"Type":"GPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"gpuss-1-usr",
|
||||
"Type":"GPU",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
95.0,
|
||||
"NAN",
|
||||
"NAN",
|
||||
125.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"battery",
|
||||
"Type":"BATTERY",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
"NAN",
|
||||
60.0
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"quiet-therm-usr",
|
||||
"Type":"SKIN",
|
||||
"HotThreshold":[
|
||||
"NAN",
|
||||
43.0,
|
||||
45.0,
|
||||
48.0,
|
||||
50.0,
|
||||
54.0,
|
||||
58.0
|
||||
],
|
||||
"HotHysteresis":[
|
||||
0.0,
|
||||
1.9,
|
||||
1.9,
|
||||
1.9,
|
||||
1.9,
|
||||
1.9,
|
||||
1.9
|
||||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001,
|
||||
"Monitor":true
|
||||
}
|
||||
],
|
||||
"CoolingDevices":[
|
||||
{
|
||||
"Name":"thermal-cpufreq-0",
|
||||
"Type":"CPU"
|
||||
},
|
||||
{
|
||||
"Name":"thermal-cpufreq-7",
|
||||
"Type":"CPU"
|
||||
},
|
||||
{
|
||||
"Name":"thermal-devfreq-0",
|
||||
"Type":"GPU"
|
||||
},
|
||||
{
|
||||
"Name":"battery",
|
||||
"Type":"BATTERY"
|
||||
}
|
||||
]
|
||||
}
|
@ -1297,13 +1297,12 @@ vendor/etc/init/vendor.qti.hardware.servicetracker@1.2-service.rc
|
||||
vendor/lib/hw/vendor.qti.hardware.servicetracker@1.2-impl.so
|
||||
vendor/lib64/hw/vendor.qti.hardware.servicetracker@1.2-impl.so
|
||||
|
||||
# Thermal
|
||||
vendor/bin/thermal-engine
|
||||
vendor/etc/thermal-engine.conf
|
||||
# Thermal engine - from sunfish - RQ3A.210805.001.A1/7474174
|
||||
vendor/bin/thermal-engine|549f8284d4aca92e2b8187ab2a283a90c40e6dca
|
||||
|
||||
# ThermalClient
|
||||
vendor/lib/libthermalclient.so
|
||||
vendor/lib/libthermalfeature.so
|
||||
vendor/lib64/libthermalclient.so
|
||||
vendor/lib64/libthermalfeature.so
|
||||
|
||||
# Time services
|
||||
-vendor/app/TimeService/TimeService.apk
|
||||
|
@ -92,10 +92,6 @@ on fs
|
||||
mkdir /mnt/vendor/persist/subsys 0770 root system
|
||||
mkdir /mnt/vendor/persist/audio 0755 system system
|
||||
mkdir /mnt/vendor/persist/haptics 0755 system system
|
||||
chmod 0664 /sys/class/thermal/thermal_message/sconfig
|
||||
chown system system /sys/class/thermal/thermal_message/sconfig
|
||||
chmod 0666 /sys/class/thermal/thermal_message/temp_state
|
||||
chown system system /sys/class/thermal/thermal_message/temp_state
|
||||
|
||||
on post-fs
|
||||
write /dev/ipa 1
|
||||
@ -111,8 +107,6 @@ on post-fs-data
|
||||
mkdir /persist/qti_fp 0700 system system
|
||||
mkdir /data/vendor/nnhal 0700 system system
|
||||
mkdir /data/vendor/mac_addr 0771 system system
|
||||
mkdir /data/vendor/thermal 0771 root system
|
||||
mkdir /data/vendor/thermal/config 0771 root system
|
||||
|
||||
on boot
|
||||
chown system system /sys/class/drm/card0-DSI-1/disp_param
|
||||
@ -166,6 +160,11 @@ service vendor.per_proxy /vendor/bin/pm-proxy
|
||||
group system
|
||||
disabled
|
||||
|
||||
service vendor.thermal-engine /vendor/bin/thermal-engine -c /vendor/etc/thermal-engine-${ro.boot.hwname}.conf
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:init.svc.vendor.per_mgr=running
|
||||
start vendor.per_proxy
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user