MSI笔记本电脑上的风扇控制:没有支持pwm的传感器?

我正试图在Ubuntu 16.04上控制我的MSI GS60-2PC笔记本电脑的风扇速度。

pwmconfig报告说

 There are no pwm-capable sensors modules installed 

我很确定这些粉丝是可以控制的,因为Windows上的一些实用程序可以控制它们。

我做了什么

  1. 我像这样运行sensors-detect (root):

     yes | sensors-detect 

它似乎只检测“coretemp”。 这是完整的结果 。

  1. 然后pwmconfig (以root身份):

     pwmconfig 

我收到了着名的消息 There are no pwm-capable sensors modules installed

  1. 我试过以下的东西,但是没有用:
    • 添加到grub(然后重新启动): acpi_osi=Linux
    • 添加到grub(然后重新启动): acpi_osi=!Windows 2012
    • 添加到grub(然后重新启动): 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的结果。

我通过Pherein的“风扇控制工具”使用随附的GS660配置文件为我的MSI GS60 6QC笔记本电脑控制了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之间。

这款笔记本电脑采用英特尔HM87芯片组。 该芯片组的移动版本不包括PWM硬件,因此操作系统无法控制风扇。 如果可以进行任何风扇控制,它将通过BIOS。

MSI G60的用户手册指出,这款笔记本电脑的某些型号具有“冷却器增压”按钮,可控制风扇速度。 它还表明按下Fn + F5会使笔记本电脑通过不同的电源管理模式。