Software Archive
Read-only legacy content
17060 Discussions

How to read CPU Temperature on Android platform

MooiYee_L_Intel
Employee
3,708 Views

Hi, anyone have any idea how to read CPU Temperature on Android platform, I read some forum mentioned that we may use rd_msr with root access. Is there any other way we can do this without root access? Thanks.  

Mooi Yee

0 Kudos
3 Replies
Alexander_W_Intel
3,708 Views

Hi,

there is also the directory /sys/devices/platform/coretemp.0/temp?_input on my target. The ? are numbers ranging from 2-5 on my system. Don't ask my why it's starting with 2 to enumerate the cores...

Here is a sample output as shell user not root. 

shell@byt:/sys/devices/platform/coretemp.0 $ cat temp3_input
31000

This is from an Intel reference design. I don't know how the different OEMs handle this. So it might work or might not work. You need to try it on your system.  

Let me know if it helped!

Thanks, Alex

0 Kudos
MooiYee_L_Intel
Employee
3,708 Views

Hi Alex,

Yes, I can read that from my Dell Venue 8 Tablet, the value is 33000, may I know how to convert that to Celsius? Thanks.

Mooi Yee

0 Kudos
Alexander_W_Intel
3,708 Views

Hi, 

sorry for the late answer. Divide the result by 1000. So the CPU in your device has a temperature of 33° Celsius and mine had 31° Celsius.

Hope this helps!

Alex

0 Kudos
Reply