LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-03-2006, 03:54 PM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Rep: Reputation: 62
Temp sensors and readings on slack 10.2 need help please


Hi all,

I cannot seem to get any temp readings on my slack10.2 rig and was wondering if you all might be able to get me up and going on this.

I reallly just want to see my cpu temperature is the most important to me. I grossly overclock

I was talking to cwwilson in his DRI thread about this and it really doesn't belong there and wanted to start a new one.

motherboard: asus a7n8x-e deluxe which is an nVidia nforce 2 motherboard with an AMD processor.

from my discussion with cw:

Quote:
cat: /proc/acpi/thermal_zone/THTM/temperature: No such file or directory

I tried to modprobe thermal as it wasn't shown in /cat/proc/modules

I looked inthe folder /proc/acpi/thermal_zone on the hard drive and there is absolutely nothing there.

my kernel config for acpi is as follows:
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
CONFIG_ACPI_ASUS=m
CONFIG_ACPI_IBM=m
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=m

I have to 'modprobe button' in /etc/rc.d/rc.modules to allow me to hit the power button and it just send the shutdown command which is nice. So I know the ACPI is working.
and then I have the following modules from his thread:

Quote:
nope. same thing. my /proc/acpi only has two sub-directories.

-embedded_controller
-power_resource

edit add:
in my /lib/moduels/uname -r/kernel/drivers/acpi i have the following modules:
ac.ko
asus_acpi.ko
battery.ko
button.ko
container.ko
fan.ko
ibm_acpi.ko
processor.ko
thermal.ko
toshiba_acpi.ko
vidoe.ko
any ideas how I can get my cpu temperature readings?
 
Old 07-03-2006, 04:17 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Try all the acpi stuff (processor, thermal, etc), as included, not modules

Look at my config here, see what you can do.

Last edited by cwwilson721; 07-03-2006 at 04:22 PM.
 
Old 07-03-2006, 05:29 PM   #3
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
do you have lm-sensors installed?
also the i2c support in the kernel
with the correct hardware support?
 
Old 07-03-2006, 05:52 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Quote:
Originally Posted by kodon
do you have lm-sensors installed?
also the i2c support in the kernel
with the correct hardware support?
Just out of curiosity, why do lm_sensors need to be installed?

On this laptop, I've never had lm_sensors, and I get temp, fan, etc.

What is the advantage of it?

I'm asking, because I have NEVER got it to install.
 
Old 07-03-2006, 06:10 PM   #5
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Isn't lm_sensors for 2.4 kernels? 2.6.x should have all the necessary stuff in it.
 
Old 07-03-2006, 06:21 PM   #6
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
I installed Slackware on about 15 notebooks (Toshiba, Compaq, HP, Medion, Fujistu-Siemens) with different cpus (P3, P4, AMD, Centrino) and prefer the method with an initrd.gz and the default Slackware kernel out of current/testing (no need to recompile the kernel).

ACPI works great on all notebooks, even cpu frequence scaling.

With "mkinitrd -c -k kernel-version -m ac:button:battery:processor:thermal:fan:video" in /boot I create an initrd.gz (I add other modules for SATA and XFS).

A new line in /etc/lilo.conf "initrd = /boot/initrd.gz" after the "image = ..." line and a "lilo -v" make the needed changes to LiLO.

With this method it is no great action to have a full working ACPI with all features on nearly every notebook (I had installed).

