PinePhone Thermal Tweaks

From PINE64
Revision as of 15:47, 26 April 2021 by Dsimic (talk | contribs) (→‎Under Linux: Better and more accurate wording)
Jump to navigation Jump to search

This page explains how to read the thermal sensor data, and how to read and change the default settings.

Under Linux

Warning: Setting wrong values for the thermal trip points poses a risk. These instructions are directed towards expert-level users and developers.

Thermal management of the PinePhone SoC is handled by the thermal framework of the Linux kernel. Depending on the Linux distribution used on a PinePhone, the default settings may differ. It may be advised to lower the settings (i.e. the thermal trip point tmperatures) to prevent the phone components from being damaged by excessive heat.

Current CPU temperature can be displayed using the following command:

cat /sys/class/thermal/thermal_zone0/temp

The unit for all numeric values is millidegree Celsius. To read the thermal trip point types and current trip point temperatures, use the following:

grep . /sys/class/thermal/thermal_zone0/trip_point_*_temp
grep . /sys/class/thermal/thermal_zone0/trip_point_*_type

The possible names and associated meanings for the trip point types are the following:

  • "active" – a trip point to enable active cooling
  • "passive" – a trip point to enable passive cooling
  • "hot" – a trip point to notify emergency
  • "critical" – hardware not reliable

The values for the trip point temperatures can be lowered individually, but make sure the trip points have the correct number for their corresponding trip type, e.g. don't swap the values for the first and the second trip point. Make sure not to set values higher than 110000 (i.e. 110 degrees Celsius, which is the default value) for the third threshold, as it may cause damage to the phone. Use the following commands:

echo 55000 > /sys/class/thermal/thermal_zone0/trip_point_0_temp
echo 75000 > /sys/class/thermal/thermal_zone0/trip_point_1_temp
echo 90000 > /sys/class/thermal/thermal_zone0/trip_point_2_temp

Further information can be found in these documents from the Linux kenel source: