Ubuntu – Fan control on MSI laptop: no pwm-capable sensors


I'm trying to control the fan speed of my MSI GS60-2PC laptop on Ubuntu 16.04.

But pwmconfig reports that

There are no pwm-capable sensors modules installed

I'm pretty sure these fans can be controlled, because some utilies on Windows can control them.

What I've done

  1. I've run sensors-detect (as root) like this:

     yes | sensors-detect

It seems to only detect "coretemp". Here's the full result.

  1. Then pwmconfig (as root):


And I get the famous message There are no pwm-capable sensors modules installed.

  1. I've tried the following things, which didn't work:
    • Adding to grub (and then rebooting): acpi_osi=Linux
    • Adding to grub (and then rebooting): acpi_osi=!Windows 2012
    • Adding to grub (and then rebooting): acpi_enforce_resources=lax

What I get when I run the sensors command

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)

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)

EDIT: Here's the result of lspci.

Best Answer

I managed to have some control of the fan in Windows with the "Fan Control Tools" from Pherein, using the included GS660 profile for my MSI GS60 6QC laptop. So I made a small python script that is the Linux equivalent of Pherein's "Fan Profile Applier.exe":

#!/usr/bin/env python

import os
import sys


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:
    if (value != old_value):
        print("                %3d => %3d" % (old_value, value))
        with open(EC_IO_FILE,"wb") as f:
        print("                     = %3d" % value)

for line in open(sys.argv[1]).readlines():
    if line.startswith(">WEC "):
        ec_write(int(addr,0), int(value,0))

Here is the input file I currently use as argument, it's the Quiet.rw file generated with Pherein's tool:

-Profile Name: Quiet
>WEC 0x6A 0x2f
>WEC 0x6B 0x35
>WEC 0x6C 0x43
>WEC 0x6D 0x50
>WEC 0x6E 0x5A
>WEC 0x6F 0x5F
>WEC 0x70 0x64
>WEC 0x72 0x00
>WEC 0x73 0x10
>WEC 0x74 0x3E
>WEC 0x75 0x45
>WEC 0x76 0x4C
>WEC 0x77 0x54
>WEC 0x78 0x5B
>WEC 0x82 0x37
>WEC 0x83 0x41
>WEC 0x84 0x4B
>WEC 0x85 0x55
>WEC 0x86 0x5A
>WEC 0x87 0x5D
>WEC 0x88 0x66
>WEC 0x8A 0x0
>WEC 0x8B 0x3B
>WEC 0x8C 0x46
>WEC 0x8D 0x54
>WEC 0x8E 0x5B
>WEC 0x8F 0x5B
>WEC 0x90 0x5B

With the latest EC Firmware there is actually no in between 0 RPM and 3000 RPM for fan speed.

Related Question