#6323 [GUI] Monitor: an Intel Arc's pkg temperature is the temp sensor, not the pkg energy counter
closed · @pankleks · 0 comentarios · En GitHub
Server & APIAMD / HIPNVIDIA / CUDA
Descripción
## Problem
On an Arc Pro B70 (xe driver), the Monitor's temperature from `serve/telemetry.py` `_Intel.read()` is about 4.6e9 and keeps rising.
xe's hwmon labels two files `pkg`: `temp2_label` and `energy2_label`. `read()` takes the first `*_label` reading `pkg` in `os.listdir` order. On this card `os.listdir` returns `energy2_label` before `temp2_label`, so it reads `energy2_input` (µJ) / 1000 as °C.
Seen on the card (hwmon of `0000:29:00.0`, kernel 7.0.14-25-pve, Proxmox LXC):
```
energy1_label=card energy2_label=pkg power1_label=card temp2_label=pkg temp3_label=vram ...
os.listdir order of the labels: ['energy2_label', 'power1_label', 'temp2_label', 'energy1_label', ...]
```
`gpu_reader(0).read()["temp"]` from a v0.2.16 checkout returned `4634399946.594`, then `4634401590.881`, while `temp2_input` was 24000. A wrapper that rejects GPU temperatures ≥130 °C stopped its run because of it. The engine itself was not affected.
## Change
Only `temp*_label` files can name the temperature sensor: one condition, `lab.startswith("temp")`. The fallback to `temp1` and every other reading are unchanged.
The B70 fake tree in `test_telemetry_intel.py` now carries the `energy1_label=card` / `energy2_label=pkg` files a real B70 has. A new test reads the temperature with `os.listdir` patched to both orders.
## Validation
Passed:
- `python -m unittest serve.test_telemetry_intel tools.test_xe_telemetry` (in `terminal/`) on this branch: OK. Without the `telemetry.py` change, the new test and `test_b70_beside_an_igpu_is_found_and_read` fail with `4634399946.594 != 52.0`.
- `python -m unittest serve.test_telemetry_intel serve.test_monitored_gpu tools.test_xe_telemetry serve.test_server` on this branch, Python 3.14.4 venv with `terminal/requirements.txt` pins: 454 tests OK.
- On the Arc Pro B70 described above, this branch's `serve/telemetry.py` returned `temp 49.0` while the card was under load. The same check of the same logic on a v0.2.16 checkout returned `24.0` at idle (`temp2_input` 24000).
Not run:
- `pytest terminal/tests/terminal`, and anything on an i915 (A-series) card or a B50/B60. The i915 path has no `pkg` label and keeps `temp1`.
No engine code is touched, so no CUDA/HIP/SYCL build is involved.
En el sitio
Enlaces a install, modelos, releases.