我的笔记本
sudo dmidecode -t1
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x000E, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 2350B58
Version: ThinkPad T430
Serial Number: PBVVBLH
UUID: cdcb8a01-5190-11cb-9490-98976e1f3194
Wake-up Type: Power Switch
SKU Number: LENOVO_MT_2350
Family: ThinkPad T430
我的系统上没有 tlp。我正在运行 Lubuntu
Okt 31 13:52:30 Guilmon thermald[743]: error: could not parse file /etc/thermald/thermal-conf.xml
我四处搜寻,发现Thinkpad T430的thermald配置文件
重新启动 thermald.service 后,出现以下错误。
thermald[6496]: sysfs write failed /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/enabled
美好的
ls -al /sys/devices/virtual/powercap/intel-rapl/enabled
-rw-r--r-- 1 root root 4096 Okt 31 19:30 /sys/devices/virtual/powercap/intel-rapl/enabled
问题是,我必须在关闭系统之前停止 thermald。
dpkg -l| grep sensor
ii iio-sensor-proxy 2.5-0ubuntu1 amd64 IIO sensors to D-Bus proxy
ii libqt5sensors5:amd64 5.12.2-1 amd64 Qt Sensors module
ii libsensors-config 1:3.5.0-3ubuntu1 all lm-sensors configuration files
ii libsensors5:amd64 1:3.5.0-3ubuntu1 amd64 library to read temperature/voltage/fan sensors
答案1
.xml 文件中不能有制表符。<ThermalSensor>
前面有两个制表符。使用以下更正后的/etc/thermald/thermal-conf.xml
文件...
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>T430</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalSensors>
<ThermalSensor>
<Type>pkg-temp-0</Type>
<Path>/sys/class/thermal/thermal_zone0/temp</Path>
<AsyncCapable>1</AsyncCapable>
</ThermalSensor>
</ThermalSensors>
<ThermalZones>
<ThermalZone>
<Type>cpu package</Type>
<TripPoints>
<TripPoint>
<SensorType>pkg-temp-0</SensorType>
<Temperature>90000</Temperature>
<type>max</type>
<ControlType>PARALLEL</ControlType>
<CoolingDevice>
<index>1</index>
<type>rapl_controller</type>
<influence> 50 </influence>
<SamplingPeriod> 10 </SamplingPeriod>
</CoolingDevice>
<CoolingDevice>
<index>2</index>
<type>intel_pstate</type>
<influence> 40 </influence>
<SamplingPeriod> 10 </SamplingPeriod>
</CoolingDevice>
<CoolingDevice>
<index>3</index>
<type>intel_powerclamp</type>
<influence> 30 </influence>
<SamplingPeriod> 10 </SamplingPeriod>
</CoolingDevice>
<CoolingDevice>
<index>4</index>
<type>cpufreq</type>
<influence> 20 </influence>
<SamplingPeriod> 10 </SamplingPeriod>
</CoolingDevice>
<CoolingDevice>
<index>5</index>
<type>Processor</type>
<influence> 10 </influence>
<SamplingPeriod> 10 </SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
</ThermalZones>
</Platform>
</ThermalConfiguration>