You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this not just a log line for missing hw.acpi.thermal.tz0.temperature ? Doesn't fail though?
If there is coretemp or amdtemp installed then the dev.cpu.0.temperature should be available and it registers that device.
These are the 2 entries looked for:: var sensorOIDS = map[string]string{ "dev.cpu.0.temperature": "CPU 0 ", "hw.acpi.thermal.tz0.temperature": "Thermal zone 0", }
And this is when it's processed and produces the log line mentioned: for k, _ := range sensorOIDS { idx := strings.Index(string(bs), k) if idx < 0 { log.Printf("temp: no device %s found", k) } else { rv = append(rv, k) } } return rv
Looping though the OIDs it could miss the acpi entry, print the log line but then continue with the other OID.
Should only fail completely if both of those OIDs are missing.
If you want to remove the logging for this you could change to: for k, _ := range sensorOIDS { idx := strings.Index(string(bs), k) if idx > -1 { rv = append(rv, k) } } return rv
Ok. I don't see any reason why not to do it as suggested; it seems Caleb was trying to cover bases, not that we expect all devices to be available on FreeBSD.
Summary
temp: no device hw.acpi.thermal.tz0.temperature found
error on startup.ACPI system related parameters can be unreliable and depend heavily on hardware vendor implementations.
Proposal: silently tolerate missing
acpi_thermal
data if temperature module for builtin cpu sensor (e.g.coretemp, amdtemp
) is loaded and available.System details
FreeBSD 12.2-RELEASE
AMD Ryzen 9 3900X
/dev/pts/10
gotop-4.0.1
Steps to reproduce
Relevant logs
The
~/.cache/gotop/
logs are empty.Notes
The text was updated successfully, but these errors were encountered: