LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   The temperature of the processor (acpi) (https://www.linuxquestions.org/questions/linux-software-2/the-temperature-of-the-processor-acpi-298412/)

tisam 03-06-2005 03:01 PM

The temperature of the processor (acpi)
 
Hi!

I got to know that just by cat /proc/acpi/thermal_zone/THRM/temperature I can check my processor's temp. But when I issue this command I get :
cat /proc/acpi/thermal_zone/THRM/temperature
cat: /proc/acpi/thermal_zone/THRM/temperature: No such file or directory
Which is right, while I don't have anything in /proc/acpi/thermal_zone/, not a single file! I'm using 2.6.11 and I've compiled in my kenrel the following section :

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# 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_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set

So I guess, it should be ok, shouldn't it ? Maybe I've to initialize the thermal_zone somehow?

I'll be grateful for any tips!

randyding 03-06-2005 04:44 PM

I just got this working for the first time myself, so I'm no expert, but here are the steps I made to get it working.

First install packages for lm_sensors, currently I'm using version 2.8.7-2.

Second, run the program sensors-detect. It generates configuration files and places a file called /etc/rc.d/init.d/lm_sensors. Depending on your distribution, you need to make this script run at runlevels 3-5.

Lastly, after you start the service lm_sensors, run the program called sensors, it prints out the temps and voltages.

Hope this is useful.

johnnydangerous 03-15-2005 07:14 AM

my folders are empty too how to deal with that ? do I need acpi=on or what?
although sensors works but not well about CPU it shows about 30C lower than it should


All times are GMT -5. The time now is 09:43 PM.