question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Temperature reading from the wrong sensor

See original GitHub issue

Bug Report

Summary

Affected module: sensors

Description: My output for sensors -u:

$ sensors -u    
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:
  temp1_input: 46.000
  temp1_max: 100.000
  temp1_crit: 100.000
  temp1_crit_alarm: 0.000
Core 0:
  temp2_input: 46.000
  temp2_max: 100.000
  temp2_crit: 100.000
  temp2_crit_alarm: 0.000
Core 1:
  temp3_input: 45.000
  temp3_max: 100.000
  temp3_crit: 100.000
  temp3_crit_alarm: 0.000

acpitz-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 44.000
  temp1_crit: 103.000

iwlwifi-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 44.000

pch_skylake-virtual-0
Adapter: Virtual device
temp1:
  temp1_input: 40.500

What is the current behaviour and what is the expected behaviour?

Instead of the Package id 0 temp1_input I see the temperature reported by the Virtual device adapter. I managed to fix this by changing the sensors call like this: sensors -u coretemp-isa-0000 but I don’t know if this is a viable solution for everyone. Maybe modifying the regex to look for ‘Package id 0’ would be more portable.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cdarkencommented, Oct 26, 2018

Awesome, it works. Sorry for the noise, I didn’t read carefully the available parameters.

0reactions
tobi-wan-kenobicommented, Nov 13, 2018

My bad, there was a bug in the module, which should now be fixed.

Actually, right now, the only thing you have to provide is the “match_pattern” (if you want to read “temp1_input”):

/bumblebee-status -m sensors -p sensors.match_pattern="Core 1"

This gets you the value of the next “temp1_input” that follows “Core 1”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The sensor appears to be reading incorrectly. What might be ...
Heat can be conducted away from sensors that are not sufficiently immersed into the process being measured. The result will be a reading...
Read more >
Why Is House Thermostat Reading the Wrong Temperature?
Failed temperature sensor. If the sensor is dirty or improperly calibrated, then it won't be able to read the temperature correctly. The element ......
Read more >
What Causes Your Thermostat to Read Incorrectly?
One of the most common reasons that your thermostat is incorrectly reading your home's temperature is that the temperature sensor is ...
Read more >
What if the Sensor Probe Reads Higher or Lower than Actual ...
The sensor probe reads higher temperatures than actually felt on the floor when the sensor probe is placed too close to the wire....
Read more >
Why Is My Thermostat Reading The Wrong Temperature And ...
This is probably the most common reason why thermostats read the wrong temperature; not being located or positioned in the most optimal place....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found