Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: hwmon & lm_sensors

  1. #1
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    166
    Distro
    Ubuntu 18.04 Bionic Beaver

    hwmon & lm_sensors

    Hello again all,

    Can anyone explain how the hwmon interface under /sys works, and how this relates to lm_sensors and a machines various integrated temperature sensors?

    does lm_sensors read inputs from /sys/class/hwmon or are they two entirely seperate things?

    is hwmon only for dedicated integrated temperature sensors such as those in a cpu?

    is lm_sensores only for the motherboards temperature sensors?

    I'm confused! any help is super appreciated!

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    7,900
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: hwmon & lm_sensors

    The actual documentation is here. I don't know if that will make you less confused or more confused.

    For which sensors are displayed, it depends on which sensors are able to be read. I needed to compile my own out-of-tree version of it87 to be able to read all the motherboard's sensors. Without that I only get the processor (and wireless, weirdly) since those are in-tree, but with that compiled and loaded as a module I get a bunch more.
    None but ourselves can free our minds

  3. #3
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    166
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: hwmon & lm_sensors

    Quote Originally Posted by CatKiller View Post
    I needed to compile my own out-of-tree version of it87 to be able to read all the motherboard's sensors. Without that I only get the processor (and wireless, weirdly) since those are in-tree, but with that compiled and loaded as a module I get a bunch more.
    That's interesting, when I run 'sensors' I only get CPU, GPU (Ryzen 3400G) and my WiFi too, I'm not sure what other sensors there are. I do have a hwmon device named 'asus' which I assume is my motherboard, maybe the Super I/0 sensors? but it has no inputs of any kind. It is a Nuvoton chip so I would have thought their would be no problems there.

    Thanks for the documentation, I'll scan through it tomorrow but I fear it may be a bit above my comprehension at this stage...

  4. #4
    Join Date
    Jun 2007
    Beans
    14,217

    Re: hwmon & lm_sensors

    Code:
    I do have a hwmon device named 'asus' which I assume is my motherboard, maybe the Super I/0 sensors? but it has no inputs of any kind. It is a Nuvoton chip so I would have thought their would be no problems there.
    Maybe it needs a newer kernel to work fully. What does sensors-detct look like?:
    Code:
    sudo sensors-detect

  5. #5
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    166
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: hwmon & lm_sensors

    Quote Originally Posted by Yellow Pasque View Post
    Maybe it needs a newer kernel to work fully. What does sensors-detct look like?
    Interestingly today the system seems to have loaded more kernel modules, which as @CatKiller said, has changed the hwmon device numbers and screwed up my conky a little. The new modules can be seen below...

    Code:
    Driver `k10temp' (autoloaded):
      * Chip `AMD Family 17h thermal sensors' (confidence: 9)
    
    Driver `jc42':
      * Bus `SMBus PIIX4 adapter port 0 at 0b00'
        Busdriver `i2c_piix4', I2C address 0x18
        Chip `jc42' (confidence: 6)
      * Bus `SMBus PIIX4 adapter port 0 at 0b00'
        Busdriver `i2c_piix4', I2C address 0x1a
        Chip `jc42' (confidence: 6)
    
    Driver `nct6775':
      * ISA bus, address 0x290
        Chip `Nuvoton NCT6798D Super IO Sensors' (confidence: 9)
    Which has obviously added some information to my 'sensors' output...

    Code:
    amdgpu-pci-0900
    Adapter: PCI adapter
    vddgfx:           N/A  
    vddnb:            N/A  
    edge:         +32.0C  (crit = +80.0C, hyst =  +0.0C)
    
    k10temp-pci-00c3
    Adapter: PCI adapter
    Tdie:         +32.2C  (high = +70.0C)
    Tctl:         +32.2C  
    
    jc42-i2c-0-18
    Adapter: SMBus PIIX4 adapter port 0 at 0b00
    temp1:        +28.5C  (low  =  +0.0C)                  ALARM (HIGH, CRIT)
                           (high =  +0.0C, hyst =  +0.0C)
                           (crit =  +0.0C, hyst =  +0.0C)
    
    iwlwifi_1-virtual-0
    Adapter: Virtual device
    temp1:        +29.0C  
    
    jc42-i2c-0-1a
    Adapter: SMBus PIIX4 adapter port 0 at 0b00
    temp1:        +29.2C  (low  =  +0.0C)                  ALARM (HIGH, CRIT)
                           (high =  +0.0C, hyst =  +0.0C)
                           (crit =  +0.0C, hyst =  +0.0C)
    I don't know why this is, yesterday when I ran sensors detect it definitely recommended the nct6775 module for my super I/O, as it did just now, but the output seems to suggest it isn't loaded? I did allow sensors-detect to add the recommended modules to /etc/modules and the ran '/etc/init.d/kmod start'.

    And I have no idea what the jc42 modules are for yet.

  6. #6
    Join Date
    Jun 2007
    Beans
    14,217

    Re: hwmon & lm_sensors

    What happens when you try to modprobe manually
    Code:
    sudo modprobe -v nct6775
    sensors
    jc42 is probably the temp of the RAM modules.

  7. #7
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    166
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: hwmon & lm_sensors

    Quote Originally Posted by Yellow Pasque View Post
    What happens when you try to modprobe manually
    The nct6775 module was already loaded so I unloaded and loaded it again and received the following output...

    Code:
    sudo modprobe -v nct6775
    insmod /lib/modules/5.4.0-40-generic/kernel/drivers/hwmon/hwmon-vid.ko 
    insmod /lib/modules/5.4.0-40-generic/kernel/drivers/hwmon/nct6775.ko
    However this still dowsn't seem to have changed my 'sensors' output...

    Code:
    iwlwifi_1-virtual-0
    Adapter: Virtual device
    temp1:        +29.0C  
    
    k10temp-pci-00c3
    Adapter: PCI adapter
    Tdie:         +26.5C  (high = +70.0C)
    Tctl:         +26.5C  
    
    jc42-i2c-0-18
    Adapter: SMBus PIIX4 adapter port 0 at 0b00
    temp1:        +28.2C  (low  =  +0.0C)                  ALARM (HIGH, CRIT)
                           (high =  +0.0C, hyst =  +0.0C)
                           (crit =  +0.0C, hyst =  +0.0C)
    
    amdgpu-pci-0900
    Adapter: PCI adapter
    vddgfx:           N/A  
    vddnb:            N/A  
    edge:         +26.0C  (crit = +80.0C, hyst =  +0.0C)
    
    jc42-i2c-0-1a
    Adapter: SMBus PIIX4 adapter port 0 at 0b00
    temp1:        +29.2C  (low  =  +0.0C)                  ALARM (HIGH, CRIT)
                           (high =  +0.0C, hyst =  +0.0C)
                           (crit =  +0.0C, hyst =  +0.0C)
    The order is slightly different than the output in my earlier post, but apart from that all the same readings are there. I'm not too worried as all I really need at the moment is CPU / GPU temperature, although it would be nice to know why I cant get readings from all my sensors!

  8. #8
    Join Date
    Jun 2007
    Beans
    14,217

    Re: hwmon & lm_sensors


  9. #9
    Join Date
    Apr 2020
    Location
    where the work takes me
    Beans
    166
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: hwmon & lm_sensors

    Quote Originally Posted by Yellow Pasque View Post
    Yeah that looks promising, it is an Asus motherboard.

    Looking at the line...

    Code:
    This conflict may cause random problems and system instability
    I'm not willing to employ the workaround as I don't need any more temps other than CPU / GPU at the moment, which I already have. I will consider this in the future when I'm doing more things with my PC that push it to it's limits, but at the moment I don't even have a dedicated graphics card and really the most intensive thing the thing does is boot as far as I can tell, I play a few older games and indie games but I'm not running AAA games at max settings or anything. In fact I haven't seen any temps go above the low 40c at any point.

    That said I will come back to this at some point in the future when I'm doing more with it so I can potentially get a full temp reading, so thanks for turning this up!

  10. #10
    Join Date
    Jun 2007
    Beans
    14,217

    Re: hwmon & lm_sensors

    Quote Originally Posted by jcdenton1995 View Post
    Yeah that looks promising, it is an Asus motherboard.
    Asus doesn't have much to do with it. More importantly, it's an NCT6798D chip. Remember that in the future if Googling.

    That said I will come back to this at some point in the future when I'm doing more with it so I can potentially get a full temp reading, so thanks for turning this up!
    As the bug report states, it's not likely to be fixed.

    EDIT: you can try it on a LiveUSB
    Last edited by Yellow Pasque; July 30th, 2020 at 05:33 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •