Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a script which logs information about my Toshiba laptop, such as its current temperature, and sends that information to Pachube. Recently, I upgraded to Ubuntu 11.11 and the Kernel 3.0 series and my script stopped working.

The temperature file, which used to be in /proc/acpi/thermal_zone/TZ01/temperature now no longer exists. There is a relevant directory at /proc/acpi/toshiba/ but its contents are as follows:

$ ls
fan  keys  lcd  version  video
$ cat *
running:                 0
force_on:                0
hotkey_ready:            0
hotkey:                  0x0000
brightness:              7
brightness_levels:       8
driver:                  0.19
proc_interface:          1
lcd_out:                 0
crt_out:                 0
tv_out:                  0
$

So, no temperature. Does anyone know a way to get this information? Is it still in /proc/ somewhere?

share|improve this question
    
I realise, btw there are other ways to do this, for example using the lm-sensors package (see my other question), but I'm really looking for a method which doesn't rely on external packages. –  snim2 Jan 21 '12 at 14:26
add comment

1 Answer 1

up vote 2 down vote accepted

I am able to find the temperature for my Toshiba laptop, expressed in 1/1000 of a degree Celsius, in _/sys/class/thermal/thermal_zone0/temp_

cat /sys/class/thermal/thermal_zone0/temp
51000

and acpi -t returns:
Thermal 0: ok, 51.0 degrees C

My system only has a thermal_zone 0 but I suppose other systems may have more than one zone.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.