Skip to content

Commit

Permalink
Improve "tutorial" on XU4 / absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nthx committed Sep 8, 2015
1 parent fde868c commit 4321d56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# odroid-xu3-fan-control
Makes Odroid XU3 Lite fan silent on idle load
Makes Odroid XU3 Lite / XU4 fan silent on idle load

## Odroid XU3 Lite

Expand All @@ -11,9 +11,10 @@ Was not tested anywhere else. Might work though after adjusting script variables

## Precautions

### Only *Odroid XU3 Lite* is supported
### *Odroid XU3 Lite* and *Odroid XU4* are supported

Users report it *does not* work on XU4
I only poses and test myself on XU3 Lite
Users report it works on XU4

### Is it safe to use?

Expand All @@ -26,28 +27,24 @@ I use and will use this software. But in the end - if anything happens to your h
## Usage

sudo apt-get install git
mkdir -p /home/odroid/
git clone https://github.com/nthx/odroid-xu3-fan-control.git
cd odroid-xu3-fan-control
cd odroid-xu3-fan-control/
sudo ./odroid-xu3-fan-control.sh

## Installation

To make it start when system boots:

edit odroid-fan-controller and add the path of the odroid-xu3-fan-control.sh script (full-pathname), then do the following to add it
to the runlevels

cd /etc/init.d/
#adjust to correct, absolute path below
sudo ln -s ~/odroid-xu3-fan-control/odroid-fan-controller
sudo ln -s /home/odroid/odroid-xu3-fan-control/odroid-fan-controller
sudo update-rc.d odroid-fan-controller defaults

you can also use the following to start the controller
To start manually

sudo /etc/init.d/odroid-fan-controller start

or
To stop manually

sudo /etc/init.d/odroid-fan-controller stop

to stop the controller
3 changes: 1 addition & 2 deletions odroid-fan-controller
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
# Description: Enable service provided by daemon.
### END INIT INFO

#adjust dir below. Example: dir="/home/nthx/odroid-xu3-fan-control/"
dir=""
user="root"
cmd="./odroid-xu3-fan-control.sh"
cmd="/home/odroid/odroid-xu3-fan-control/odroid-xu3-fan-control.sh"

name=`basename $0`
pid_file="/var/run/$name.pid"
Expand Down

2 comments on commit 4321d56

@lugiann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
i have modified odroid-xu3-fan-control.sh to reduce the number of update on the FAN_SPEED_FILE.
This modification also reduces the kernel logging messages because the kernel logs any update of set_pwm_duty and set_fan_mode (updated in every cycle in your version).
I'm new on github and i don't know how i can commit the new version and/or contribute to this project.

I have attached to this message a copy of my modifications.

Thanks for your work, i find it very usefull.

odroid-xu3-fan-control.sh.txt

@nthx
Copy link
Owner Author

@nthx nthx commented on 4321d56 Nov 23, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lugiann thanks a lot! I've pushed your changes (slightly modified)

Please sign in to comment.