Skip to content

This is a fork that was modified/combined with a script to display RAID Info and HDD Temperatures on the Odroid Cloudshell 2's LCD. It is possible to set temperature thresholds for CPU and HDD where the fan will be activated.

Notifications You must be signed in to change notification settings

Sieboldianus/xu4-cloudshell2-fancontrol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xu4-cloudshell2-fancontrol with RAID monitoring

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!

Notes

  • 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 and systemctl start cloudshell-lcd

Installation

  • follow these steps to install the original lcd-service from Odroid, e.g.:
    odroid@odroid:~$ sudo apt-get update
    odroid@odroid:~$ sudo apt-get install odroid-cloudshell cloudshell2-fan
    odroid@odroid:~$ sudo reboot
    (here is the link to the current script)
  • 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

Example Screen

Example LCD Screen

About

This is a fork that was modified/combined with a script to display RAID Info and HDD Temperatures on the Odroid Cloudshell 2's LCD. It is possible to set temperature thresholds for CPU and HDD where the fan will be activated.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%