I know people say only do cellphone mining for the “lulz” and whatever. But what if you can make it efficient? I feel like it is, on the new cn-pico/cn-turtle algorithm. I’m going to here on out refer to it as cn-pico, to avoid confusion.
Just a quick numbers discussion, to show why I’m even messing with this: I have an old laptop. It runs about 250h/s on cn-lite. Uses an average of ~25w. I put it on cn-pico, and it does closer to 1000h/s (40h/s/w). So it jumps about 4x in efficiency, or a ratio of 1:4. I haven’t noticed a power difference of more than +/- 1%. I’ve got a desktop that mines cn-lite at about 2600 h/s (it’s maybe an AMD FX + AMD 580? Can’t recall, no time to look it up). I move that guy to cn-pico and it gets 10200 h/s (225w, so ~45h/s/w). Again, pretty close to 1:4 (the cpu does better than the gpu, if I remember correctly). I have several more devices that I tried this on, but they tell the same story — on desktops and laptops, I always get close to a 1:4 ratio of cnlite:cnpico, about the same power draw on both algorithms. Usually in the ballpark of 40-45 h/s/w.
But then I started tinkering with cellphones. Those are ARM processors, right? I’m not an expert, but I think that’s right. I installed Termux, tmux, and sshd (more on those later). I’ve tried this on three phones (all were free to me, but had cracked screens, bad batteries, etc) — an LG G5, a Google Pixel, and Samsung Galaxy S7. Here are the results:
phone | cn-lite | cn-pico | l:p ratio | power-draw | h/s/w
G5 | 50h/s | 830h/s | 1:16 | 5.5w | 150
Pxl | 45h/s | 630h/s | 1:14 | 5.5w | 114
S7 | 35h/s | 780h/s | 1:22 | 5.5w | 141
That’s kind of interesting, right? Suddenly these little processors are worth something. Instead of 10 h/s per watt that I was getting on my laptop, I can get a ridiculous 150 h/s/w on the LG G5. Even the Pixel at 114 h/s/w is crazy by comparison. I could spend a couple hours gathering up more data to prove the same thing over and over, but I meant to actually write a how-to article, here!
So if you’ve got a phone you’re not really using, and you don’t care if you break it — mining a cn-pico coin might be a good way to use it! Quick tips:
–Don’t use your main cellphone. C’mon, that’s risky.
–I think you need android 6.0 or later. (no idea on comparable software for iphones)
–Do something to keep it cool. Keep it near a fan.
–Keep the screen OFF.
–Use merge-mining pools, because free coins.
Step 1: Install Termux
I learned how to do this from here: https://docs.turtlecoin.lol/guides/mining/mobile-mining/using-termux/
It may be a good idea to open a browser to this page on the android device, so you can copy/paste these commands instead of typing them out.
1. Use the Play Store of F-droid to download Termux
2. Open Termux
3. Run apt update
4. Run apt install wget cmake libuv-dev clang nano
5. Run wget “https://github.com/xmrig/xmrig/archive/v2.14.1.tar.gz” or wget “https://is.gd/QOZi6d”
6. Run tar xzvf v2.14.1.tar.gz
7. Run cd xmrig-2.14.1
8. Run mkdir build && cd build
9. Run cmake .. -DWITH_HTTPD=OFF -DWITH_TLS=OFF
10. Run make
11. Run cp ../src/config.json config.json
12. Run nano config.json and adjust your config settings to match you wallet and pool etc. Nano is interesting on mobile — hold volume up and use WASD as if they were arrow keys to get around.
13. Find and change the following lines:
14. “algo: “cryptonight-lite” to “cryptonight-pico/trtl”
15. “url: “pool.llama.horse:10221” (this is L&H’s wtips+elph pool)
16. “user: “[worktips wallet address]”
17. password: “[elphyrecoin wallet address]”
18. rig-id: “[name of your worker/rig]”
Test it, make sure it all works. If it won’t compile, reboot the phone, double-check all the instructions. If it compiles but won’t connect or won’t hash, check your config file for errors. I’ve had good luck maintaining high hashrates by changing the lower power mode from 1 to 0, but it varies from phone to phone.
Once that’s all straightened out, kill xmrig. ctrl+c or whatever. Now you want tmux. Some people use screen, I use tmux. The point of this program is so that xmrig will run at full-blast with the screen OFF. You could probably also run xmrig as a systemd process or something, but if that’s your jam, then you don’t need this writeup!
apt install tmux (installs tmux)
tmux new -s xmrig (creates a new tmux instance named “xmrig”
ctrl+b, d (disconnects you from tmux)
tmux ls (lists all running tmux sessions)
tmux a -t xmrig (reconnects you to the “xmrig” tmux)
Now, from within that tmux session, run ./xmrig-notls again. You’re off to the races. Now, you can turn off the screen, set your phone near some kind of air movement or other method of cooling, and let it be incredibly efficient at mining cn-pico!
If you want to dig further, you can also install sshd for termux, so that you can ssh in from a computer. I’ve tinkered with this, but it’s probably more work than it’s worth. If anyone has a good app for starting Termux at boot, let me know! I’ve tried a few, and they’re all trash — they may start some apps, but not Termux. Another good program you may want to try out if you get more than one phone going is xmrig-proxy. It’s definitely outside the scope of this article, but it’s easy to find and setup. Makes changing pools for all your phones very fast/easy.
Want a couple easy coins to try it out on? BitcoinMono and Oscillate are both smallish-network coins that can be merge-mined. Plus we have webwallets for both of them so it’s very easy to dig in. Here are the relevant links:
OSC wallet: https://oscwallet.llama.horse
BTCM wallet: https://btcmwallet.llama.horse
That’s that! Any questions or comments, hit me up on Discord!