Results 1 to 4 of 4
In my system, the temperature of the CPU can be known from the file, /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp . But I have found that not all systems have this file. Is there a ...
- 06-06-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
Get temperature of CPU?
In my system, the temperature of the CPU can be known from the file, /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp . But I have found that not all systems have this file. Is there a generic method to get the temperature. Installing a package for this purpose won't be a solution as I'm building a simple gnome-shell extension. Something that comes along with the kernel would be perfect.
What could be other files that can possibly store temperature information, so that it would work on most atleast if not all? Any help like the file that stores temperature on your particular system only would also be highly appreciated.
github.com/xtranophilist/gnome-shell-extension-cpu-temperature/
Thank you in advance.
- 06-06-2011 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Review the path - ACPI support by the system BIOS and Linux install is required to get this kind of info. If the system (HW) or OS doesn't support it, you will not get the ACPI information.Code:/sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp
- 06-06-2011 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
Thank you for the information.
That is why I am asking for a more general way!
I could make the script look for all the possible files.
Like If it doesn't find that file since acpi is not available, look for other possible files.
- 06-06-2011 #4Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Then you will not have an interface that can query the HW for this info.Like If it doesn't find that file since acpi is not available
ACPI support by the system BIOS and Linux install is required to get this kind of info.


Reply With Quote