How to apply thermal zones values
#1
Lately I find my Mobian CE PP becoming pretty warm. Earlier, I had several Apps running at once and the phone didn't get hot at all. Now, I only got the terminal running and even if I turn off the screen, the phone starts getting hot... What's happening?

I found this thread on that issue.

I think there should be a dummy manual for each OS on how to apply save thermal values in order to protect screens. I'm sorry if there is one and I simply didn't find it.

I tried to apply those values by following these steps:

1. Installing sysfsutils: sudo apt install sysfsutils
2. Checking status: systemctl status sysfsutils -> active
3. Checking if enabled at startup: systemctl is-enabled sysfsutils -> enabled
4. Setting values:
Code:
echo -e "w /sys/class/thermal/thermal_zone0/trip_point_0_temp - - - - 45000\nw /sys/class/thermal/thermal_zone0/trip_point_1_temp - - - - 65000\nw /sys/class/thermal/thermal_zone0/trip_point_2_temp - - - - 90000" | sudo tee /usr/lib/sysctl.d/throttling.conf
5. Applying values: reboot

throttling.conf is there with expected content:
Code:
w /sys/class/thermal/thermal_zone0/trip_point_0_temp - - - - 45000
w /sys/class/thermal/thermal_zone0/trip_point_1_temp - - - - 65000
w /sys/class/thermal/thermal_zone0/trip_point_2_temp - - - - 90000

But the settings do not get loaded.

Code:
grep . /sys/class/thermal/thermal_zone0/trip_point_*_temp
always returns the standard values.

So how do I get the lower values applied and loaded?

Thank you very much!


EDIT:

If I change the values by hand like

Code:
echo 45000  > /sys/class/thermal/thermal_zone0/trip_point_0_temp
echo 65000  > /sys/class/thermal/thermal_zone0/trip_point_1_temp
echo 90000  > /sys/class/thermal/thermal_zone0/trip_point_2_temp
it results in "no permission". I can't even do that as sudo, I need to be su.

Is that maybe the reason, the changes don't apply? How can I get around that?
  Reply
#2
Try this (with perhaps less aggresive values):
echo -e "class/thermal/thermal_zone0/trip_point_0_temp = 40000\nclass/thermal/thermal_zone0/trip_point_1_temp = 50000\nclass/thermal/thermal_zone0/trip_point_2_temp = 60000" | sudo tee /etc/sysfs.d/throttling.conf

sudo systemctl restart sysfsutils

check with: grep . /sys/class/thermal/thermal_zone0/trip_point_*_temp

This does not work well with the PPP, because the trip point types are passive or critical (phone shuts down at that temp.).
  Reply
#3
I don't really get why, but it works! Thanks!

I tried that already with "=" instead of "----". Maybe it was the file path?

However, I'm glad I got that working now.
  Reply
#4
(04-13-2022, 09:54 AM)jojuma Wrote: I don't really get why, but it works! Thanks!

I tried that already with "=" instead of "----". Maybe it was the file path?

However, I'm glad I got that working now.

I'm glad it is working Smile
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Weird magnetometer values devrtz 9 9,477 07-29-2020, 10:40 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)