Ubuntu – How to install it87 kernel module for 18.04 (ryzen 2xxx support)

amd-processoramd-ryzenkernellm-sensorstemperature

I want to read the CPU temperature value of my ryzen 2600. This askubuntu answer says "just load it87". But how do I get it87 installed? I'm running mainline 5.0.0-36-generic so I expect the kernel module is available somewhere as 18.04.1 should have it by default and is packaged with kernel 4.15.

The github repo is a dead link for me. So I can't just compile it and load it by hand.

update

My motherboard is a x470 chipset Asus ROG Strix x470-F gaming. It has a IT8665E.

I have it87 installed in /lib/modules/$(uname -r)/kernel/drivers/hwmon/it87.ko.
When I load it using

sudo modprobe it87

Results:

modprobe: ERROR: could not insert 'it87': No such device

lm-sensors results:

Trying family `ITE'...                                      Yes
Found unknown chip with ID 0x8665
    (logical device 4 has address 0x290, could be sensors)

and forcing the issue results in:

sudo modprobe --verbose it87 force_id=0x8665
insmod /lib/modules/5.0.0-36-generic/kernel/drivers/hwmon/it87.ko force_id=0x8665
modprobe: ERROR: could not insert 'it87': No such device

Best Answer

I know this isn't the answer you want.

As of this moment it appears that the IT8665e chip is not supported by the it87 module. According to a support query by olysonek and a response by goeck found here and quoted below.

re IT8665E: I had an out-of-tree driver supporting it on github, but marked it as private because I got harassed about taking it upstream which I didn't have the time for (much less anyone seriously reviewing it, or helping to kink out its bugs, or chip/board vendor support). There should be various clones of this driver (named it87) on github. There are no efforts I know of to take the code upstream.

The IT8665E is often used in conjunction with IT8686E on the same board, and it is often accessed from an EC on the board. This causes interactions which I have not been able to sufficiently address. While that was somewhat acceptable for an out-of-tree driver, the resulting instabilities would affect lots of people if the code was upstreamed, which in my opinion is unacceptable. Anyone who wants the code upstream should discuss with ITE and board vendors to get the necessary support.

Related Question