Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sensors_temperatures: also search /sys/devices/platform/coretemp.* for temperatures #1648

Merged
merged 1 commit into from
Dec 28, 2019

Conversation

karabijavad
Copy link
Contributor

@karabijavad karabijavad commented Dec 27, 2019

On my machine, the /sys/class/hwmon/hwmon*/device/ directories do not contain temp*_*.
However, I did find them at /sys/devices/platform/coretemp.0/

This PR adds /sys/devices/platform/coretemp./hwmon/hwmon/temp*_* to the list of files to search for in sensors_temperatures.

✘ karabijavad@alpha  ~  uname -r 
5.4.6-karabijavad
✘ karabijavad@alpha  ~  ls /sys/class/hwmon/hwmon*/device/temp*_*
zsh: no matches found: /sys/class/hwmon/hwmon*/device/temp*_*
✘ karabijavad@alpha  ~  ls /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_*
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_label
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_max
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_label
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_max
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_label
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_max
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_label
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp4_max
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp5_crit
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp5_crit_alarm
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp5_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp5_label
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp5_max
✘ karabijavad@alpha  ~  cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"

@giampaolo giampaolo merged commit 334619d into giampaolo:master Dec 28, 2019
giampaolo added a commit that referenced this pull request Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants