You could display it with Floating Text action but unfortunately this information isn't available with MD.I am using Total Launcher and would like to display the value of the device's CPU temperature in real time at a specific location (see attached image). Please tell me how to set the variable and if there is an example similar to this.
View attachment 7758
Is it possible to set a variable to read CPU temperature? How should I set that variable? (Example: Set Variable > [?])You could display it with Floating Text action but unfortunately this information isn't available with MD.
You could try to make a Feature Request in this forum.
Unfortunately no. Not yet. Maybe one day...Is it possible to set a variable to read CPU temperature? How should I set that variable? (Example: Set Variable > [?])
Thanks.Unfortunately no. Not yet. Maybe one day...
Unfortunately I get the following message: "cat: /sys/class/thermal/thermal_zone7/temp: No such file or directory"An-Nyong, @Tonykim,
It is unknown whether it will work, but the LinuC qualification reference
( https://linuc.org/study/knowledge/452/ )
says that there is a set of files in the Linux standard that monitor the temperature of each core of the CPU, and you can get the temperature by referencing those files with the Cat command.
I have created a sample, could you try it?
Hi,@Dm114,Unfortunately I get the following message: "cat: /sys/class/thermal/thermal_zone7/temp: No such file or directory"
No @LinerSeven, my mobile has 8 cores and, whatever the number of loops the message is the same.Hi,@Dm114,
I think it's because your mobile phone's CPU probably has 6 cores.
If you set the number of loops to 6, it should work.
Best Regards,
Liner Seven
This one worked on Redmi Note 11.An-Nyong, @Tonykim,
It is unknown whether it will work, but the LinuC qualification reference
( https://linuc.org/study/knowledge/452/ )
says that there is a set of files in the Linux standard that monitor the temperature of each core of the CPU, and you can get the temperature by referencing those files with the Cat command.
I have created a sample, could you try it?
Ok, let me have a look...Hi, @Dm114,
I see, the reference page says that the location of the file changes depending on the environment, so you need to check under /proc/acpi/thermal_zone on your mobile phone.
For Example,
Target File Path
intel /sys/devices/platform/coretemp.0/temp[0-9]_input
i.mx6 /sys/class/thermal/thermal_zone[0-9]/temp
RaspberryPi /sys/class/thermal/thermal_zone[0-9]/temp
The other way to use lm_sensors is suggested in the reference page for the Linux case, but I can't get lm_sensors to work in Termux.
Best Regards,
Liner Seven,
Sorry but none of those exist or are accessible on my device...Hi, @Dm114,
I see, the reference page says that the location of the file changes depending on the environment, so you need to check under /proc/acpi/thermal_zone on your mobile phone.
For Example,
Target File Path
intel /sys/devices/platform/coretemp.0/temp[0-9]_input
i.mx6 /sys/class/thermal/thermal_zone[0-9]/temp
RaspberryPi /sys/class/thermal/thermal_zone[0-9]/temp
The other way to use lm_sensors is suggested in the reference page for the Linux case, but I can't get lm_sensors to work in Termux.
Best Regards,
Liner Seven,
Thanks for the advice because the one I use cannot access these folders. I'll try with ES explorer but I'm not so fan loading a bunch of apps. So I'm gonna do it for fun, just to see what "hidden" stuff we could find...@Dm114 you should use a file explorer to check /sys/class/thermal
It is accessible to me and I can see the thermal_zone folders.
ZarchiverES explorer cannot access /sys folder either
What file explorer do you use?
Have you tried Total Commander? It is free with no ads and very powerful!Anche ES explorer non può accedere alla cartella / sys
What file explorer do you use?
No, I'm (proudly) stuck to Android 9!If you have Android 10 or later, you may be able to get data withadb shell dumpsys thermalservice
.
The notation is different for each device, so you can use grep to narrow down the list to make it easier to read.