Sensors - cpu_fan = 0 RPM (and no service script generated)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Before submitting an issue to the project GitHub page, I prefer confirm this is not an issue related to my installation. Installed package is the official lm_sensors-3.4.0-x86_64-1.
Running sensors-detect leads me to this result:
Code:
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)
Driver `nct6775':
* ISA bus, address 0x290
Chip `Nuvoton NCT5532D/NCT6779D Super IO Sensors' (confidence: 9)
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): yes
Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors
for initialization at boot time.
You should now start the lm_sensors service to load the required
kernel modules.
/etc/sysconfig/lm_sensors contains :
Code:
# [...]
# This file is sourced by /etc/init.d/
lm_sensors and defines the modules toWMON_MODULES="coretemp nct6775"
However, I didn't find any lm_sensors.init file with the command below:
The alias hwmon2 references 5 fans without labels.
But what bugs me is that the hwmon0/fan1_input file shows 0 RPM, among hwmon2/fan[4-5]_input ones, but I assume it's because those fans are not actually plugged for them.
Below summary outputted by inxi and sensors shows the same results, and several others fans (I only see 3 fans in my computer case).
UDPATE:
According to the BIOS, I have three working fans - one for the cpu, two for the computer case. There are listed by sensors under the hwmon2 alias:
fan1: 789 RPM (min = 0 RPM), a computer case fan
fan2: 1285 RPM (min = 0 RPM), the cpu fan
fan3: 718 RPM (min = 0 RPM), a computer case fan
So, it's like hwmon0 alias, eeepc-wmi isn't relevant. What is it and why do I have a cpu_fan entry here?
Maybe you have an ASUS laptop or motherboard and the module loaded:
Code:
# modinfo eeepc-wmi
filename: /lib/modules/5.4.46/kernel/drivers/platform/x86/eeepc-wmi.ko
alias: wmi:ABBC0F72-8EA1-11D1-00A0-C90629100000
license: GPL
description: Eee PC WMI Hotkey Driver
author: Corentin Chary <corentin.chary@gmail.com>
depends: asus-wmi
retpoline: Y
intree: Y
name: eeepc_wmi
vermagic: 5.4.46 SMP mod_unload
parm: hotplug_wireless:Enable hotplug for wireless device. If your laptop needs that, please report to acpi4asus-user@lists.sourceforge.net. (bool)
and, just for example, https://github.com/lm-sensors/lm-sensors/issues/134
Depending on how your motherboard is wired, the fans may all be via the NCT sensor chip. The eeepc-wmi module has a few other hardware items besides fans such as support for ASUS laptop specialty keys. Often the kernel hardware driver will stick extra (or related) functionality into a module beyond the initial release and purpose. Perhaps hwmon0 has other information about your dektop beside fan0?
I'm not sure to undersand your first sentence, but as I said, I have a desktop computer, with a case (chassis). My MB isn't designed for laptop.
I read this GitHub issue before posting my question, but unlike some people involved in I do not have a model handled by it87.
Quote:
Often the kernel hardware driver will stick extra (or related) functionality into a module beyond the initial release and purpose. Perhaps hwmon0 has other information about your dektop beside fan0?
Not many IMHO... Here is its content:
Code:
~$ tree /sys/class/hwmon/hwmon0
/sys/class/hwmon/hwmon0
├── device -> ../../../eeepc-wmi
├── fan1_input
├── fan1_label
├── name
├── power
│** ├── autosuspend_delay_ms
│** ├── control
│** ├── runtime_active_time
│** ├── runtime_status
│** └── runtime_suspended_time
├── pwm1_enable
├── subsystem -> ../../../../../class/hwmon
└── uevent
I don't think this is a lm-sensors issue. If the kernel thinks it needs to load eeepc-wmi, it will. It could also be possible that the kernel is mis-detecting your hardware and should be loading the asus-wmi. hwmon and various sensor drivers are part of the kernel. sensors-detect helps root out any that are not automatically detected. You can blacklist the eeepc-wmi module and see what happens. Its been a long while since I had a motherboard with a Z77 chipset. Also, just because your motherboard is not a laptop vesion, that does not mean "laptop" modules won't load. Those crazy hardware devs will often add functionality to an exiting module rather than write a new one. Asus could be using some hardware common to several motherboards.
It could also be possible that the kernel is mis-detecting your hardware and should be loading the asus-wmi. Either that, or you are booting the huge kernel with a host of built in modules that you do not need. lsmod won't show these typically but "ghost" system files can still be created.
Also, typically on Slackware, after running sensors-detect, you do not edit (or create) /etc/sysconfig/lmsensors. sensors-detect will list the sensor modules it finds. Some will already have been loaded at boot; others you put into /etc/rc.d/rc.local. For example, on my i7-6850K MSI X99S
Code:
$ cat rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
#
# Chip drivers
#modprobe coretemp
modprobe nct6775
/usr/bin/sensors -s
coretemp is commented since it loads on boot. rc.local adds nct6775 and then runs 'sensors -s' to read the set statements in the default configuration file.
I edited rc.local as said in a previous post, but I only added the modprobe nct6775 line, but not the sensors -s line, which reads the configuration file.
So I suppose that the /etc/init.d/lm_sensors, the startup script mentioned by sensors-detect (and not used with Slackware), if it was generated, would contain those two lines.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.