[HOWTO] Control automatic fan settings on XU3/XU4

Tony32
Posts: 12
Joined: Sun Mar 04, 2018 1:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by Tony32 » Sun Mar 04, 2018 1:53 am

minca wrote:Hello guys,

so I've solved my problem with annoying sound:

Noctua 40x40x10
goo.gl/vEYWoH
Neat! I might try it out as well!

TheGammel
Posts: 9
Joined: Tue Mar 06, 2018 2:45 am
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by TheGammel » Sat Apr 07, 2018 1:43 am

Hey guys,

so I already understood that with:

Code: Select all

echo 35000 > /sys/class/thermal/thermal_zone1/trip_point_0_temp
the fan speed can be somewhat affected.... And by adding that line to /etc/rc.local the setting can be made permanent.

However the fan still turns off from time to time... I would like it to run constantly at full speed...
How would I do that?

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

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by mad_ady » Sat Apr 07, 2018 5:11 am

Try with 5000 instead of 35000 so that it stops in the unlikely event when the CPU reaches 5C

TheGammel
Posts: 9
Joined: Tue Mar 06, 2018 2:45 am
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by TheGammel » Sat Apr 07, 2018 10:26 am

mad_ady wrote:Try with 5000 instead of 35000 so that it stops in the unlikely event when the CPU reaches 5C
sadly this didn't do the trick for me... the fan kept turning off...

for me this did the trick: viewtopic.php?f=99&t=30675&p=220744#p220744

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by odroid » Wed Apr 11, 2018 3:32 pm

We made a WiKi page for controlling the fan behaviors.
https://wiki.odroid.com/odroid-xu4/appl ... ol_the_fan

Please review it and let's us know what's wrong or need to be improved.

epierre
Posts: 74
Joined: Fri Jan 30, 2015 11:23 pm
languages_spoken: english, french
ODROIDs: U3, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by epierre » Tue Apr 24, 2018 4:37 am

Hello,

From wiki, I have the issue:

echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
tee: /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic: Permission denied

any idea why ?

XU4 running Linux odroid 4.14.5-92

User avatar
rooted
Posts: 7134
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 386 times
Been thanked: 106 times
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by rooted » Tue Apr 24, 2018 5:16 am

epierre wrote:Hello,

From wiki, I have the issue:

echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
tee: /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic: Permission denied

any idea why ?

XU4 running Linux odroid 4.14.5-92
What does this say?

Code: Select all

ls -l /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic 
And

Code: Select all

sudo ls

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by odroid » Tue Apr 24, 2018 8:40 am

epierre wrote: XU4 running Linux odroid 4.14.5-92
As described in the WiKi page, the kernel version must be higher than 4.14.32.
Update the system software first.

korn16ftl3
Posts: 27
Joined: Sat May 19, 2018 12:37 am
languages_spoken: english
ODROIDs: odroid XU4 and cloudshell
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by korn16ftl3 » Wed May 30, 2018 12:48 am

So I've skimmed the first page of this as a lot of it appears to be a touch beyond my skill level at this point, but my question is how would I make the CPU fan run full speed all the time right from start-up?

minca
Posts: 34
Joined: Fri Oct 06, 2017 5:23 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by minca » Mon Jun 18, 2018 9:30 pm

korn16ftl3 wrote:So I've skimmed the first page of this as a lot of it appears to be a touch beyond my skill level at this point, but my question is how would I make the CPU fan run full speed all the time right from start-up?
Hi not sure if it is a good idea, as you will destroy the bearings and the cooler will get noisy.

User avatar
rooted
Posts: 7134
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 386 times
Been thanked: 106 times
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by rooted » Tue Jun 19, 2018 12:43 am

korn16ftl3 wrote:So I've skimmed the first page of this as a lot of it appears to be a touch beyond my skill level at this point, but my question is how would I make the CPU fan run full speed all the time right from start-up?
Add to /etc/rc.local

Code: Select all

echo 15000 | tee /sys/class/thermal/thermal_zone1/trip_point_0_temp

martouf
Posts: 3
Joined: Mon Jul 16, 2018 12:13 am
languages_spoken: English
ODROIDs: XU4 + acc.
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by martouf » Mon Jul 16, 2018 1:16 am

i found the default fan settings too noisy and variable with my newly arrived XU4 running the 18.04 LTS image. i kept an eye on temps with EnergyMonitor. the RAM use by energymonitor started off at about 16MB and grew to over 280MB over 24 hours (see 'smem'). the fan seemed overactive even when the system is sitting completely idle or running a screensaver. it's fine the default cpu governor is 'performance', as it's a smoother GUI experience than 'ondemand'. i left the GPU thermal_zone4 alone for now. CPU runs in the upper-70s and the GPU rides along at 74C.

i've added the following to my /etc/rc.local (after the 1st and 2nd try "aafirstboot start" and before the "exit 0", of course!):

# adjust fan speeds from default "0 120 180 240"
# fan=0 to fan=120 is more jarring than transition from 70 to 120
# first speed would be 60 except for fan's own friction
echo "70 120 180 240" > /sys/devices/platform/pwm-fan/hwmon/hwmon0/fan_speed

# adjust lowest thermal trip points to reduce nearly constant fan speed 'breathing' at low system load
for i in $( ls /sys/devices/virtual/thermal/thermal_zone[0123]/*2_temp ); do echo 82000 > $i; done
for i in $( ls /sys/devices/virtual/thermal/thermal_zone[0123]/*1_temp ); do echo 75000 > $i; done
for i in $( ls /sys/devices/virtual/thermal/thermal_zone[0123]/*0_temp ); do echo 67000 > $i; done

ps: it was difficult to confirm these temperatures would not prove adverse to long-term use! there does not seem to be much literature nor specifications generally available. this report was helpful: https://www.bu.edu/peaclab/files/2016/1 ... _sahin.pdf

moon.linux
Posts: 1171
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 5 times
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by moon.linux » Mon Jul 16, 2018 2:29 am

Nice pdf report but some other issue need to be fixed so that this board work efficiently.

minca
Posts: 34
Joined: Fri Oct 06, 2017 5:23 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Control automatic fan settings on XU3/XU4

Unread post by minca » Wed Oct 17, 2018 12:51 am

just noticed that on Ubuntu 18.04.1 LTS (Linux kurwitko 4.14.73-149) - the ./fanwrite.sh doesn't work anymore...
only whats working, it set the fan permanently to 120 RMP. (got like 42 degrees)..can't set it higher...
any tips ?

EDIT: got it
with

Code: Select all

echo 120 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 2 guests