I experienced on some notebooks (HP, Toshiba), that an initrd.gz with ACPI kernel modules works great, on the other side without an initrd.gz and loading the kernel modules with /etc/rc.d/rc.modules there are problems (I don't know why this happens on some notebooks).

Fluxx.

P. S.: And I never installed lm_sensors.
 
Old 07-03-2006, 06:28 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Quote:
Originally Posted by Fluxx
With "mkinitrd -c -k kernel-version -m ac:button:batteryrocessor:thermal:fan:video" in /boot I create an initrd.gz
That sounds like just what you need, Fogie.

And kudos to you Fluxx, for showing that. (The squishy sound you hear is my head hitting the wall, saying "Why couldn't I have said that!?")
 
Old 07-04-2006, 10:52 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Only one problem guys -- the Asus A7N8X-E Deluxe isn't in a laptop.

I build comps, and use mostly Asus boards. I've never, I say neavuh got ACPI in any Linux kernel to work properly on a single Asus board -- though it works in Windoze on them all.

The lm_sensors app has nothing to do with ACPI. If you can get it to work, then you're head and shoulders above ACPI for output. But I don't know if there's any way to control anything with lm_sensors.

I do know that now I can see temps, fans, and voltages with lm_sensors where I never saw any of it with ACPI.

Specs on this comp:
Code:
mingdao@silas:~$ cat /etc/slackware-version
Slackware -current

mingdao@silas:~$ uname -a
Linux silas 2.6.17.1 #1 Wed Jun 21 15:15:30 CST 2006 i686 athlon-4 i386 GNU/Linux

mingdao@silas:~$ ls /var/log/packages/lm_sensors-2.9.1_2.6.17-i486-exp
/var/log/packages/lm_sensors-2.9.1_2.6.17-i486-exp

mingdao@silas:~$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 3200+
stepping        : 10
cpu MHz         : 2003.427
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow up ts fid vid ttp
bogomips        : 4008.35

mingdao@silas:~$ cat kernel/linux-2.6.17.1/.config | grep -i acpi
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
# CONFIG_ACPI_SLEEP is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set

mingdao@silas:~$ ls -lh /proc/acpi/
total 0
-r-------- 1 root root 0 2006-07-04 22:33 dsdt
dr-xr-xr-x 2 root root 0 2006-07-04 22:33 embedded_controller/
-r-------- 1 root root 0 2006-07-04 19:24 event
-r-------- 1 root root 0 2006-07-04 22:33 fadt
dr-xr-xr-x 2 root root 0 2006-07-04 22:33 fan/
-r--r--r-- 1 root root 0 2006-07-04 22:33 info
dr-xr-xr-x 2 root root 0 2006-07-04 22:33 power_resource/
dr-xr-xr-x 3 root root 0 2006-07-04 22:33 processor/
dr-xr-xr-x 2 root root 0 2006-07-04 22:33 thermal_zone/

mingdao@silas:~$ ls -lh /proc/acpi/fan/
total 0

mingdao@silas:~$ ls -l /proc/acpi/processor/CPU1/
info        limit       power       throttling

mingdao@silas:~$ cat /proc/acpi/processor/CPU1/info
processor id:            0
acpi id:                 1
bus mastering control:   no
power management:        no
throttling control:      no
limit interface:         no

mingdao@silas:~$ ls -l /proc/acpi/thermal_zone/
total 0

mingdao@silas:~$ sh sys_spewer
This system is using Slackware -current running Kernel Version 2.6.17.1 - Built
on Wed Jun 21 2006 running an AMD Athlon(tm) 64 Processor 3200+ at 2003.427 MHz
It has been running for 22:43:56 up 3:19, 2 users, load average: 0.01, 0.01, 0.00.
In here we have a Marvell Technology Ltd. 88E8001 Gigabit Ethernet Controller,
nVidia Corporation NV34 [GeForce FX 5200], Creative Labs SB Audigy and 2027 bytes
of memory available of which 289 bytes are currently used. The running temperatures
are CPU = +33.5C and System = +30C, there are currently 2 users logged in.

mingdao@silas:~$ hwinfo.static
<snip>
ASUSTeK K8V-X motherboard
So I don't get any fan speeds, CPU temps, etc. from ACPI.

Here's a screenshot to show what GKrellM displays with lm_sensors.

For PCs, I'd recommend lm_sensors over ACPI -- actually, for anywhere you can get it to work.

Last edited by Bruce Hill; 07-04-2006 at 11:00 AM.
 
Old 07-05-2006, 02:19 PM   #9
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
I ran thru your guys advice, and I'll be honest I dont want to waste anymore of your time on this. I truly appreciate your trying to help me.

After spending about 6hrs more hours on this issue alone and so many other things in slackware that are just broken for me, I'm giving up on slackware on my main pc.

Thank you so much for your comments and help.
 
Old 07-06-2006, 06:01 AM   #10
akus
Member
 
Registered: May 2006
Location: Netherlands
Distribution: Slackware64-13.37
Posts: 52

Rep: Reputation: 17
Old_Fogie, don't give up, try more.
I didn't have /proc/acpi/thermal_zone/THTM/temperature TOO,
and I didn't have /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

I asked about it in the thread:
http://www.linuxquestions.org/questi...d.php?t=458764
(and Fluxx gave there way to get ACPI work)

As cwwilson721 suggested, compile IN the kernel all ACPI stuff (NOT as modules!), and try with this kernel, you sould get then your /proc/acpi/thermal_zone/THTM/temperature
(I did get it after doing that)

Or follow Fluxx advise, and create initrd to load ACPI and CPU freq. scaling modules at boot time, he described how to do it.

I compiled IN the kenel CPU scaling stuff (for me -K8 modules) and again, i got my directory:/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor, and
set at boot time in my rc.local either "ondemand" or "conservative" scling governor

I believe it is worth to try to get it work for you.
good luck.

Last edited by akus; 07-06-2006 at 06:04 AM.
 
Old 07-08-2006, 03:45 AM   #11
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
hey kubuntu puts this in their linux..

http://www.nt.phys.kyushu-u.ac.jp/sh.../download.html

and it worked on my pc, it goes straight to the chips even better than linux thru software ever could do as I recall even motherboard monitor in windows dont' do so good.

so this goes straight to the mobo...no kernel stuff

anyway a quick make package and done for slackware now

it's good to spend 10$ more and get an ASUS, they give real chips

Last edited by Old_Fogie; 07-08-2006 at 03:46 AM.
 
Old 07-08-2006, 09:40 AM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
You made a package?
 
Old 07-08-2006, 03:47 PM   #13
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
hahah, yes I can make packages now can you believe it LOL
 
Old 07-08-2006, 07:38 PM   #14
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Original Poster
Rep: Reputation: 62
question: i just made a new kernel 2.6.17 and compile those items in with "yes" and not "module"

any command in console I can type to see if I got cpu temperature readings.

note that the xmbmon still works, as it's kernel independent, but just wondering how I might do this in console the linux software way.
 
Old 07-08-2006, 07:41 PM   #15
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Go into /proc/acpi and 'cat' around, you may find some interesting stuff....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
motherboard temp sensors, shoudl i trust them? santaliqueur Linux - Hardware 10 09-10-2005 09:27 AM
Confused: gkrellm and temp readings phil.d.g Linux - General 2 07-30-2005 11:22 AM
Sensors - cpu temp, etc - Write this rc* file, which one? xodustrance Linux - Software 2 04-25-2004 09:30 PM
CPU temp. sensors for A7N8X/Athlon 2500+ Zoombie Linux - Hardware 0 08-27-2003 11:19 AM
linxu temp monitor/sensors k3v0 Linux - Software 1 11-30-2002 12:01 AM


All times are GMT -5. The time now is 08:45 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration