linux-surface/contrib/thermald
2023-12-01 21:10:30 -05:00
..
surface_laptop_1 contrib/thermald: Be consistent about formatting 2021-08-25 14:02:30 +02:00
surface_laptop_4a Add Thermald Conf FIle for AMD Surface Laptop 4 (#572) 2021-09-25 14:38:24 +02:00
surface_laptop_go_1 a huge help on the laptop go gen 1 as well 2023-12-01 21:10:30 -05:00
surface_laptop_go_2 contrib/thermald: Add config for the Surface Laptop Go 2 2023-03-25 21:45:03 -04:00
surface_pro_5 update readme 2021-09-03 00:27:25 +08:00
surface_pro_7 contrib/thermald: Misc markdown style fixes 2023-08-12 15:18:06 +02:00
README.md Change back to suggesting systemctl, note down quirk 2022-10-20 19:14:49 +01:00
thermal-conf.xml contrib/thermald: Be consistent about formatting 2021-08-25 14:02:30 +02:00
thermal-cpu-cdev-order.xml contrib/thermald: Be consistent about formatting 2021-08-25 14:02:30 +02:00

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.

More complex and device specific examples can be found in subdirectories If any subdirectory does not have both files or any dedicated instructions, use the missing files provided here and/or follow these instructions.

Installation

Both XML files (thermal-conf.xml and thermal-cpu-cdev-order-xml) 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.

Note that with systemctl edit, before the modified ExecStart line, you should add a new line containing ExecStart= and nothing on the right, like this:

ExecStart=
ExecStart=<modified line>

This instructs to replace the existing ExecStart instead of adding a new one. Otherwise, you may get an error "Unit thermald.service has a bad unit file setting", and the command systemctl status thermald.service may prompt a message "Service has more than one ExecStart= setting".