Enabling Sensors on ASUS motherboards

Message
Author
User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: MX19.1 AHS Release

#1 Post by KoO »

So far very nice indeed. Thanks

The below is not and MX problem. It is a kernel thing.
But one thing I have had trouble with is sensor modules on my new Asus b450-I motherboard running AMD 5 3600. But I have found the fix. If the below is not done No CPU or Fan sensors will work. For me anyway



https://github.com/lm-sensors/lm-sensors/issues/134

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax" << You must add this to your grub line ( acpi_enforce_resources=lax ) then sudo update-grub

Code: Select all

 andresvensson commented on Nov 28, 2018 •

I had similar problem but solved it from info at another thread. Though I might share.

1, Find your model name:
sudo dmidecode > sensors.txt
open file and search

(my sensor is IT8665E)

    Management Device
    Description: ITE IT8665E
    Type: Other
    Address: 0x00000295
    Address Type: I/O Port

2, Confirm that yours are listed at https://github.com/a1wong/it87 and then:
git clone git clone https://github.com/a1wong/it87.git
cd it87/
make clean
make
sudo make install

3, Get required program and add the drivers:
echo "it87" | sudo tee -a /etc/modules #if you haven't done this already
#you may have some of these already
sudo apt-get install git dkms build-essential linux-headers-generic
sudo make dkms
sensors

4, Boom! 
And have a look here too. If you have an ASUS board. https://github.com/electrified/asus-wmi-sensors
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Paul..
Posts: 1787
Joined: Sun Mar 18, 2007 6:34 pm

Enabling Sensors on ASUS motherboards

#2 Post by Paul.. »

Mod Note: Moved the above relevant post so it would be available to others and not lost in an unrelated thread.

Asus Prime X570-Pro | AMD Ryzen 7 3700X
16 Gig DDR4 3600 | Radeon RX 5600 XT Graphics
Samsung 860 500GB SSDs (2)

User avatar
Stevo
Developer
Posts: 14888
Joined: Fri Dec 15, 2006 7:07 pm

Re: Enabling Sensors on ASUS motherboards

#3 Post by Stevo »

Is the same fix still required on our latest 5.4 and 5.5 kernels?

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Enabling Sensors on ASUS motherboards

#4 Post by KoO »

@ Stevo Yes please. Without the drivers & modules IT8665E just can't read the sensors.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Stevo
Developer
Posts: 14888
Joined: Fri Dec 15, 2006 7:07 pm

Re: Enabling Sensors on ASUS motherboards

#5 Post by Stevo »

It appears that the module source is in the kernel, but Debian doesn't enable the builds, while the Liquorix kernels do:

Code: Select all

#
# Port-mapped I/O GPIO drivers
#
CONFIG_GPIO_F7188X=m
CONFIG_GPIO_IT87=m
CONFIG_GPIO_SCH=m
CONFIG_GPIO_SCH311X=m
CONFIG_GPIO_WINBOND=m
CONFIG_GPIO_WS16C48=m
# end of Port-mapped I/O GPIO drivers
Search the config file for your current kernel that's in /boot for "it87"...

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Enabling Sensors on ASUS motherboards

#6 Post by KoO »

@Stevo

One other thing on bootup I see that watchdog is disabled in the bios. Is this not good. ?

I also did a catfish on the systems folder for it87
Image

This all I could find in config-5.4.0-3-amd64 (9296 lines of code) using search of course.

Code: Select all

 
 Port-mapped I/O GPIO drivers
# CONFIG_GPIO_IT87 is not set
# end of Port-mapped I/O GPIO drivers

# Native drivers
CONFIG_SENSORS_IT87=m

Watchdog Device Drivers
CONFIG_IT8712F_WDT=m
CONFIG_IT87_WDT=m 
 
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Eadwine Rose
Administrator
Posts: 15288
Joined: Wed Jul 12, 2006 2:10 am

Re: Enabling Sensors on ASUS motherboards

#7 Post by Eadwine Rose »

Interesting.. I have to do

Code: Select all

echo "it87" | sudo tee -a /etc/modules           
sudo apt-get install git         
cd ~/                                                                     
git clone https://github.com/a1wong/it87.git
cd it87/
sudo make dkms
in succession to see all my sensors.

Stevo: you mean that the liquorix kernel might work OOTB?
MX-23.6_x64 July 31 2023 * 6.1.0-39amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Enabling Sensors on ASUS motherboards

#8 Post by KoO »

I was waiting for you Eadwine Rose as I noted you were using Asus TUF B450-Plus Gaming UEFI board.

General Purpose Input/Output (GPIO) » GPIO Driver Interface
Each GPIO controller driver needs to include the following header, which defines the structures used to define a GPIO driver:
#include <linux/gpio/driver.h>

From what i see here the driver is not loaded. But the sensors part is fixed. But helpfully this can but fixed. I don't understand myself we need more help with this.. Sorry bedtime work tomorrow.
Port-mapped I/O GPIO drivers
# CONFIG_GPIO_IT87 is not set
# end of Port-mapped I/O GPIO drivers

# Native drivers
CONFIG_SENSORS_IT87=m

