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

FS#2276 - The path to read temperature in fan_ctrl.sh needs to be updated. #7149

Open
openwrt-bot opened this issue May 9, 2019 · 2 comments
Open
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented May 9, 2019

dunkeng:

[openwrt/openwrt.git] / target / linux / mvebu / base-files / sbin / fan_ctrl.sh

CPU_TEMP=cut -c1-2 /sys/class/hwmon/hwmon2/temp1_input
DDR_TEMP=cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input
WIFI_TEMP=cut -c1-2 /sys/class/hwmon/hwmon1/temp2_input

These three paths are wrong, I found these three:
CPU_TEMP=cut -c1-2 /sys/class/hwmon/hwmon1/temp1_input
DDR_TEMP=cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input
WIFI_TEMP=cut -c1-2 /sys/class/hwmon/hwmon0/temp2_input

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 11, 2019

anomeome:

I'm not seeing this path change in an install of a master image on a mamba.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 13, 2019

NeoRaider:

hwmon device numbers may depend on the loaded drivers, or their load order.

I would recommend accessing them through a stable path under /sys/devices with a wildcard for the hwmon number. I don't have an mvebu device at hand to recommend concrete paths - on my x86 system I would use something like "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant