Skip to content

Add Temperature Offset option in dietpi-config #8041

@MPPzzz

Description

@MPPzzz

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., +30 or -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/temp is consistently ~30,000 m°C lower than reality.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions