LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2018, 12:51 PM   #1
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Rep: Reputation: 114Reputation: 114
sensors


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.

I'm stuck.

Thanks.
 
Old 10-12-2018, 01:03 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
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.
 
1 members found this post helpful.
Old 10-12-2018, 01:04 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.

Last edited by BW-userx; 10-12-2018 at 01:11 PM.
 
Old 10-12-2018, 01:05 PM   #4
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by volkerdi View Post
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?
 
Old 10-12-2018, 01:07 PM   #5
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by NakedRider View Post
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.
 
Old 10-12-2018, 01:09 PM   #6
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
The first thing you need to do is remove the 32 bit package. THEN install the right package.
 
Old 10-12-2018, 01:10 PM   #7
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Lysander666 View Post
Maybe this?
Thanks. I tried that but it didn't work. I did find a lm_sensors for 64 bit as Patrick suggested. It worked. Thanks to all that replied.

How do I mark this as solved?
 
Old 10-12-2018, 01:12 PM   #8
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by NakedRider View Post
Thanks. I tried that but it didn't work. I did find a lm_sensors for 64 bit as Patrick suggested. It worked. Thanks to all that replied.

How do I mark this as solved?

Found it. Problem solved. Thanks again everyone.
 
Old 10-12-2018, 01:13 PM   #9
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by NakedRider View Post
I did find a lm_sensors for 64 bit as Patrick suggested.
Could you confirm which?
 
Old 10-12-2018, 01:41 PM   #10
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Lysander666 View Post
Could you confirm which?
You gave him the link to the source tarball, not the Slackware package. This is the 64-bit lm_sensors package for Slackware64-14.2.
 
Old 10-12-2018, 01:54 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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?

Last edited by BW-userx; 10-12-2018 at 01:58 PM.
 
Old 10-12-2018, 02:00 PM   #12
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 10-12-2018, 02:11 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by montagdude View Post
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.
that is what I'm figuring, then it screwed it up...
 
Old 10-12-2018, 02:26 PM   #14
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Lysander666 View Post
Could you confirm which?
Got it from here -https://slackware.pkgs.org/14.2/slac..._64-1.txz.html
 
1 members found this post helpful.
Old 10-12-2018, 02:29 PM   #15
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Quote:
Originally Posted by NakedRider View Post
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.

See: https://mirrors.slackware.com/mirrorlist/

Edit: Forgot to add relevant link.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinkpad R500 thermal sensors names (lm-sensors) flyingv2 Linux - Laptop and Netbook 1 09-30-2013 12:49 AM
sensors-detect is causing serious troubles (lm-sensors < 3.3.3) phenixia2003 Slackware 0 09-28-2013 10:45 AM
lm-sensors not detecting hardware sensors sagaciouskjb Linux - Software 4 07-02-2013 02:19 PM
sensors-detect not detecting sensors on my dell laptop (XPS L401X) themande Linux - Newbie 1 10-20-2011 04:07 PM
GNOME Sensors Applet says NO SENSORS FOUND! badgerbox76 Linux - Newbie 2 12-24-2005 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration