 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

29th June 2012, 09:56 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 3,855

|
|
|
Find CPU temperature from the command line in FC 17?
What's a way to find the CPU temperature from the command line in FC 17? The /proc/acpi directory doesn't have it anymore.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
|

29th June 2012, 10:05 PM
|
|
Registered User
|
|
Join Date: Dec 2011
Location: Urziceni, Romania
Posts: 102

|
|
|
Re: Find CPU temperature from the command line in FC 17?
https://poundcomment.wordpress.com/2...rminal-prompt/
Well, it is the same for fedora.
I have lm_sensors installed and from terminal:
$ sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.14 V (min = +0.85 V, max = +1.60 V)
+3.3 Voltage: +3.39 V (min = +2.97 V, max = +3.63 V)
+5 Voltage: +4.92 V (min = +4.50 V, max = +5.50 V)
+12 Voltage: +12.14 V (min = +10.20 V, max = +13.80 V)
CPU FAN Speed: 1339 RPM (min = 600 RPM, max = 7200 RPM)
CHASSIS FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
POWER FAN Speed: 0 RPM (min = 1800 RPM, max = 7200 RPM)
CPU Temperature: +31.0°C (high = +60.0°C, crit = +95.0°C)
MB Temperature: +39.0°C (high = +45.0°C, crit = +95.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +46.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +43.0°C (high = +76.0°C, crit = +100.0°C)
this is from my pc.
Last edited by Colors; 29th June 2012 at 10:09 PM.
|

29th June 2012, 10:15 PM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,616

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Short answer: sensors -f | grep -i temp
As Colors mentioned you'll need the lm_sensors package installed. Then you need to run /sbin/sensors-detect just once as root. After that start the lm_sensors service: systemctl start lm_sensors.service
If you run "systemctl enable lm_sensors.service" then you'll always be able to run the sensors -f command.
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
|

29th June 2012, 10:30 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 3,855

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Yum reports lm_sensors is already installed. There is no sensors-detect command installed although there is a man page for it. Yum doesn't get anything from "yum install sensors-detect".
sensors -f
reports:
Code:
nouveau-pci-0100
Adapter: PCI adapter
temp1: +131.0°F (high = +212.0°F, crit = +230.0°F)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +54.5°F (high = +158.0°F)
(crit = +194.0°F, hyst = +188.6°F)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 91.14 W (crit = 95.04 W)
which is much less elaborate than your report.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
|

30th June 2012, 12:59 AM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,616

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Quote:
Originally Posted by tashirosgt
There is no sensors-detect command installed although there is a man page for it.
|
Are you sure about that?:
Code:
$ rpm -ql lm_sensors | grep sensors-detect
/usr/sbin/sensors-detect
/usr/share/man/man8/sensors-detect.8.gz
/sbin/sensors-detect is a link to /usr/sbin/sensors-detect, and after you run it as root (it's interactive, you can pretty much accept all the defaults) you'll probably get more detailed output.
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
|

30th June 2012, 01:43 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Quote:
Originally Posted by tashirosgt
which is much less elaborate than your report.
|
sensors is more verbose when run as root than as a normal user, it's because root can get access to some acpi values that a user can't get.
|

30th June 2012, 03:00 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 3,855

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Quote:
Originally Posted by RupertPupkin
Are you sure about that?:
Code:
$ rpm -ql lm_sensors | grep sensors-detect
/usr/sbin/sensors-detect
/usr/share/man/man8/sensors-detect.8.gz
/sbin/sensors-detect is a link to /usr/sbin/sensors-detect, and after you run it as root (it's interactive, you can pretty much accept all the defaults) you'll probably get more detailed output.
|
There may have been a /usr/sbin/sensors-detect. Before reading the above replies, I re-installed lm-sensors and there is one now, for sure. I ran it, said YES to every scan, and now I have more detail.
Run as root:
Code:
sensors -f
nouveau-pci-0100
Adapter: PCI adapter
temp1: +131.0°F (high = +212.0°F, crit = +230.0°F)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +54.9°F (high = +158.0°F)
(crit = +194.0°F, hyst = +188.6°F)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 91.14 W (crit = 95.04 W)
it8720-isa-0228
Adapter: ISA adapter
in0: +1.44 V (min = +0.00 V, max = +4.08 V)
in1: +1.50 V (min = +0.00 V, max = +4.08 V)
in2: +3.31 V (min = +0.00 V, max = +4.08 V)
+5V: +3.04 V (min = +0.00 V, max = +4.08 V)
in4: +3.07 V (min = +0.00 V, max = +4.08 V)
in5: +2.05 V (min = +0.00 V, max = +4.08 V)
in6: +4.08 V (min = +0.00 V, max = +4.08 V)
5VSB: +2.99 V (min = +0.00 V, max = +4.08 V)
Vbat: +3.23 V
fan1: 1153 RPM (min = 10 RPM) ALARM
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
temp1: +104.0°F (low = +260.6°F, high = +260.6°F) sensor = thermistor
temp2: +96.8°F (low = +260.6°F, high = +260.6°F) sensor = thermal diode
temp3: +75.2°F (low = +260.6°F, high = +140.0°F) sensor = thermal diode
intrusion0: ALARM
I'm surprised that "CPU" isn't mentioned explicitly.
Am I correct that the "standard" FC 17-64 installation does not have the temperature information in the /proc/acpi directory? My installation has only /proc/acpi/wakeup.
Is the example given by Colors typical - in that the CPU information is associated with acpi?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
|

30th June 2012, 10:59 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 3,855

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Some other questions related to sensors:
An Arch Linux article http://chomaloma.blogspot.com/2009/0...eed-linux.html describes a /etc/sensors.d/sensors.conf file and my "default" FC 17 installation has a man page for sensors.conf, but no sensors.conf file. Would a sensors.conf file have any effect if I created it?
Another Arch Linux oriented article drew my attention to the /sys/class/hwmon directory and the fact that you can get some information from the device by apparently harmless commands like:
Code:
cat /sys/class/hwmon/hwmon0/device/name
I wonder if you can get a temperature report by a similar method.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
|

30th June 2012, 11:49 PM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,616

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Quote:
Originally Posted by tashirosgt
Would a sensors.conf file have any effect if I created it?
|
Yes. And that's what gets created when you run sensors-detect. It only makes sense to have a sensors.conf if you know exactly what hardware the machine has, which is why the sensors-detect program has to be run manually and interactively.
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
|

1st July 2012, 02:20 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 3,855

|
|
|
Re: Find CPU temperature from the command line in FC 17?
Quote:
Originally Posted by RupertPupkin
Yes. And that's what gets created when you run sensors-detect.
|
Apparently the file is named /etc/sensors3.conf in FC 17. That's the only thing I have that looks like a sensor configuration file.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 00:56 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|