系统相关
首页 > 系统相关> > linux – cpufreqd不控制温度加显示没有输出

linux – cpufreqd不控制温度加显示没有输出

作者:互联网

由于我的笔记本电脑(一台运行Gentoo Linux的Acer Aspire 5750G并没有最新的内核2.6.39-r3(一种奇怪的wLan硬件使得更新变得困难))因为我试图控制它的速度很快使用服务cpufreqd的情况. cpufrequtils存在且活跃. acpi -t什么都不返回.然而,安装了lm-sensors并且看起来很开心:

Ulyss etc # sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +64.0 C  (high = +86.0 C, crit = +100.0 C)
coretemp-isa-0002
Adapter: ISA adapter
Core 1:       +64.0 C  (high = +86.0 C, crit = +100.0 C)
...

传感器-u产量

Ulyss etc # sensors -u
coretemp-isa-0000
Adapter: ISA adapter
Core 0:
  temp1_input: 63.000
  temp1_max: 86.000
  temp1_crit: 100.000
  temp1_crit_alarm: 0.000

coretemp-isa-0002
Adapter: ISA adapter
Core 1:
  temp1_input: 63.000
  temp1_max: 86.000
  temp1_crit: 100.000
  temp1_crit_alarm: 0.000
...

在网上阅读几个来源并且最后也是如此

man cpufreqd.conf

我创建了/etc/sensors.d/cores.inf

chip "coretemp-isa-0000"
  label temp1 "Core 0"

chip "coretemp-isa-0002"
  label temp1 "Core 1"
...

并在/etc/cpufreqd.conf中修改了一般块

[General]
  pidfile=/var/run/cpufreqd.pid
  poll_interval=2
  verbosity=7 # Was at 4
  enable_remote=1 # Was commented out
  remote_group=root # Was commented out
[/General]

并激活

[sensors_plugin]
sensors_conf=/etc/sensors.d/cores.conf
[/sensors_plugin]

并定义

[Rule]
name=CPU Too Hot
sensor=temp1:60-200
cpu_interval=50-100
profile=Performance Low
[/Rule]

所有这些都完成了我检查了所有传感器读取超过60摄氏度,重新启动cpufreqd并检查

Ulyss etc # cpufreq-info -p
2001000 2001000 performance

由于其他规则可能更强的事实,这仍然可能是正确的(顺便说一句:是否有某种方式来引入权重?可能通过重复规则中的某些行?).

所以我尝试直接以最详细的模式调用cpufreqd获取一些信息:

cpufreqd -V7

即使在指定-f /etc/cpufreqd.conf时也不会产生任何输出.

我有预感,缺少模块可能会有一些麻烦.因此:

Ulyss sensors.d # lsmod
Module                  Size  Used by
fuse                   56971  1 
cpufreq_ondemand        5203  0 
nvidia              12290458  0 
tg3                   104688  0 
wl                   2530575  0 
uvcvideo               52523  0 
videodev               61049  1 uvcvideo
v4l2_compat_ioctl32     7103  1 videodev

另一种预感需要内核选项

--- ACPI (Advanced Configuration and Power Interface) Support
  [*]   Deprecated /proc/acpi files
  [ ]   Deprecated power /proc/acpi directories
   M   ACPI 4.0 power meter
        EC read/write access through /sys/kernel/debug/ec
  [*]   Deprecated /proc/acpi/event support
   *    AC Adapter
   *    Battery
  -*-   Button
  -*-   Video
   *    Fan
  [*]   Dock
  *     Processor
        Processor Aggregator
  *     Thermal Zone
  -*-   NUMA support
  [ ]   Debug Statements
   M    PCI slot detection driver
  -*-   Container and Module Devices (EXPERIMENTAL)
   M    Smart Battery System
        Hardware Error Device
  [ ]   ACPI Platform Error Interface (APEI)

[*] CPU Frequency scaling
  [ ]   Enable CPUfreq debugging
        CPU frequency translation statistics
        Default CPUFreq governor (userspace)  --->
   *    'performance' governor
   *    'powersave' governor
  -*-   'userspace' governor for userspace frequency scaling
   M    'ondemand' cpufreq policy governor
   *    'conservative' cpufreq governor
  *** CPUFreq processor drivers ***
        Processor Clocking Control interface driver
   *    ACPI Processor P-States driver
        AMD Opteron/Athlon64 PowerNow!
        Intel Enhanced SpeedStep (deprecated)
        Intel Pentium 4 clock modulation
  *** shared options ***

到目前为止的情况.现在我的问题:你们中有没有人能说明为什么cpufreq无法改变到更低的频率?或者,同样有趣的是,我如何调试/etc/cpufreqd.conf文件?

解决方法:

我遇到了同样的问题.我也有一台太热的笔记本电脑.

我不认为它做了什么,但我启用了cpufreqd -V7并看到了
正在写入/ var / log / messages的消息.

我禁用了一些未使用的规则,只使用了3个“太热”的节.

[Rule]
name=temp high
sensor=temp6:100-105
cpu_interval=50-100
profile=Powersave Low
[/Rule]

[Rule]
name=temp med
sensor=temp6:95-99
cpu_interval=50-100
profile=Powersave High
[/Rule]

[Rule]
name=temp low
sensor=temp6:87-94
cpu_interval=50-100
profile=Performance Low
[/Rule]

我发现的一个问题是传感器(和内核)报告温度
传感器从0到n,其中cpufreqd指的是从1到(n 1)的温度传感器

标签:temperature,linux,cpu,cpu-frequency
来源: https://codeday.me/bug/20190816/1662552.html