Watchdog Device Drivers
CONFIG_IT8712F_WDT=m
CONFIG_IT87_WDT=m

From the below the GPIO driver is loaded.
# Port-mapped I/O GPIO drivers
#
CONFIG_GPIO_F7188X=m
CONFIG_GPIO_IT87=m
CONFIG_GPIO_SCH=m
CONFIG_GPIO_SCH311X=m
CONFIG_GPIO_WINBOND=m
CONFIG_GPIO_WS16C48=m
# end of Port-mapped I/O GPIO drivers
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Enabling Sensors on ASUS motherboards

#9 Post by KoO »

Ok this is what I have found with the liquorix kernel installed .Linux mx-19 5.5.0-3.2-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.5-6~mx19+1 (2020-02-14) x86_64 GNU/Linux.. On MX-19.1 AHS + Nvidia 440.59

The GPIO driver is now installed.
From : /boot/config-5.5.0-3.2-liquorix-amd64

Code: Select all

#
# Port-mapped I/O GPIO drivers
#
CONFIG_GPIO_F7188X=m
CONFIG_GPIO_IT87=m
CONFIG_GPIO_SCH=m
CONFIG_GPIO_SCH311X=m
CONFIG_GPIO_WINBOND=m
CONFIG_GPIO_WS16C48=m
# end of Port-mapped I/O GPIO drivers
 
And the sensors are working

Code: Select all

mx-19 * 27 files = 700K ~ >$sensors
it8665-isa-0290
Adapter: ISA adapter
in0:          +1.20 V  (min =  +2.04 V, max =  +1.38 V)
in1:          +2.50 V  (min =  +0.84 V, max =  +2.25 V)
in2:          +2.04 V  (min =  +2.38 V, max =  +2.50 V)
in3:          +2.00 V  (min =  +0.93 V, max =  +1.65 V)
in4:          +0.03 V  (min =  +2.68 V, max =  +1.10 V)
in5:          +0.03 V  (min =  +1.34 V, max =  +2.20 V)
in6:          +0.03 V  (min =  +2.57 V, max =  +1.21 V)
3VSB:         +3.31 V  (min =  +2.66 V, max =  +4.42 V)
Vbat:         +3.23 V  
+3.3V:        +3.33 V  
fan1:        1218 RPM  (min =   34 RPM)
fan2:         725 RPM  (min =   11 RPM)
fan5:           0 RPM  (min =   -1 RPM)  ALARM
fan6:        2008 RPM  (min =   -1 RPM)
temp1:        +50.0°C  (low  = -91.0°C, high = -24.0°C)
temp2:        +45.0°C  (low  =  -5.0°C, high =  -2.0°C)  sensor = thermistor
temp3:        +47.0°C  (low  = -65.0°C, high = -113.0°C)  sensor = thermistor
temp4:        +47.0°C  (low  = -44.0°C, high = +127.0°C)  sensor = thermistor
temp5:        +47.0°C  (low  = +63.0°C, high = +125.0°C)  sensor = thermistor
temp6:        +47.0°C  (low  = +37.0°C, high = -13.0°C)  sensor = thermistor
intrusion0:  ALARM

k10temp-pci-00c3
Adapter: PCI adapter
Tdie:         +50.4°C  (high = +70.0°C)
Tctl:         +50.4°C 

I installed these first Linux ASUS WMI Sensor driver from here: https://github.com/electrified/asus-wmi-sensors You could try just installing Liquorix first and see if all works. If all works good, if not then install these.. Asus is the key here.



The below seems a bit to old 4 years but I could be wrong too. They could be the same as above I just don't know.
https://ubuntuforums.org/showthread.ph ... st13802103

Code: Select all

echo "it87" | sudo tee -a /etc/modules           #if you haven't done this already
sudo apt-get install git dkms build-essential linux-headers-generic         #you may have some of these already 
cd ~/                #use whichever directory you want
git clone https://github.com/a1wong/it87.git
cd it87/
sudo make dkms
sensors 
I can tell you this much if your sensors are not detected this is all you will see.

Code: Select all

$sensors

k10temp-pci-00c3
Adapter: PCI adapter
Tdie:         +50.4°C  (high = +70.0°C)
Tctl:         +50.4°C 
Last edited by KoO on Thu Feb 20, 2020 2:02 am, edited 1 time in total.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
Stevo
Developer
Posts: 14888
Joined: Fri Dec 15, 2006 7:07 pm

Re: Enabling Sensors on ASUS motherboards

#10 Post by Stevo »

Eadwine Rose wrote: Wed Feb 19, 2020 3:48 am Interesting.. I have to do

Code: Select all

echo "it87" | sudo tee -a /etc/modules           
sudo apt-get install git         
cd ~/                                                                     
git clone https://github.com/a1wong/it87.git
cd it87/
sudo make dkms
in succession to see all my sensors.

Stevo: you mean that the liquorix kernel might work OOTB?
It's worth a try, but only the Nvidia 440.59 driver in the test repo (at present) will build on the current 5.5 Liquorix kernel. So you must first upgrade that driver before installing the kernel.

Post Reply

Return to “General”