GithubHelp home page GithubHelp logo

whatsminer-fakefan's Introduction

Whatsminer Fake Fan

This script emulates fan speed values for cgminer and system (all that reading speed by /sys/class/fanspeed/ path)

Installation

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.

As an init.d script

  1. Copy fake_fan_initd from repo to the ASIC filesystem to /etc/init.d/ directory using scp (for example scp fake_fan_initd 192.168.1.120:/etc/init.d/fakefan).
  2. Run chmod +x /etc/init.d/fakefan.
  3. Execute script /etc/init.d/fakefan manually or reload ASIC. Script will not start automatically after putting it to the /etc/init.d/ folder.

As a boot script part

  1. Place fake_fan.sh from this repository to the remote asic /etc folder. You can run scp in case if you are using MacOS or another Unix system.
  2. Then you need to give yourself a permissions for writing to /etc/init.d/boot, just run: chmod +w /etc/init.d/boot
  3. 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.

Note

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.

whatsminer-fakefan's People

Contributors

draiget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

whatsminer-fakefan's Issues

Fan detect speed error

I've done everything as described, rooted the system, (running on latest firmware). using the init.d
I get this
110 | Fan in detect speed error | 2021-06-06 15:51:32
111 | Fan out detect speed error | 2021-06-06 15:51:32
130 | Fan in speed error, percent: 0, speed: 6000 | 2021-06-06 15:51:14
131 | Fan out speed error, percent: 0, speed: 6000 | 2021-06-06 15:51:14

SSH access for m2x m3x

Is it possible to support m2x m3x series machines? How can I access ssh under the root user with full read write privileges

permission denied (newer firmware)

Hello and good evenings !
With the newer firmware, there is no root access :(
so therefor, the steps explained in your guide cannot be proceeded.
Can you please provide us with an older firmware with root access, or a new one with root access.
Thank you !!

m21s help needed

Hello,
I'm trying to use this script on m21s asic miner. I can't mount filesystem.

Thanks.

Permission denied

Hi my m3 v2 firmware version is 20190404. I wanted to copy fake_fan_initd file to etc/init.d with WinSCP.
But this message appears. "copying file failed"
"scp: /etc/init.d/fake_fan_initd: Permission denied".
Please help me.
https://imgur.com/a/5yEDSfY

Hello

Hello,
I have an M32 whatsminer and I would like to use your script to put it in the oil. However, I have a lot of error. I am not a fan of SSH and use a Windows environment.
The errors are: Are you root? Access denied

I tried to do the lines one after the other in CMD from a workstation but it doesn't work either.

Could you guide me on Windows to set up your fan simulator?

PS: I have access to Putty on my miner.

control fan speed

Hello,
Is it possible to control the fan speed on a specific number?
For example, I want to put 3000 for fan speed.
the released file change the fan speed up to 6600

firmware M3

With what firmware working this script?
I have Whatsminer M3 and autofreq firmware, just tested script with connected fan, but it not work :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.