How to disable Thermal service on imx 8m NANO board?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable Thermal service on imx 8m NANO board?

4,991 Views
anurag16doshi
Contributor II

Hello,

We are working on iMX8M nano chipset. We have ported android 10 on imx8M nano evk and is working fine. Now we have ported same build on our custom hardware, and tried to launch our android app using "adb shell monkey --pct-syskeys 0 -s 13 -p com.example.myapplication -v 500" command,we get the following prints on logcat continuously regarding thermal service.we are not going to use thermal service in end application. Can anyone guide me how i can disable this thermal service so that system will not look for temperature sensor values and wont perform any operation related to thermal service

The difference between evk and custom hardware is that the EVK has 4 cores and custom board has single core.

Below are the debug prints

 

logcat logs-

03-01 14:51:11.591 337 357 W /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: Failed to read sensor: cpu-thermal: Try again
03-01 14:51:11.591 337 357 E /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: readTemperature: sensor not found: cpu-thermal
03-01 14:51:11.591 337 357 E /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: thermalWatcherCallbackFunc: error reading temperature

Regards,

AD

0 Kudos
3 Replies

4,627 Views
qazzak
Contributor I

Have you tried the following adb command to override the reported system Thermal level ?:


adb shell cmd thermalservice override-status 0


it forces the system to report the Zero level(i.e. cool)  state.


To reset back to normal operation, use:
 
adb shell cmd thermalservice reset

0 Kudos

4,976 Views
anurag16doshi
Contributor II

Thanks for the response!

I tried this but no luck.still getting the below debug prints in logcat.

Any other solution?


03-01 14:52:08.444 341 361 W /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: Failed to read sensor: cpu-thermal: Try again
03-01 14:52:08.444 341 361 E /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: readTemperature: sensor not found: cpu-thermal
03-01 14:52:08.444 341 361 E /vendor/bin/hw/android.hardware.thermal@2.0-service.imx: thermalWatcherCallbackFunc: error reading temperature for sensor: cpu-thermal

0 Kudos

4,980 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Comment that in /android_build/device/nxp/imx8m/evk_8mn/evk_8mn.mk

# Thermal HAL
PRODUCT_PACKAGES += \
    android.hardware.thermal@2.0-service.imx
PRODUCT_COPY_FILES += \
    device/nxp/imx8m/evk_8mn/thermal_info_config_imx8mn.json:$(TARGET_COPY_OUT_VENDOR)/etc/configs/thermal_info_config_imx8mn.json \
    device/nxp/imx8m/evk_8mn/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml

 

0 Kudos