2018年12月28日 星期五

Gentoo 使用 lm_sensors

參考 http://linux.vbird.org/linux_basic/0610hardware/0610hardware-fc4.php

# emerge -av sys-apps/lm_sensors

# sensors-detect
Scan for sensors of south bridges, CPUs or memory controllers
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Scan for Super I/O sensors
Found `Nuvoton NCT6793D Super IO Sensors'                   Success!
    (address 0x290, driver `nct6775')

probe the I2C/SMBus adapters now? (YES/no): 
Using driver `i2c-i801' for device 0000:00:1f.4: Kaby Lake (PCH)
Module i2c-dev loaded successfully.

Now follows a summary of the probes I have just done.
Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Driver `nct6775':
  * ISA bus, address 0x290
    Chip `Nuvoton NCT6793D Super IO Sensors' (confidence: 9)

執行 etc-update,寫入設定檔,其所產生的 /etc/modules-load.d/lm_sensors.conf,。如下
# Generated by sensors-detect on Fri Dec 28 19:43:42 2018
coretemp
nct6775

要重新編譯 kernel,make xconfig 或 make menuconfig,加上下面兩個 driver module。
在 Device Drivers/Hardware Monitor Support 項目下
Intel Core/Core2/Atom temperature sensor (SENSORS_CORETEMP)
Nuvoton NCT6775F and compatibles (SENSORS_NCT6775)

 # make -j8 && make modules_install && make install

沒有留言:

張貼留言

網誌存檔