Cloudshell 2: Fan always on?

Moderators: mdrjr, odroid

Cloudshell 2: Fan always on?

Unread postby crazyquark » Sun Jul 16, 2017 3:29 pm

Hi guys, liking the Cloudshell2 so far but the noise bothers me a bit...
I did use the resistor in the package to reduce fan speed but it's still always on.

Is there any way to control the fan via software?

(While I ask this I realize the answer is probably no, the fan on Cloudshell1 was connected directly to the board and was probably controlled via one of the SoCs PWM drivers...)
Last edited by crazyquark on Tue Jul 18, 2017 4:05 am, edited 2 times in total.
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: CLoudshell 2: Fan always on?

Unread postby odroid » Mon Jul 17, 2017 12:12 pm

You can turn it on/off. But speed control is not available due to a hardware issue on the Fan control circuit
http://odroid.com/dokuwiki/doku.php?id= ... fan_off_on
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: CLoudshell 2: Fan always on?

Unread postby crazyquark » Mon Jul 17, 2017 5:40 pm

Indeed, sorry I missed that bit.
And the issue with the control circuit, can it be fixed?
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: CLoudshell 2: Fan always on?

Unread postby odroid » Mon Jul 17, 2017 5:54 pm

No. it can't be fixed.
In fact, we chose a wrong PWM controller which was designed for LED dimming control instead of the motor speed control. :(

BTW, I hope someone can contribute a script which turns the fan on only when the HDD temperature is higher than 60°C or something like that....
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: CLoudshell 2: Fan always on?

Unread postby crazyquark » Tue Jul 18, 2017 4:12 am

odroid wrote:No. it can't be fixed.
In fact, we chose a wrong PWM controller which was designed for LED dimming control instead of the motor speed control. :(

BTW, I hope someone can contribute a script which turns the fan on only when the HDD temperature is higher than 60°C or something like that....


I have ordered a Noctua NF A9 FLX fan to see if it is more bearable sound wise(it comes w/ 2 low noise adapters).
Yeah, turning on and off should be ok as well via a script (service most likely).
I noticed something: the CPU temp is very low in the cloudshell 2 unlike the cloudshell 1 where it was usually around 58-60C; now it sits at 39; excluding a sensor malfunction the cloudshell2 is really well ventilated it seems.
So congrats on the design; too bad for the PWM controller...
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: Cloudshell 2: Fan always on?

Unread postby crazyquark » Wed Jul 19, 2017 4:09 am

With the Noctua NF A9 FLX the noise level dropped from 59db to 47db(at least as measured on my cheap sound level meter) but I can still hear it :D. I guess I'll try Noctua's LNA and ULNA adapters next. Still, big improvement.
Also the temps seem to have gone a few degrees higher on the CPU but nothing dangerous(maybe it's also hotter today than yesterday).

@odroid what is the CFM on the stock fan w/ the low noise adapter?
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: Cloudshell 2: Fan always on?

Unread postby odroid » Wed Jul 19, 2017 9:19 am

With the low noise adapter: 40CFM, Direct connection: 55CFM
Rated voltage is 5V, Startup Voltage is 3.5V.
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2: Fan always on?

Unread postby crazyquark » Wed Jul 19, 2017 10:50 pm

Thank you.
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: Cloudshell 2: Fan always on?

Unread postby jcornuz » Sun Sep 03, 2017 10:47 am

If anyone is interested, here is a trivial (and probably ugly) script to activate the fan only at the temperature defined with "temp_start_fan".

Code: Select all
#!/bin/bash

temp_start_fan=45

cpu_temp=$(($(</sys/class/thermal/thermal_zone0/temp) / 1000))

echo "cpu temp = " $cpu_temp "C";
echo "start fan temp = " $temp_start_fan "C";


if [ $cpu_temp \> $temp_start_fan ];
then
    echo "starting fan";
    i2cset -y 1 0x60 0x05 0x00; #start fan
else
    echo "stopping fan";
    i2cset -y 1 0x60 0x05 0x05; #stop fan
fi;


Save it somewhere like in root/scripts/fan_activation.sh
Make it executable with
Code: Select all
chmod 755 /root/scripts/fan_activation.sh

Create a cronjob that runs every minute with
Code: Select all
crontab -e

then
Code: Select all
 * * * * * /root/scripts/fan_activation.sh


Of course is really the most basic way to avoid having a fan up 24/7... there must be other / better ways (like those mentionned in this thread...)
jcornuz
 
Posts: 9
Joined: Sun Sep 03, 2017 10:37 am
languages_spoken: english, french
ODROIDs: Oroid XU4 + Cloushell2

Re: Cloudshell 2: Fan always on?

Unread postby odroid » Mon Sep 04, 2017 7:30 am

Thank you for the useful script.
My CloudShell2 is much more silent now with temp_start_fan=50 in your script :D
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2: Fan always on?

Unread postby meveric » Mon Sep 04, 2017 9:32 pm

Well, since the fan was mainly to cool the HDDs not the ODROID itself you should check for HDD temp as well.
If the ODROID is idling the HDDs may still be running, so you should check the HDD temp as well and if they go over 45°C or something similar you should turn on the fan as well even if the ODROID itself is cooler.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9207
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: Cloudshell 2: Fan always on?

Unread postby crazyquark » Wed Sep 06, 2017 2:57 pm

I made a script that takes into account all CPU/GPU temps and DIsk temps:
https://github.com/crazyquark/xu4-cloudshell2-fancontrol/blob/master/xu4-fancontrol.sh.

It runs continuously because I want to make it into a systemd service.
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: Cloudshell 2: Fan always on?

Unread postby AezDropZz » Sat Jan 20, 2018 6:41 pm

Love your script man! There is only one small problem, you forgot to include the following code:

Code: Select all
get_disk_mount_info() {
        SATA=($(awk '/^\/dev\/sd/ {printf "%s ", $1}' /proc/mounts))
}


Also don't forget to add "get_disk_mount_info" to the while-loop. If this piece of code is not in it, it will not be able to get the drive temperatures.
AezDropZz
 
Posts: 10
Joined: Mon Dec 04, 2017 5:33 pm
languages_spoken: english
ODROIDs: XU4Q

Re: Cloudshell 2: Fan always on?

Unread postby crazyquark » Mon Jan 22, 2018 10:13 pm

I ignore those I think because I use LVM and my mounts are virtual.

Thank you!
crazyquark
 
Posts: 282
Joined: Thu Jan 15, 2015 4:22 pm
languages_spoken: english, french, romanian
ODROIDs: C1,C1+,C2,HC1,XU4

Re: Cloudshell 2: Fan always on?

Unread postby blong » Sat Mar 10, 2018 6:56 pm

Hi,

RFC on CS2 script
I wrote a script too, to handle at the same time :
a) cooling by fan depending on cpu's and hdd's temperatures (looks like your script but with a better optimisation in handle_fan() ? )
b) display of CPU/Network/HDD status on the LCD of CS2
c) the infinite loop to display on LCD can be stopped externally by Ctrl-C key hit
but I have a question : could it be possible to use PWM on this fan to avoid 0 rpm to full speed transitions ?
Thanks
Attachments
CS2-LCD-Fan.txt
a script to handle CS2 cooling and display
(7.01 KiB) Downloaded 127 times
blong
 
Posts: 4
Joined: Wed Jan 24, 2018 9:29 pm
Location: France
languages_spoken: french english
ODROIDs: Odroid XU4
Cloudshell 2

Re: Cloudshell 2: Fan always on?

Unread postby odroid » Sun Mar 11, 2018 2:31 pm

Thank you for sharing a very nice script.

No. the PWM controller chip on the CS2 PCB can't handle the fan motor speed due to a wrong frequency range.
Sorry about that.
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2: Fan always on?

Unread postby blong » Sun Mar 11, 2018 10:15 pm

:(
too bad !
Thanks
blong
 
Posts: 4
Joined: Wed Jan 24, 2018 9:29 pm
Location: France
languages_spoken: french english
ODROIDs: Odroid XU4
Cloudshell 2


Return to CloudShell

Who is online

Users browsing this forum: No registered users and 1 guest