zeule / asus-ec-sensors

Linux HWMON sensors driver for ASUS motherboards to get sensor readings from the embedded controller
GNU General Public License v2.0
46 stars 21 forks source link

Old Motherboard Z97-Pro (ec sensors doesn't show fan rpm) #33

Open mhmarf opened 1 year ago

mhmarf commented 1 year ago

Hello and thank you very much for creating this project. I saw you said kernel 5.18 has already this project built-in, so I upgraded from 5.15 to 6.0.1 kernel but sensors detect still does not detect my cpu fan (no difference at all). So I tried to manually use this project and add my board. My question is will I be able to use this project to control my cpu fan? because "ASUS EC" inside HWinfo does not have my fan speed either: (my board vendor is ASUSTeK COMPUTER INC.) (https://imgur.com/a/u7JmU55)

I added

DMI_EXACT_MATCH_ASUS_BOARD_NAME("Z97-PRO",
    &board_info_z97_pro),

to dmi array but don't know what values to add under ec_board_info

static const struct ec_board_info board_info_z97_pro = {
    .sensors = 
};
zeule commented 1 year ago

You will be unable to control fans with this driver, even if you find out how to read sensor values. The driver (and the ASUS EC itself) does only report sensor readings.

As for the sensor definitions,. I recommend to try values with the same names from another board generation. You may see register addresses do not change for most of them from generation to generation. Just copy over whatever you like and star with the common ones (VRM, chipset temp, CPU current). You already know a list from HWINFO, that's good. Poking random EC registers should not damage the board. It might lead to fans loosing control (so they might stop or run at the highest RPM), but power cycling the board should correct that.