Temp sensors and readings on slack 10.2 need help please
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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.5°C and System = +30°C, 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 10:00 AM.
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.