-
-
Notifications
You must be signed in to change notification settings - Fork 546
Add Temperature Offset option in dietpi-config #8041
Copy link
Copy link
Open
Description
Proposing a new feature
In the recent dietpi-config update, we can now manually select the CPU temperature source. This is a great addition!
However, for some SBCs like the Orange Pi Zero (Allwinner H2+/H3), the thermal sensor reporting is notoriously inaccurate due to hardware/kernel calibration issues (e.g., showing 10-12°C when the actual temp is around 40°C).
Currently, the only way to fix this is by running a background script to read the raw value, add an offset, and write it to a temporary file (e.g., in /dev/shm/), then pointing dietpi-config to that file.
Proposed Solution
It would be much cleaner if dietpi-config (or the underlying monitoring script) included an "Offset" field.
- Users could input a value (e.g.,
+30or-5) in Celsius. - DietPi would then apply this offset to the value read from the selected sensor before displaying it in the banner,
htop, or other DietPi tools.
Context
- Device: Orange Pi Zero LTS (Allwinner H2+)
- Kernel: 6.12.58-current-sunxi
- Problem: Raw value from
/sys/class/thermal/thermal_zone0/tempis consistently ~30,000 m°C lower than reality.
Reactions are currently unavailable