[Samsung Galaxy S10 Questions & Answers] bilmiyorum:
Hey guys.

I have S10e Exynos (SM-G970F) variant on latest stock android 12 firmware. Recently I have noticed that my phone CPU does not DeepSleep. When I look at logcat via adb, "Samsung device health service manager (com.sec.android.sdhms)" gives an error and therefore the phone stays awake all the time. (Freshly factory resetted, never rootoed and knox is still valid)

here is part of that log:

2023-08-08 00:18:20.456 941-1486 SensorService pid-941 D Calling batch handle==35 flags=0 rate=0 timeout== 0
2023-08-08 00:18:20.456 568-568 Sensors pid-568 D M requested delay = 1000000, modified delay = 0
2023-08-08 00:18:20.456 568-568 Sensors pid-568 I batch(20) - thermistor_sensor try to batching with 0
2023-08-08 00:18:20.458 568-568 Sensors pid-568 I ThermistorSensor old sensor_state 0, new sensor_state : 1125917086711808 en : 1
2023-08-08 00:18:20.462 568-568 Sensors pid-568 I enable:: thermistor_sensor(20)
2023-08-08 00:18:20.468 568-1081 Sensors pid-568 I ThermistorSensor: type 0 data = 35.6, time = 264798756622
2023-08-08 00:18:20.468 568-1081 Sensors pid-568 I ThermistorSensor old sensor_state 0, new sensor_state : 1125899906842624 en : 0
2023-08-08 00:18:20.472 568-1081 Sensors pid-568 I Oneshot event(thermistor_sensor) expired
2023-08-08 00:18:20.481 3057-3057 SDHMS:j pid-3057 E e = /sys/class/sensors/ssp_sensor/thermistor_channel_0: open failed: EACCES (Permission denied)
2023-08-08 00:18:20.481 3057-3057 SDHMS:j pid-3057 E e = /sys/class/sensors/ssp_sensor/thermistor_channel_1: open failed: EACCES (Permission denied)
2023-08-08 00:18:20.481 521-521 audit pid-521 E type=1400 audit(1691443100.477:221): avc: denied { read } for pid=3057 comm="c.android.sdhms" name="thermistor_channel_0" dev="sysfs" ino=48009 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 SEPF_SM-G970F_12_0001 audit_filtered
2023-08-08 00:18:20.481 521-521 audit pid-521 E type=1300 audit(1691443100.477:221): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=70603a9070 a2=0 a3=0 items=0 ppid=541 pid=3057 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="c.android.sdhms" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
2023-08-08 00:18:20.481 521-521 audit pid-521 E type=1327 audit(1691443100.477:221): proctitle="com.sec.android.sdhms"
2023-08-08 00:18:20.481 521-521 audit pid-521 E type=1400 audit(1691443100.477:222): avc: denied { read } for pid=3057 comm="c.android.sdhms" name="thermistor_channel_1" dev="sysfs" ino=48010 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 SEPF_SM-G970F_12_0001 audit_filtered
2023-08-08 00:18:20.668 565-588 BatteryDump pid-565 D wait_for_battery_event : occurred : change@/devices/platform/battery/power_supply/battery
2023-08-08 00:33:03.057 941-1012 system_server pid-941 E Cannot read thread CPU times for PID 941

As seen in the log "SDHMS:j" keeps giving errors about thermistor permission and then wakes up my CPU. I found a way to prevent this: If I turn off sensors in developer options and then turn them back on, it doesn't give this error anymore and the CPU goes DeepSleep until my next reboot. Unfortunately a factory reset does not solve this problem.

Can someone help me to understand what is causing this problem and how to solve this?