reading fan speed

Post Reply
User avatar
jaym
Posts: 29
Joined: Sat Dec 17, 2016 11:53 pm
languages_spoken: english
ODROIDs: C2, HC1, H2
Location: VA, USA
Has thanked: 0
Been thanked: 0
Contact:

reading fan speed

Post by jaym » Wed Aug 14, 2019 8:22 am

I have found the H2's SoC temperature sensors at

Code: Select all

/sys/devices/virtual/thermal/thermal_zone0/temp
/sys/devices/virtual/thermal/thermal_zone1/temp
Has anyone figured out how to read the fan speed?

FWIW, the Noctua 5v Fan (NF-A9 PWM) is very quiet. Mounted in the KKSB case, in a quiet room, I have yet to hear it at all.

User avatar
odroid
Site Admin
Posts: 34154
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 678 times
Been thanked: 618 times
Contact:

Re: reading fan speed

Post by odroid » Wed Aug 14, 2019 9:19 am

There is a dedicated IC which controls the fan speed by reading the board temperature with its own temp sensor.
The controller IC is isolated from the system and it is accessible in the BIOS settings only.

User avatar
mad_ady
Posts: 7911
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 502 times
Been thanked: 350 times
Contact:

Re: reading fan speed

Post by mad_ady » Wed Aug 14, 2019 2:27 pm

lmsensors can see it, but doesn't read rpm correctly

User avatar
roots
Posts: 37
Joined: Thu Feb 28, 2019 4:16 pm
languages_spoken: English, Romanian
ODROIDs: H2, XU4
Location: Romania
Has thanked: 11 times
Been thanked: 1 time
Contact:

Re: reading fan speed

Post by roots » Mon Apr 27, 2020 5:47 pm


struthio
Posts: 4
Joined: Wed Oct 09, 2019 4:17 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: reading fan speed

Post by struthio » Fri May 15, 2020 5:22 am

Does anyone can read values ?
To read temperature form those sensors do fan needs to be enabled in BIOS?

I tried to load module but sensors didn't found nothing new:

Code: Select all

struthio@eden:~/shSystemSetup$ lsmod | grep emc2103
emc2103                16384  0
struthio@eden:~/shSystemSetup$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +47.0°C  (crit = +95.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +47.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +45.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +46.0°C  (high = +105.0°C, crit = +105.0°C)

User avatar
odroid
Site Admin
Posts: 34154
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 678 times
Been thanked: 618 times
Contact:

Re: reading fan speed

Post by odroid » Fri May 15, 2020 11:08 am

@struthio,

You don't need to change the BIOS settings.
Did you see this thread?
viewtopic.php?f=168&t=38520#p290014

struthio
Posts: 4
Joined: Wed Oct 09, 2019 4:17 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: reading fan speed

Post by struthio » Mon May 18, 2020 9:28 pm

Yes. That is why I asked :)

I loaded the same module as mentioned in other post:

Code: Select all

struthio@eden:~/shSystemSetup$ lsmod | grep emc2103
emc2103                16384  0
but sensors didn't returned anything new:

Code: Select all

struthio@eden:~/shSystemSetup$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +47.0°C  (crit = +95.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +47.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +45.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +46.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +46.0°C  (high = +105.0°C, crit = +105.0°C)

User avatar
odroid
Site Admin
Posts: 34154
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 678 times
Been thanked: 618 times
Contact:

Re: reading fan speed

Post by odroid » Mon May 25, 2020 4:40 pm

We've made a WiKi page. I used Ubuntu 20.04 and Kernel 5.4 for the test.
https://wiki.odroid.com/odroid-h2/appli ... _fan_speed

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest