Description
Currently, there is no way, in the dbus-sensors
D-Bus interface, to see how long it has been since the time of the last successful sensor update from live hardware.
If the sensor value is stable, that is, it hasn't changed in some time, there is currently no way for software to distinguish between a good sensor with an unchanging value, and a stuck or broken hardware sensor (or a buggy software driver) that is no longer providing sensor value updates in a timely manner.
As sensors are commonly used for thermal control, this is a real problem, and can lead to hardware damage if, for example, the fans are wrongly set to a slow speed, even though the system is overheating, because there was a bug somewhere in the thermal sensor and it got stuck reporting a cold temperature when in reality the temperature has increased over time and we just didn't know because the sensor got stuck.
I'm open to suggestions as to what would be a good interface addition for this feature, and to do it in a way that doesn't lead to spamming D-Bus with too much additional traffic.