Kernel-Modules

如何使用選項 –ignore-cpuid-check 執行 thermod

  • August 1, 2021

我收到消息:

thermald: Unsupported cpu model, use thermal-conf.xml file or run with --ignore-cpuid-check

sensors-detect建議coretempw83627hf哪些安裝在/etc/module.

  1. 嘗試

如果我執行sudo thermald --no-daemon --ignore-cpuid-check | tee thermald.log,我會得到:

NO RAPL sysfs present
Polling mode is enabled: 4
  1. 嘗試

我將 更改為此處thermal-conf.xml的範例。跑步,我得到:sudo thermald --no-daemon | tee thermald.log

NO RAPL sysfs present
10 CPUID levels; family:model:stepping 0x6:f:6 (6:15:6)
Need Linux PowerCap sysfs
Unsupported cpu model, using thermal-conf.xml only
Polling mode is enabled: 4
sensor id 2: No temp sysfs for reading raw temp
XML zone: invalid sensor type pkg-temp-0
Zone update failed: unable to bind

因此,最簡單的方法似乎是使用選項執行 thermod --ignore-cpuid-check。如何使用該選項執行 thermod --ignore-cpuid-check?還是有另一種方法來獲取探測器 xml 配置?

如果使用 systemd

/lib/systemd/system/thermald.service通過執行編輯

sudo systemctl edit --full thermald.service

在末尾添加選項ExecStart

[Unit]
Description=Thermal Daemon Service

[Service]
Type=dbus
SuccessExitStatus=1
BusName=org.freedesktop.thermald
ExecStart=/usr/sbin/thermald --no-daemon --dbus-enable

[Install]
WantedBy=multi-user.target
Alias=dbus-org.freedesktop.thermald.service

如果使用暴發戶(Ubuntu 15.04 以下

在 Ubuntu 中,您可以在以下位置添加選項/etc/init/thermald.conf

# thermald - thermal daemon
# Upstart configuration file
# Manages platform thermals

description     "thermal daemon"

start on runlevel [2345] and started dbus
stop on stopping dbus

#
# don't respawn on error
#
normal exit 1

respawn

#
# consider something wrong if respawned 10 times in 1 minute
#
respawn limit 10 60

exec thermald --no-daemon --dbus-enable

在最後一行添加選項。

引用自:https://unix.stackexchange.com/questions/340994