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.
I had my CPU overheat during the middle of the night. I checked the seating of the CPU fan, turned the computer on and every thing seemed OK.
When I ran the sensors command it showed the temp for all cores and I was OK but the CPU fan showed 0 RPM. I was looking for some special means to check just the fan and came upon lm_sensors and installed the tgz package. lm_sensors doesn't show up as a command than can be run and it also knocked out my sensors command. It's in /usr/bin and it's executable but I'm getting and 'no such file or directory' when I try to run the file. Any ideas on how to maked the sensors command work again. It's a great tool.
Any chance that you might have installed the package for the wrong $ARCH? The "no such file or directory" is a typical error when a 64-bit package is installed on 32-bit (or vice versa), and stems from the binary being unable to find the libraries that it needs.
as far as I know the 'sensors' command is one of lm_sensors commands. lm-sensors is the apps name loaded with commands, like 'sensors' 'sensors-detect' then that generates a sensors.conf etc...
if you got it figured out, then you might be able to set it up to have a outside script, perhaps, check your fan speed at a given time interval, and if it is zero, check temps and if out of limits then log it, then shut down your system, or whatever.
Any chance that you might have installed the package for the wrong $ARCH? The "no such file or directory" is a typical error when a 64-bit package is installed on 32-bit (or vice versa), and stems from the binary being unable to find the libraries that it needs.
This is possible since I downloaded the file and didn't notice if it was 64 bit. How would I get the sensors command back? Can it be easily found on the installation DVD?
This is possible since I downloaded the file and didn't notice if it was 64 bit. How would I get the sensors command back? Can it be easily found on the installation DVD?
Maybe this [assuming you're on 14.2 - if not, here]?
Last edited by Lysander666; 10-12-2018 at 01:10 PM.
I'm confused why he didn't already have lm_sensors on the system?
Code:
Do you want to generate /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.
┌─[userx@SlackCurrent]─[~]
└──╼ $ls /etc/init.d/lm_sensors
ls: cannot access '/etc/init.d/lm_sensors': No such file or directory
┌─[✗]─[userx@SlackCurrent]─[~]
└──╼ $ls /prog/init/lm_sensors.init
ls: cannot access '/prog/init/lm_sensors.init': No such file or directory
┌─[✗]─[userx@SlackCurrent]─[~]
└──╼ $ls /prog/init/
ls: cannot access '/prog/init/': No such file or directory
┌─[userx@SlackCurrent]─[~]
└──╼ $locate lm_sensors
/etc/sysconfig/lm_sensors
/usr/doc/lm_sensors-3.4.0
/usr/doc/lm_sensors-3.4.0/CHANGES
/usr/doc/lm_sensors-3.4.0/CONTRIBUTORS
/usr/doc/lm_sensors-3.4.0/COPYING
/usr/doc/lm_sensors-3.4.0/COPYING.LGPL
/usr/doc/lm_sensors-3.4.0/INSTALL
/usr/doc/lm_sensors-3.4.0/README
/usr/doc/lm_sensors-3.4.0/doc
/usr/doc/lm_sensors-3.4.0/doc/developers
/usr/doc/lm_sensors-3.4.0/doc/donations
/usr/doc/lm_sensors-3.4.0/doc/fan-divisors
/usr/doc/lm_sensors-3.4.0/doc/fancontrol.txt
/usr/doc/lm_sensors-3.4.0/doc/libsensors-API.txt
/usr/doc/lm_sensors-3.4.0/doc/progs
/usr/doc/lm_sensors-3.4.0/doc/svn
/usr/doc/lm_sensors-3.4.0/doc/temperature-sensors
/usr/doc/lm_sensors-3.4.0/doc/vid
/usr/doc/lm_sensors-3.4.0/doc/developers/applications
/usr/doc/lm_sensors-3.4.0/doc/developers/lm_sensors.lsm
/usr/doc/lm_sensors-3.4.0/doc/developers/makefiles
/usr/doc/lm_sensors-3.4.0/doc/developers/release_checklist
/usr/doc/lm_sensors-3.4.0/doc/developers/smbus_company_id
/var/lib/pkgtools/packages/lm_sensors-3.4.0-x86_64-2
/var/lib/pkgtools/scripts/lm_sensors-3.4.0-x86_64-2
/var/log/pkgtools/removed_packages/lm_sensors-3.4.0-x86_64-1-upgraded-2018-10-01,22:59:56
/var/log/pkgtools/removed_scripts/lm_sensors-3.4.0-x86_64-1-upgraded-2018-10-01,22:59:56
┌─[userx@SlackCurrent]─[~]
└──╼ $ls /etc/sysconfig/lm_sensors
/etc/sysconfig/lm_sensors
┌─[userx@SlackCurrent]─[~]
└──╼ $cat /etc/sysconfig/lm_sensors
# Generated by sensors-detect on Fri Oct 12 13:47:03 2018
# This file is sourced by /etc/init.d/lm_sensors and defines the modules to
# be loaded/unloaded.
#
# The format of this file is a shell script that simply defines variables:
# HWMON_MODULES for hardware monitoring driver modules, and optionally
# BUS_MODULES for any required bus driver module (for example for I2C or SPI).
HWMON_MODULES="coretemp"
┌─[userx@SlackCurrent]─[~]
└──╼ $sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +83.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +71.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +83.0°C (high = +86.0°C, crit = +100.0°C)
Core 2: +74.0°C (high = +86.0°C, crit = +100.0°C)
Core 3: +73.0°C (high = +86.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +57.5°C (crit = +120.0°C, hyst = +90.0°C)
┌─[userx@SlackCurrent]─[~]
I already have it installed, is it not prepackaged in the distro?
I'm confused why he didn't already have lm_sensors on the system?
Code:
Do you want to generate /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.
┌─[userx@SlackCurrent]─[~]
└──╼ $ls /etc/init.d/lm_sensors
ls: cannot access '/etc/init.d/lm_sensors': No such file or directory
┌─[✗]─[userx@SlackCurrent]─[~]
└──╼ $ls /prog/init/lm_sensors.init
ls: cannot access '/prog/init/lm_sensors.init': No such file or directory
┌─[✗]─[userx@SlackCurrent]─[~]
└──╼ $ls /prog/init/
ls: cannot access '/prog/init/': No such file or directory
┌─[userx@SlackCurrent]─[~]
└──╼ $locate lm_sensors
/etc/sysconfig/lm_sensors
/usr/doc/lm_sensors-3.4.0
/usr/doc/lm_sensors-3.4.0/CHANGES
/usr/doc/lm_sensors-3.4.0/CONTRIBUTORS
/usr/doc/lm_sensors-3.4.0/COPYING
/usr/doc/lm_sensors-3.4.0/COPYING.LGPL
/usr/doc/lm_sensors-3.4.0/INSTALL
/usr/doc/lm_sensors-3.4.0/README
/usr/doc/lm_sensors-3.4.0/doc
/usr/doc/lm_sensors-3.4.0/doc/developers
/usr/doc/lm_sensors-3.4.0/doc/donations
/usr/doc/lm_sensors-3.4.0/doc/fan-divisors
/usr/doc/lm_sensors-3.4.0/doc/fancontrol.txt
/usr/doc/lm_sensors-3.4.0/doc/libsensors-API.txt
/usr/doc/lm_sensors-3.4.0/doc/progs
/usr/doc/lm_sensors-3.4.0/doc/svn
/usr/doc/lm_sensors-3.4.0/doc/temperature-sensors
/usr/doc/lm_sensors-3.4.0/doc/vid
/usr/doc/lm_sensors-3.4.0/doc/developers/applications
/usr/doc/lm_sensors-3.4.0/doc/developers/lm_sensors.lsm
/usr/doc/lm_sensors-3.4.0/doc/developers/makefiles
/usr/doc/lm_sensors-3.4.0/doc/developers/release_checklist
/usr/doc/lm_sensors-3.4.0/doc/developers/smbus_company_id
/var/lib/pkgtools/packages/lm_sensors-3.4.0-x86_64-2
/var/lib/pkgtools/scripts/lm_sensors-3.4.0-x86_64-2
/var/log/pkgtools/removed_packages/lm_sensors-3.4.0-x86_64-1-upgraded-2018-10-01,22:59:56
/var/log/pkgtools/removed_scripts/lm_sensors-3.4.0-x86_64-1-upgraded-2018-10-01,22:59:56
┌─[userx@SlackCurrent]─[~]
└──╼ $ls /etc/sysconfig/lm_sensors
/etc/sysconfig/lm_sensors
┌─[userx@SlackCurrent]─[~]
└──╼ $cat /etc/sysconfig/lm_sensors
# Generated by sensors-detect on Fri Oct 12 13:47:03 2018
# This file is sourced by /etc/init.d/lm_sensors and defines the modules to
# be loaded/unloaded.
#
# The format of this file is a shell script that simply defines variables:
# HWMON_MODULES for hardware monitoring driver modules, and optionally
# BUS_MODULES for any required bus driver module (for example for I2C or SPI).
HWMON_MODULES="coretemp"
┌─[userx@SlackCurrent]─[~]
└──╼ $sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +83.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +71.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +83.0°C (high = +86.0°C, crit = +100.0°C)
Core 2: +74.0°C (high = +86.0°C, crit = +100.0°C)
Core 3: +73.0°C (high = +86.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +57.5°C (crit = +120.0°C, hyst = +90.0°C)
┌─[userx@SlackCurrent]─[~]
I already have it installed, is it not prepackaged in the distro?
He probably did have it installed originally but didn't realize it, and then he mistakenly installed the 32-bit package on top of the existing one.
It's a better idea to get genuine Slackware packages for your system from a genuine Slackware mirror. As far as I know pkgs.org is a third party web site. Correct me if I am wrong.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.