Fan control in CM/LineagOS ODROID-XU4

Post Reply
ryanator
Posts: 20
Joined: Fri Jan 22, 2016 5:18 am
languages_spoken: english
ODROIDs: ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Fan control in CM/LineagOS ODROID-XU4

Unread post by ryanator » Wed Feb 01, 2017 5:04 am

For your information, the configuration of fan in ODROID-XU4 with Android CM is located in "/sys/devices/odroid_fan.14" folder.
In "fan_speeds" file we can set the speed of fan and in the "temp_levels" we can set corresponding temperature levels that change the speed of the fan (defined in the previous file). Changes in both files are reflected immediately, however after reboot they are set to default values. In order to have them persistent we need to create following script file (only if it doesn't exist already!)

Code: Select all

su
cd /data/local
touch userinit.sh
chown shell:shell userinit.sh
chmod 755 userinit.sh
nano userinit.sh
And we need to ad following lines inside

Code: Select all

#!/system/bin/sh 
echo "22 51 71 91" > /sys/devices/odroid_fan.14/fan_speeds
echo "57 63 68" > /sys/devices/odroid_fan.14/temp_levels
Values in both files should be changed to preferred ones

Maybe it will be helpful for somebody.

sprigo
Posts: 1
Joined: Sat Jul 06, 2019 7:00 pm
languages_spoken: english
ODROIDs: C1+ & N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Fan control in CM/LineagOS ODROID-XU4

Unread post by sprigo » Sat Jul 06, 2019 7:08 pm

Hi,
I'm a newbie too both Odroid and Android. I have a couple of N2's which I am using for crunching on the World Community Grid and although the thermal control seems excellent on the N2 the heatsinks do become hot. I have been using a 5V fan wired direct to the IO pins but would like to use the PWM.

Would the method shown in this thread work with the N2?

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Fan control in CM/LineagOS ODROID-XU4

Unread post by tobetter » Sat Jul 06, 2019 8:29 pm

sprigo wrote:
Sat Jul 06, 2019 7:08 pm
Hi,
I'm a newbie too both Odroid and Android. I have a couple of N2's which I am using for crunching on the World Community Grid and although the thermal control seems excellent on the N2 the heatsinks do become hot. I have been using a 5V fan wired direct to the IO pins but would like to use the PWM.

Would the method shown in this thread work with the N2?
https://wiki.odroid.com/odroid-n2/hardware#board_layout
Actually, the connector "P" is to connect an active cooler and a fan will run as predefined in the kernel per temperature.

In order to activate the fan, currently, you must do this command.

Code: Select all

$ sudo echo step_wise > /sys/class/thermal/thermal_zone0/policy
Since I've not tested by myself, I would also need to check and you can check, if it does not work then I would get help from the person who made the change on Monday KST.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests