Set coolbits value on Fedora Linux

You sometimes need to set the coolbits value to overclock your GPU on Linux

You’ll need to install nvidia-xconfig

sudo dnf install nvidia-xconfig

Then you can set the cool bits value with the following command. Change 24 to the appropriate cool bits value. Refer to the link below.

sudo nvidia-xconfig --cool-bits=28

It’ll create a new xorg config file. Reboot to take advantage of cool bits being enabled.

https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Enabling_overclocking

GTX 1070 – ETH Hashrate and Power Consumption

Nvidia GTX 1070 ETH Hashrate and Power Consumption

The following is the estimated Hashrate and power consumption of a GTX 1070 based on web sources.

GTX 1070

Cost

Cost Used (eBay)
February 2021: $300 – $500

Hasrate for Ethash and Power Consumption

Hashrate: 26/Mhs

Power Consumption
Average: 130 W


Average Mhs Per Watt : 0.2/Mhs
Average Watts Per Mhs: 5 W

Profitability is about $2.97/day as of February 9, 2021

https://whattomine.com/coins/151-eth-ethash?hr=26&p=130&fee=0.0&cost=0.1&hcost=0.0&commit=Calculate

GTX 3090 – ETH Hashrate and Power Consumption

Nvidia GTX 1070 ETH Hashrate and Power Consumption

The following is the estimated Hashrate and power consumption of a GTX 1070 based on web sources.

GTX 1070

Cost

Cost Used (eBay)
February 2021: $300 – $500

Hasrate for Ethash and Power Consumption

Hashrate: 26/Mhs

Power Consumption
Average: 130 W


Average Mhs Per Watt : 0.2/Mhs
Average Watts Per Mhs: 5 W

Profitability is about $2.97/day as of February 9, 2021

https://whattomine.com/coins/151-eth-ethash?hr=26&p=130&fee=0.0&cost=0.1&hcost=0.0&commit=Calculate

Nvidia RTX 3080 – Hashrate and Power Consumption

Nvidia RTX 3080 ETH Hashrate and Power Consumption

The following is the estimated Hashrate and power consumption of a RTX 3080 based on web sources.

RTX 3080

Cost

Cost Used (eBay)
February 2021: $1600 – $2000

Hasrate for Ethash and Power Consumption

Hashrate: 97/Mhs

Power Consumption
Average: 250 W


Average Mhs Per Watt : 0.39/Mhs
Average Watts Per Mhs: 2.58 W

Profitability is about $12.45/day as of February 9, 2021

https://whattomine.com/coins/151-eth-ethash?hr=97.0&p=250.0&fee=0.0&cost=0.1&hcost=0.0&commit=Calculate

Radeon RX 570 – Hashrate and Power Consumption

These are the average RX 570 hashrates I have been getting while mining Ethereum.

https://www.msi.com/Graphics-Card/Radeon-RX-570-ARMOR-8G-OC

RX 570 brand MSI Armour

Cost

Cost Used (eBay)
February 2021: $225 – $330

Hasrate and Power Consumption

Ethereum Ethash
Hashrate: 28.5/Mhs

Power Consumption
Range: 111 – 119 W
Average = ~115 W

Settings
Core: 1100
V: 800
Mem : 2000


Average Mhs Per Watt : 0.25/Mhs
Average Watts Per Mhs: 4.04 W

Profitability is about $3.36/day as of February 9, 2021

https://whattomine.com/coins/151-eth-ethash?hr=28.0&p=115.0&fee=0.0&cost=0.1&hcost=0.0&commit=Calculate

Unsupported DEB-based OS: /etc/os-release ID ‘kali’

Unsupported DEB-based OS: /etc/os-release ID ‘kali’. You can get the above error if you try to install AMD drivers on Kali Linux. Looks like by default they are looking for a system that is Ubuntu, LinuxMint or Debian.

You can resolve the issue by opening up the “amdgpu-pro-install” file and adding more OS’s that it can check for.

vi ./amdgpu-pro-install

Scroll down to line 147 where is says

ubuntu|linuxmint|debian) 

and change it to

ubuntu|linuxmint|debian|kali)

The code function should look like the following.

142 function os_release() {
143         if [[ -r  /etc/os-release ]]; then
144                 . /etc/os-release
145
146                 case "$ID" in
147                 ubuntu|linuxmint|debian|kali)
148                         :
149                         ;;
150                 *)
151                         echo "Unsupported DEB-based OS: `
152                                 `/etc/os-release ID '$ID'" | stderr
153                         exit 1
154                         ;;
155                 esac
156         else
157                 echo "Unsupported OS" | stderr
158                 exit 1
159         fi
160 }

Save a close the file and install the AMD drivers

./amdgpu-pro-install -y --opencl=legacy,rocm --headless

Looking at trying to install AMD drivers for mining? Check out the following link
Install RX 580 Mining Drivers on Debian Based Distributions

More info on Stack Exchange
https://elementaryos.stackexchange.com/questions/24282/cant-install-amd-drivers-on-elementaryos-hera-unsupported-deb-based-os

Nanominer – Lower intensity for GPU

https://help.nanominer.org/article/168-gpu-and-cpu-control

By default Nanominer sets the memTweak option to 1. This slightly improves memory timings. However it introduces a little bit of UI lag. This can be a problem if you are trying to use your computer for other tasks. The simple resolution is to change/add the memTweak setting to 0.

memTweak=0

Example config

wallet = WALLET_ADDRESS
; Coin to mine.
coin = ETH
; (Optional) Rig (worker) name.
rigName = EthMiner
memTweak=0

Install nVidia GeForce Drivers on Fedora 27

Install free and non-free rpmfusion

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Install drivers

dnf install xorg-x11-drv-nvidia akmod-nvidia
dnf install xorg-x11-drv-nvidia-cuda 
dnf update -y

Reboot

reboot

You may need to set the DPI settings.  See here for more details.