mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
feat: spi thermal conf
This commit is contained in:
parent
e8232c132a
commit
7d87afd10b
2 changed files with 33 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
# This module is intended to support the Surface Pro range, specifically those with Intel CPUs.
|
# This module is intended to support the Surface Pro range, specifically those with Intel CPUs.
|
||||||
# It's expected it will work equally well on many other Surface models, but they may need further
|
# It's expected it will work equally well on many other Surface models, but they may need further
|
||||||
|
@ -15,4 +15,9 @@
|
||||||
|
|
||||||
microsoft-surface.ipts.enable = true;
|
microsoft-surface.ipts.enable = true;
|
||||||
microsoft-surface.surface-control.enable = true;
|
microsoft-surface.surface-control.enable = true;
|
||||||
|
|
||||||
|
services.thermald = lib.mkDefault {
|
||||||
|
enable = true;
|
||||||
|
configFile = ./thermal-conf.xml;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
27
microsoft/surface/surface-pro-intel/thermal-conf.xml
Normal file
27
microsoft/surface/surface-pro-intel/thermal-conf.xml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<ThermalConfiguration>
|
||||||
|
<Platform>
|
||||||
|
<Name>Surface Pro Intel 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>
|
Loading…
Reference in a new issue