This is a fork from xu4-cloudshell2-fancontrol that was modified/combined with a script to display RAID Info and HDD Temperatures (modified from this). It is possible to set temperature thresholds for CPU and HDD where the fan will be turned on. Note that this is mainly a mere combination of different authors' work!
- this script was tested on Odroid Cloudshell 2 with XU4
- my RAID is encrypted and mounted to /dev/mapper/secure: in case you have multiple Harddrives, you may have to modify the reference to Harddrives for Temperature monitoring
- you can manually enable/disable the lcd-script by executing
systemctl stop cloudshell-lcd
andsystemctl start cloudshell-lcd
- follow these steps to install the original lcd-service from Odroid, e.g.:
(here is the link to the current script)
odroid@odroid:~$ sudo apt-get update odroid@odroid:~$ sudo apt-get install odroid-cloudshell cloudshell2-fan odroid@odroid:~$ sudo reboot
- overwrite the
/bin/cloudshell-lcd
and/bin/checkRAID.bash/
with the content in this repo - add the following line to crontab (
crontab -e
):0,15,30,45 * * * * /bin/checkRAID.bash > /bin/checkRAID.txt 2>&1
- optionally, edit the file
cloudshell-lcd.service
in/lib/systemd/system
and add two lines in [Service] section:
ExecStart=/bin/cloudshell-lcd
ExecStopPost=/usr/sbin/i2cset -y 1 0x60 0x05 0x00
This will enable the fan whenever the cloudshell-lcd.service stops. To prevent the fan to be enabled on system-shutdown, it is also necessary to copy the file shutdown-fan
to /lib/systemd/system-shutdown/
- see this topic for more information