Getting sensors to work on an ASUS Crosshair VI Hero AM4 motherboard

As the title states, I’m trying to get hardware sensors to work. Motherboard revision is 1.03 Reading several forums, I found the correct command, but I have no idea how to get it to build into the initrd and load during boot. Here is the modprobe command:

modprobe it87 force_id=0x8628

Once run, sensors shows useful information, but I have to manually run it after each boot.
I know nothing on how to force modules into the initrd or into the kernel. I do not know where to put the info or the correct syntax to use. Any help would be appreciated.

Hi
In /etc/modprobe.d add a file called 50-it87.conf then in this file add;


options it87 force_id=0x8628

Followed your instructions and also ran mkinitrd. Module it87 did not load after reboot until I ran the command manually again. Does the 50-it87.conf file force the loading of the module or only set the options? The module does not normally load when booting. It has to be done manually with modprobe.

Hi
Add a file in /etc/modules-load.d called it87.conf and in that file put in it87 save. More info in man modules-load.d

It worked. Thanks for the help and the education.