LinuxQuestions.org
Visit Jeremy's Blog.
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 09-08-2014, 11:09 PM   #1
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Get temperature of AMD Phenom II Slackware 14.1


I am running Slackware 14.1 (32 bit) and FreeBSD-10 (64 bit) on different drives of this machine.

I decided to set up conky on FreeBSD a couple of days ago and had a problem reading CPU temps, resolved by use of amdtemp kernel module.

I decided while at it to add conky to the Slackware instance, but have been unable to get CPU temperature(s) by any method.

Let me pre-answer some questions by a simple Q&A...

Is lm_sensors installed?
Code:
YES
/var/log/packages/lm_sensors-3.3.4-i486-1

# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +40.0°C  (crit = +75.0°C)
The red hilight above is not CPU temperature and never changes. I get the same line under FreeBSD on this machine - not CPU temp.

Did you run sensors-detect? If so, what did it say?
Code:
YES
# sensors-detect
...
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
Module cpuid loaded successfully.
...
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
...
Is the k10temp module running?
Code:
# lsmod |grep temp
k10temp                 2266  0
hwmon                   1021  2 k10temp,thermal_sys
Which should handle this CPU from what I have found online.

Have you tried the coretemp module?

Code:
# modprobe -v coretemp
modprobe: ERROR: could not insert 'coretemp': No such device
insmod /lib/modules/3.10.17-smp/kernel/drivers/hwmon/coretemp.ko
Are you running a custom kernel?
No, this is the released generic-3.10.17-smp kernel

Code:
Linux deimos 3.10.17-smp #1 SMP Wed Oct 23 17:04:08 CDT 2013 i686
AMD Phenom(tm) II X2 550 Processor AuthenticAMD GNU/Linux
What family is the processor?
Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : AMD Phenom(tm) II X2 550 Processor
cpu MHz         : 3100.000
power management: ts ttp tm stc 100mhzsteps hwpstate

processor       : 1
...
I have also catted around /sys/... and /proc/... to no avail.

Have you tried the amdtemp module?

Quote:
No. As far as I can tell it is not available for Linux, seems to be BSD only.
Have I missed something obvious? Is there another method that I am not aware of?

All help appreciated!

Last edited by astrogeek; 09-08-2014 at 11:10 PM. Reason: tpos, typs, typos...
 
Old 09-09-2014, 01:32 AM   #2
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
I use the huge kernel.

I have this

Quote:
-root-> uname -a
Linux Athena 3.14.17 #2 SMP Mon Aug 25 14:15:36 CDT 2014 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux
and this

Quote:
-root-> sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.30 V (min = +0.80 V, max = +1.60 V)
+3.3V Voltage: +3.36 V (min = +2.97 V, max = +3.63 V)
+5V Voltage: +5.14 V (min = +4.50 V, max = +5.50 V)
+12V Voltage: +11.97 V (min = +10.20 V, max = +13.80 V)
CPU Fan Speed: 1328 RPM (min = 600 RPM, max = 7200 RPM)
Chassis Fan Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
Chassis2 Fan Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
Power Fan Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
CPU Temperature: +36.0°C (high = +60.0°C, crit = +95.0°C)
MB Temperature: +35.0°C (high = +45.0°C, crit = +75.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +23.0°C (high = +70.0°C)
(crit = +90.0°C, hyst = +85.0°C)
and temperature can vary.

it seems that the difference with you is "atk0110-acpi-0"
 
1 members found this post helpful.
Old 09-09-2014, 07:13 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Quote:
AMD Phenom(tm) II X2 550 Processor
Temperature should be supplied by the k10temp.ko kernel module. https://www.kernel.org/doc/Documentation/hwmon/k10temp
From that link
Quote:
All these processors have a sensor, but on those for Socket F or AM2+,
the sensor may return inconsistent values (erratum 319). The driver
will refuse to load on these revisions unless you specify the "force=1"
module parameter.

Due to technical reasons, the driver can detect only the mainboard's
socket type, not the processor's actual capabilities. Therefore, if you
are using an AM3 processor on an AM2+ mainboard, you can safely use the
"force=1" parameter.

There is one temperature measurement value, available as temp1_input in
sysfs.
Perhaps you need the 'force=1' option if you have that processor in a Socket AM2+
This might also explain the sensors-detect output.

Last edited by allend; 09-09-2014 at 07:21 AM.
 
3 members found this post helpful.
Old 09-09-2014, 12:33 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263

Original Poster
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Thanks Toutatis and allend!

The force=1 parameter did the trick!

Slackware now reports temps ~50 deg C at idle, which is probably correct. FreeBSD reports ~ 62 deg C at idle which I was concerned about. The BIOS shows ~72 deg C which I thought could not possibly be correct. I'll satisfy myself which is most correct and try to offset or ignore the others.

Solved for now!

Last edited by astrogeek; 09-09-2014 at 06:39 PM. Reason: Corrected spelling of Toutatis
 
  


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
Reasonable temperature (range) for AMD Phenom II X4 965 Meson Linux - Hardware 22 05-11-2010 08:30 PM
LXer: AMD Phenom II X3 On Linux LXer Syndicated Linux News 0 05-26-2009 01:20 PM
Phenom II, and Newer AMD chipsets cloud9repo Linux - Hardware 10 03-09-2009 05:38 AM
AMD Phenom™ X4 Quad-Core enyawix Linux - Hardware 6 01-13-2009 08:13 AM
Installing Slackware on system's using AMD Phenom cpu's Snarf53563 Linux - Hardware 23 09-05-2008 11:08 AM

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

All times are GMT -5. The time now is 03:02 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