Find fan speed and cpu temp in linux
what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?
fan
add a comment |
what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?
fan
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41
add a comment |
what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?
fan
what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?
fan
fan
asked Dec 8 '16 at 9:53
Rajnish Kumar SoniRajnish Kumar Soni
1441213
1441213
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41
add a comment |
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41
add a comment |
5 Answers
5
active
oldest
votes
For CPU temperature:
On Debian:
sudo apt-get install lm-sensors
On Centos:
sudo yum install lm_sensors
Run using:
sudo sensors-detect
Type sensors
to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
or install psensor
using:
sudo apt-get install psensor
One can also use hardinfo
sudo apt-get install hardinfo
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
add a comment |
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.
Installation methods are explained on the GitHub Readme.
s-tui on GitHub
This is a screenshot of what it looks like
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
add a comment |
an alternative for lmsensor:
install xsensors using sudo apt-get install xsensors
add a comment |
I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S)
pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
add a comment |
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
glances
good look ;)
New contributor
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328906%2ffind-fan-speed-and-cpu-temp-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
For CPU temperature:
On Debian:
sudo apt-get install lm-sensors
On Centos:
sudo yum install lm_sensors
Run using:
sudo sensors-detect
Type sensors
to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
or install psensor
using:
sudo apt-get install psensor
One can also use hardinfo
sudo apt-get install hardinfo
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
add a comment |
For CPU temperature:
On Debian:
sudo apt-get install lm-sensors
On Centos:
sudo yum install lm_sensors
Run using:
sudo sensors-detect
Type sensors
to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
or install psensor
using:
sudo apt-get install psensor
One can also use hardinfo
sudo apt-get install hardinfo
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
add a comment |
For CPU temperature:
On Debian:
sudo apt-get install lm-sensors
On Centos:
sudo yum install lm_sensors
Run using:
sudo sensors-detect
Type sensors
to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
or install psensor
using:
sudo apt-get install psensor
One can also use hardinfo
sudo apt-get install hardinfo
For CPU temperature:
On Debian:
sudo apt-get install lm-sensors
On Centos:
sudo yum install lm_sensors
Run using:
sudo sensors-detect
Type sensors
to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
or install psensor
using:
sudo apt-get install psensor
One can also use hardinfo
sudo apt-get install hardinfo
edited Jan 4 '18 at 10:51
Kevin Lemaire
1,168724
1,168724
answered Dec 8 '16 at 10:02
RahulRahul
258210
258210
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
add a comment |
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
2
2
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
sensors |grep fan doesn't output anything at all!
– matteo
Aug 19 '18 at 16:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
@matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'
– KevinM
Aug 21 '18 at 15:56
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).
– Milan Kerslager
Feb 8 at 19:58
add a comment |
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.
Installation methods are explained on the GitHub Readme.
s-tui on GitHub
This is a screenshot of what it looks like
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
add a comment |
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.
Installation methods are explained on the GitHub Readme.
s-tui on GitHub
This is a screenshot of what it looks like
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
add a comment |
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.
Installation methods are explained on the GitHub Readme.
s-tui on GitHub
This is a screenshot of what it looks like
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.
Installation methods are explained on the GitHub Readme.
s-tui on GitHub
This is a screenshot of what it looks like
answered Oct 10 '17 at 20:32
amanuskamanusk
23124
23124
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
add a comment |
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!
– Rajnish Kumar Soni
Oct 11 '17 at 9:12
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
Looks impressive and I like the terminal eye candy!
– Tahir Khalid
May 13 '18 at 10:03
add a comment |
an alternative for lmsensor:
install xsensors using sudo apt-get install xsensors
add a comment |
an alternative for lmsensor:
install xsensors using sudo apt-get install xsensors
add a comment |
an alternative for lmsensor:
install xsensors using sudo apt-get install xsensors
an alternative for lmsensor:
install xsensors using sudo apt-get install xsensors
answered Mar 22 '18 at 19:20
Ahmad K MostafaAhmad K Mostafa
235
235
add a comment |
add a comment |
I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S)
pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
add a comment |
I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S)
pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
add a comment |
I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S)
pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S)
pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
answered Aug 22 '18 at 15:24
K7AAYK7AAY
618624
618624
add a comment |
add a comment |
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
glances
good look ;)
New contributor
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
add a comment |
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
glances
good look ;)
New contributor
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
add a comment |
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
glances
good look ;)
New contributor
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
glances
good look ;)
New contributor
New contributor
answered 2 hours ago
user3727521user3727521
1
1
New contributor
New contributor
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
add a comment |
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
1
1
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
Can you show how it allows the user to find out fan speed and CPU temperature?
– G-Man
2 hours ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328906%2ffind-fan-speed-and-cpu-temp-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).
– dirkt
Dec 8 '16 at 11:41