You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行Intel Powerclamp比率设置命令时报错:目录不存在

解决Intel Powerclamp设置cur_state时“Directory nonexistent”的错误

你遇到的问题根源是官方文档里的cooling_device80是特定系统的示例编号,而你的系统里实际的Intel Powerclamp设备编号并不是80。下面是一步步的解决方法:

1. 找出系统中对应的Intel Powerclamp冷却设备

执行以下命令遍历所有冷却设备,查看它们的类型:

for i in /sys/class/thermal/cooling_device*; do echo "$i: $(cat $i/type)"; done

这个命令会输出类似这样的结果(示例):

/sys/class/thermal/cooling_device0: intel_powerclamp
/sys/class/thermal/cooling_device1: intel_cstate
/sys/class/thermal/cooling_device2: processor

找到标注为intel_powerclamp的那一行,对应的cooling_deviceX就是你需要操作的设备(比如上面示例里的cooling_device0)。

2. 使用正确的设备路径设置cur_state

假设你找到的设备是cooling_device0,执行以下命令设置15%的限制比率:

sudo sh -c "echo 15 > /sys/class/thermal/cooling_device0/cur_state"

替换命令中的cooling_device0为你实际找到的设备编号即可。

3. 验证设置是否生效

执行以下命令查看当前的cur_state值,确认是否设置成功:

cat /sys/class/thermal/cooling_deviceX/cur_state

同样,把X替换为你找到的设备编号。

补充说明

/sys/class/thermal/下的冷却设备编号是动态分配的,不同硬件、不同内核版本的系统都会有差异,所以官方文档里的示例编号不能直接复用,必须先确认自己系统里的对应设备。

内容的提问来源于stack exchange,提问作者Sarah Szabo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 04:08:49