[Solved] No odroid_fan.13 file in fresh installation

Post Reply
TheGammel
Posts: 9
Joined: Tue Mar 06, 2018 2:45 am
languages_spoken: english, german
ODROIDs: XU4
Contact:

[Solved] No odroid_fan.13 file in fresh installation

Unread post by TheGammel » Fri Apr 06, 2018 10:24 pm

Hey guys, I am using Ubuntu 16.04.3 with the 4.14 Kernel.

I downloaded the fresh image and put it onto the SD card with rufus. Then I wanted to change the fan speed to 100% with this guide: viewtopic.php?f=52&t=16308

However there is no such file as odroid_fan.13 or *.14....

Did the location change?
Last edited by TheGammel on Wed Apr 11, 2018 8:25 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29651
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by odroid » Fri Apr 06, 2018 11:07 pm

Fan control method has changed in Kernel 4.x
Look into the second page of the guide link.

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

Re: No odroid_fan.13 file in fresh installation

Unread post by TheGammel » Fri Apr 06, 2018 11:28 pm

Ok thx! I didn't realize, that this was such a mega-thread...

So after some time I found this:

Code: Select all

echo 35000 > /sys/class/thermal/thermal_zone1/trip_point_0_temp
echo 35000 > /sys/class/thermal/thermal_zone2/trip_point_0_temp
echo 35000 > /sys/class/thermal/thermal_zone3/trip_point_0_temp
echo 35000 > /sys/class/thermal/thermal_zone4/trip_point_0_temp
But where can I see to which speed that trip_point_0_temp corresponds to?


EDIT

I basically want to run the fan at 100% all the time...

DarkBahamut
Posts: 324
Joined: Tue Jan 19, 2016 10:19 am
languages_spoken: english
ODROIDs: XU4, N1
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by DarkBahamut » Sat Apr 07, 2018 2:09 am

If your kernel version is 4.14.20 or higher and you want to run the fan at 100% all the time then do:

Code: Select all

echo 0 > /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
echo 255 > /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
No longer any need to edit the trip points :)

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

Re: No odroid_fan.13 file in fresh installation

Unread post by TheGammel » Sat Apr 07, 2018 2:13 am

ok... that seems reasonable...
first shut off automatic speeds and then 100%...

but it outputs this error for both commands:

Code: Select all

-bash: /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic: Permission denied

DarkBahamut
Posts: 324
Joined: Tue Jan 19, 2016 10:19 am
languages_spoken: english
ODROIDs: XU4, N1
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by DarkBahamut » Sat Apr 07, 2018 2:23 am

You'll need to sudo them probably.

Code: Select all

echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
echo 255 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1

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

Re: No odroid_fan.13 file in fresh installation

Unread post by TheGammel » Sat Apr 07, 2018 7:59 am

Well I performed the above command as root...

Your command does not work either. I wonder what is going on...

DarkBahamut
Posts: 324
Joined: Tue Jan 19, 2016 10:19 am
languages_spoken: english
ODROIDs: XU4, N1
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by DarkBahamut » Sat Apr 07, 2018 8:05 am

What kernel version are you running?

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

Re: No odroid_fan.13 file in fresh installation

Unread post by TheGammel » Sat Apr 07, 2018 8:50 am

Code: Select all

root@huxley:~# cat /proc/version
Linux version 4.14.5-92 (root@1604_builder_armhf) (gcc version 5.4.1 20160904 (Ubuntu/Linaro 5.4.1-2ubuntu1~16.04)) #1 SMP PREEMPT Mon Dec 11 15:48:15 UTC 2017

User avatar
odroid
Site Admin
Posts: 29651
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by odroid » Sat Apr 07, 2018 9:54 am

Update the kernel first. The latest version should be 4.14.32 probably.
https://wiki.odroid.com/odroid-xu4/os_i ... st-upgrade

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

Re: No odroid_fan.13 file in fresh installation

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

Ok done and it works...

Code: Select all

root@huxley:~# cat /proc/version
Linux version 4.14.32-126 (root@1604_builder_armhf) (gcc version 5.4.1 20160904 (Ubuntu/Linaro 5.4.1-2ubuntu1~16.04)) #1 SMP PREEMPT Wed Apr 4 03:59:40 UTC 2018
I have no idea why a simple kernel update fixed it though... THANK YOU!

For Future Reference:

set fan to manual:

Code: Select all

echo 0 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/automatic
set speed to 100%:

Code: Select all

echo 255 | sudo tee /sys/devices/platform/pwm-fan/hwmon/hwmon0/pwm1
get temperature:

Code: Select all

cat /sys/devices/virtual/thermal/thermal_zone0/temp

User avatar
rooted
Posts: 6267
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by rooted » Sat Apr 07, 2018 6:26 pm

Or you can do this:

Code: Select all

echo 90000 | sudo tee /sys/devices/virtual/thermal/thermal_zone0/emul_temp
To go back to normal

Code: Select all

echo 0 | sudo tee /sys/devices/virtual/thermal/thermal_zone0/emul_temp

User avatar
mad_ady
Posts: 5227
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by mad_ady » Sat Apr 07, 2018 10:43 pm

Wouldn't that start triggering (or prevent from triggering) the cpu overheat protection as well?

User avatar
rooted
Posts: 6267
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: No odroid_fan.13 file in fresh installation

Unread post by rooted » Sun Apr 08, 2018 3:13 am

mad_ady wrote:Wouldn't that start triggering (or prevent from triggering) the cpu overheat protection as well?
Maybe, I just use it to manually cool down my device. If you echo higher than the third trip point it shuts down.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest