05-01-2021, 07:21 AM
(04-22-2021, 05:20 AM)Fish Wrote: A small manual for noobs like me to lower the temperature values (please correct me if I made a mistake):
on mobian:
First install sysfsutils: sudo apt install sysfsutils
Check service status: systemctl status sysfsutils
Ensure the service is enabled at boot: systemctl is-enabled sysfsutils
Change the values (like the post above in millidegree Celsius), sudo password is needed:
echo -e "class/thermal/thermal_zone0/trip_point_0_temp = 45000\nclass/thermal/thermal_zone0/trip_point_1_temp = 65000\nclass/thermal/thermal_zone0/trip_point_2_temp = 90000" | sudo tee /etc/sysfs.d/throttling.conf
Restart sysfsutil: sudo systemctl restart sysfsutils
Expanding the guide above by adding a more "modern" (read: "systemd-centric") way of doing the same thing using systemd's tmpfiles, something that Arch and Manjaro users need to do due to the lack of a sysfsutils init script or service unit. I'm sure there's also a way to do this using udev rules, but I'm not that familiar with those (yet ).
You'll want to create a configuration file in "/etc/tmpfiles.d/". Using the one-liner from the original post, we would have:
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 /etc/tmpfiles.d/throttling.conf
Your "/etc/tmpfiles.d/throttling.conf" file should then look like this:
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
Now either reboot your phone or run "sudo systemd-tmpfiles --create" to apply the settings.