This script emulates fan speed values for cgminer and system (all that reading speed by /sys/class/fanspeed/ path)
As a zero step you need to be able to edit system files, if you never run mount -o remount,rw /
command, you should do this. That makes you able to write to ASIC filesystem, by default it is read only.
- Copy fake_fan_initd from repo to the ASIC filesystem to
/etc/init.d/
directory usingscp
(for examplescp fake_fan_initd 192.168.1.120:/etc/init.d/fakefan
). - Run
chmod +x /etc/init.d/fakefan
. - Execute script
/etc/init.d/fakefan
manually or reload ASIC. Script will not start automatically after putting it to the/etc/init.d/
folder.
- Place
fake_fan.sh
from this repository to the remote asic/etc
folder. You can runscp
in case if you are using MacOS or another Unix system. - Then you need to give yourself a permissions for writing to
/etc/init.d/boot
, just run:chmod +w /etc/init.d/boot
- Run following command:
sed -i.back -e 's|reload_config|reload_config\n\texec /etc/fake_fan.sh|g' /etc/init.d/boot
That basically will add exec /etc/fake_fan.sh
to the end of boot() {
function which is located in main /etc/init.d/boot
.
4. That's all, now you can reboot cgminer (kill -9 cgminer
) and check it out.
With this emulation intake and outtake (both), fans can be disconnected, there's no any checks that fans are installed, only cgminer will check the speeds of fans and prevent miner from starting without working fans.
Feel free to contact me through issues.