Update README.md

This commit is contained in:
Ruslan Bay 2023-08-10 12:54:21 +03:00 committed by GitHub
parent 45b78f839c
commit dce592dc9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,51 +1,11 @@
# Using thermald to avoid thermal throttling
Install `thermald` for your distro, on many distros it might be installed by default.
Create the config file `/etc/thermald/thermal-conf.xml` and add the following content to the file:
```xml
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>Surface Pro 7 Thermal Workaround</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalZones>
<ThermalZone>
<Type>cpu</Type>
<TripPoints>
<TripPoint>
<SensorType>x86_pkg_temp</SensorType>
<Temperature>65000</Temperature>
<type>passive</type>
<ControlType>SEQUENTIAL</ControlType>
<CoolingDevice>
<index>1</index>
<type>rapl_controller</type>
<influence>100</influence>
<SamplingPeriod>10</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
</ThermalZones>
</Platform>
</ThermalConfiguration>
```
Depending on your ambient temperature you might want to lower the `<Temperature>` line to make thermald kick in more aggressively. (65000 = 65°C)
Create the file `/etc/thermald/thermal-cpu-cdev-order.xml` with the following content:
```xml
<CoolingDeviceOrder>
<CoolingDevice>rapl_controller</CoolingDevice>
<CoolingDevice>intel_pstate</CoolingDevice>
<CoolingDevice>intel_powerclamp</CoolingDevice>
<CoolingDevice>cpufreq</CoolingDevice>
<CoolingDevice>Processor</CoolingDevice>
</CoolingDeviceOrder>
```
1. Install `thermald` for your distro, on many distros it might be installed by default
2. Place thermal-conf.xml into the `/etc/thermald/` directory
3. Depending on your ambient temperature you might want to lower the `<Temperature>` line to make thermald kick in more aggressively. (65000 = 65°C)
4. Place thermal-cpu-cdev-order.xml into the `/etc/thermald/` directory
5. `sudo systemctl restart thermald`
# Making Fedora respect your config files
Fedora uses the `--adaptive` option by default, thus ignoring your config files. This might also apply to some other distros.
Edit `/usr/lib/systemd/system/thermald.service` and remove `--adaptive` from the `ExecStart=` line. Then do a `systemctl daemon-reload` so systemd realizes the change. thermald should then respect your configuration files.
Edit `/usr/lib/systemd/system/thermald.service` and remove `--adaptive` from the `ExecStart=` line. Then do a `systemctl daemon-reload` so systemd realizes the change. Thermald should then respect your configuration files.