Joca
Joca

Reputation: 45

Get GPU temperature in Android

I'm developing an Android application to manage GPU temperature. In the same way I read CPU temperatura (/sys/devices/virtual/thermal/thermal_zone0/temp) I was searching something to get the temperature for GPU in Android but coouldn't find anything.

My question is: It is possible get temperature from GPU in Android?

If it is possible, where can I find the file which have this information?

Thanks.

Upvotes: 3

Views: 4163

Answers (3)

Papa Hong
Papa Hong

Reputation: 1

Obtain the device owner permission of the app with https://www.sisik.eu/blog/android/dev-admin/device-health-monitoring And utilize "hardwarePropertiesManager.getDeviceTemperatures(HardwarePropertiesManager.DEVICE_TEMPERATURE_GPU, HardwarePropertiesManager.TEMPERATURE_CURRENT)" to get GPU temperature.

Upvotes: 0

Guest
Guest

Reputation: 71

In system/etc/ you'll find a thermal configuration file that might show which sensor is used to measure the gpu temperature.

In my case oneplus-one it's also "/sys/class/thermal/thermal_zone10/temp"

Upvotes: 1

vivekjindal20
vivekjindal20

Reputation: 56

"/sys/class/thermal/thermal_zone10/temp"

Took me a lot of time to figure out because I was unable to find any help online regarding this.

I was able to find out that sensor10 belongs to GPU but I am unable to find that file again which contains the value because digging is too deep and complicated.

Upvotes: 4

Related Questions