浏览代码

Add example thermald configuration

Maximilian Luz 4 年之前
父节点
当前提交
941b924f0a
共有 3 个文件被更改,包括 49 次插入0 次删除
  1. 14 0
      contrib/thermald/README.md
  2. 27 0
      contrib/thermald/thermal-conf.xml
  3. 8 0
      contrib/thermald/thermal-cpu-cdev-order.xml

+ 14 - 0
contrib/thermald/README.md

@@ -0,0 +1,14 @@
+# Example Thermald Configuration
+
+This is a minimal thermald configuration, which sets the maximum sustained CPU temperature to about 65°C.
+Modify the `<Temperature>65000</Temperature>` value to adapt that to your liking.
+
+Tested on a Surface Book 2, other devices may need adapting, see e.g. the [thermald man page](http://manpages.ubuntu.com/manpages/trusty/man5/thermal-conf.xml.5.html).
+
+## Installation
+
+Both XML files need to be placed in the `/etc/thermald/` directory.
+
+Newer thermald versions attempt to automatically load the configuration from ACPI.
+If you want to use a manual configuration with such a version, you may need to remove the `--adaptive` option from the systemd service `ExecStart` line.
+You can do so by running `sudo systemctl edit thermald.service`.

+ 27 - 0
contrib/thermald/thermal-conf.xml

@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<ThermalConfiguration>
+   <Platform>
+      <Name>Intel Powered Laptop</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>5</SamplingPeriod>
+                  </CoolingDevice>
+               </TripPoint>
+            </TripPoints>
+         </ThermalZone>
+      </ThermalZones>
+   </Platform>
+</ThermalConfiguration>

+ 8 - 0
contrib/thermald/thermal-cpu-cdev-order.xml

@@ -0,0 +1,8 @@
+<CoolingDeviceOrder>
+    <!-- Specify Cooling device order -->
+    <CoolingDevice>rapl_controller</CoolingDevice>
+    <CoolingDevice>intel_pstate</CoolingDevice>
+    <CoolingDevice>intel_powerclamp</CoolingDevice>
+    <CoolingDevice>cpufreq</CoolingDevice>
+    <CoolingDevice>Processor</CoolingDevice>
+</CoolingDeviceOrder>