我试图控制Ubuntu 16.04上的MSI GS60-2PC笔记本电脑的风扇速度。
但是pwmconfig
报告说
There are no pwm-capable sensors modules installed
我非常确定可以控制这些风扇,因为Windows上的某些实用程序可以控制它们。
我已经运行sensors-detect
(以root用户身份),如下所示:
yes | sensors-detect
看来只能检测到“ coretemp”。这是完整的结果。
然后pwmconfig
(作为根):
pwmconfig
而且我得到了著名的信息 There are no pwm-capable sensors modules installed
。
acpi_osi=Linux
acpi_osi=!Windows 2012
acpi_enforce_resources=lax
sensors
命令后会得到什么acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
temp3: +50.0°C (crit = +100.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +48.0°C (high = +84.0°C, crit = +100.0°C)
Core 0: +48.0°C (high = +84.0°C, crit = +100.0°C)
Core 1: +44.0°C (high = +84.0°C, crit = +100.0°C)
Core 2: +46.0°C (high = +84.0°C, crit = +100.0°C)
Core 3: +44.0°C (high = +84.0°C, crit = +100.0°C)
编辑:这是lspci的结果。
我使用MSI GS60 6QC笔记本电脑随附的GS660配置文件,使用Pherein的“风扇控制工具”设法对Windows中的风扇进行了一些控制。因此,我制作了一个小python脚本,它与Pherein的“ Fan Profile Applier.exe”在Linux上等效:
#!/usr/bin/env python
import os
import sys
EC_IO_FILE="/sys/kernel/debug/ec/ec0/io"
if not os.path.exists(EC_IO_FILE):
os.system("modprobe ec_sys write_support=1")
def ec_write(addr,value):
with open(EC_IO_FILE,"rb") as f:
f.seek(addr)
old_value=ord(f.read(1))
if (value != old_value):
print(" %3d => %3d" % (old_value, value))
with open(EC_IO_FILE,"wb") as f:
f.seek(addr)
f.write(bytearray([value]))
else:
print(" = %3d" % value)
for line in open(sys.argv[1]).readlines():
print(line.strip())
if line.startswith(">WEC "):
addr,value=line.split()[1:3]
ec_write(int(addr,0), int(value,0))
这是我当前用作参数的输入文件,它是使用Pherein工具生成的Quiet.rw文件:
-Profile Name: Quiet
[Temperatures_1]
>WEC 0x6A 0x2f
>WEC 0x6B 0x35
>WEC 0x6C 0x43
>WEC 0x6D 0x50
>WEC 0x6E 0x5A
>WEC 0x6F 0x5F
>WEC 0x70 0x64
----
[FanSpeeds_1]
>WEC 0x72 0x00
>WEC 0x73 0x10
>WEC 0x74 0x3E
>WEC 0x75 0x45
>WEC 0x76 0x4C
>WEC 0x77 0x54
>WEC 0x78 0x5B
----
[Temperatures_2]
>WEC 0x82 0x37
>WEC 0x83 0x41
>WEC 0x84 0x4B
>WEC 0x85 0x55
>WEC 0x86 0x5A
>WEC 0x87 0x5D
>WEC 0x88 0x66
----
[FanSpeeds_2]
>WEC 0x8A 0x0
>WEC 0x8B 0x3B
>WEC 0x8C 0x46
>WEC 0x8D 0x54
>WEC 0x8E 0x5B
>WEC 0x8F 0x5B
>WEC 0x90 0x5B
----
>RwExit
使用最新的EC固件,实际上风扇转速在0 RPM和3000 RPM之间。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句