|
|
|
@ -83,7 +83,6 @@ def read_thermal(thermal_config): |
|
|
|
|
dat.deviceState.cpuTempC = [read_tz(z) / thermal_config.cpu[1] for z in thermal_config.cpu[0]] |
|
|
|
|
dat.deviceState.gpuTempC = [read_tz(z) / thermal_config.gpu[1] for z in thermal_config.gpu[0]] |
|
|
|
|
dat.deviceState.memoryTempC = read_tz(thermal_config.mem[0]) / thermal_config.mem[1] |
|
|
|
|
dat.deviceState.ambientTempC = read_tz(thermal_config.ambient[0]) / thermal_config.ambient[1] |
|
|
|
|
dat.deviceState.pmicTempC = [read_tz(z) / thermal_config.pmic[1] for z in thermal_config.pmic[0]] |
|
|
|
|
return dat |
|
|
|
|
|
|
|
|
@ -412,7 +411,6 @@ def thermald_thread(end_event, hw_queue) -> None: |
|
|
|
|
for i, temp in enumerate(msg.deviceState.gpuTempC): |
|
|
|
|
statlog.gauge(f"gpu{i}_temperature", temp) |
|
|
|
|
statlog.gauge("memory_temperature", msg.deviceState.memoryTempC) |
|
|
|
|
statlog.gauge("ambient_temperature", msg.deviceState.ambientTempC) |
|
|
|
|
for i, temp in enumerate(msg.deviceState.pmicTempC): |
|
|
|
|
statlog.gauge(f"pmic{i}_temperature", temp) |
|
|
|
|
for i, temp in enumerate(last_hw_state.nvme_temps): |
|
|
|
|