Pages:
Author

Topic: HOW TO SET UP OVERCLOCKING AND FAN CONTROL ON UBUNTU 16.04 FOR NVIDIA CARDS - page 4. (Read 54990 times)

legendary
Activity: 1092
Merit: 1004
can i ask if it supports undervolting of cards ? thanks

I believe "cool-bits=31" allows you to overvolt and undervolt. You'll need to google the ins and outs of undervolting an Nvidia GPU - no experience of it myself.

It is easier, to simply set the max watts you willing to let the GPUs use whilst mining.
newbie
Activity: 34
Merit: 0
can i ask if it supports undervolting of cards ? thanks
legendary
Activity: 1092
Merit: 1004
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration


I tried but still the same problem Sad

Not a lot can be done - especially, as you won't try using Gen 2 or Gen 1!
I tried this too but didn't change anything.
I noticed that oc works on a card with monitor plugged in but this not a solution for mining.

Had chance to look into this problem and found a work-around that does not involve using dummy monitor plugs.

Firstly, log in and enable overclocking on one GPU:

sudo nvidia-xconfig -a --cool-bits=28

Log out and then log back in, then enable overclocking on all the other identical GPUs:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

Then log out and log back in and all the GPUs will have overclocking and fan control enabled.
member
Activity: 85
Merit: 100
Very detailed guide. I just wondering how to select which GPU to change the configuration?

nvidia-smi -i 0 -q -d POWER

-i 0 is selection of GPU 0?

And my mining rig is ubuntu 14.04, will it work?

No idea, I've not done much testing on the reduced power settings. Simply, tested it will a single card.

And, I don't use legacy OS's like 14.04LTS or Windows 7, because they take to long to set up and update.

Ubuntu 16.04LTS can be installed and updated with an install of Cuda 8 in under 30 minutes. 


I have googled around and yes, "-i 0" means GPU 0.

I wish I could use ubuntu 16.04 but my mining rig already built in ubuntu 14.04. I will spend some time one day to re-install it. At the meantime, I will try to overclock and will update my status here later.

Thanks for your info anyway.
legendary
Activity: 1092
Merit: 1004
Very detailed guide. I just wondering how to select which GPU to change the configuration?

nvidia-smi -i 0 -q -d POWER

-i 0 is selection of GPU 0?

And my mining rig is ubuntu 14.04, will it work?

No idea, I've not done much testing on the reduced power settings. Simply, tested it will a single card.

And, I don't use legacy OS's like 14.04LTS or Windows 7, because they take to long to set up and update.

Ubuntu 16.04LTS can be installed and updated with an install of Cuda 8 in under 30 minutes. 
member
Activity: 85
Merit: 100
Very detailed guide. I just wondering how to select which GPU to change the configuration?

nvidia-smi -i 0 -q -d POWER

-i 0 is selection of GPU 0?

And my mining rig is ubuntu 14.04, will it work?
legendary
Activity: 1092
Merit: 1004
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration


I tried but still the same problem Sad

Not a lot can be done - especially, as you won't try using Gen 2 or Gen 1!
I tried this too but didn't change anything.
I noticed that oc works on a card with monitor plugged in but this not a solution for mining.

The following command is meant to allow you to allow overclocking on the additional GPUs without a dummy monitor plug.

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

Sometimes, non-reference engineering on a motherboard can prevent Ubuntu from installing or commands from working - some motherboard manufacturers don't give the non-reference engineering design to Ubuntu for inclusion in a Kernel revision.

However, you can buy an HDMI dummy monitor plug from Amazon or eBay for $8.39. But, if you are willing to wait for a bit, you can get one shipped from a Chinese seller on eBay for cheaper. That will get overclocking working on the 2nd GPU.
newbie
Activity: 36
Merit: 0
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration


I tried but still the same problem Sad

Not a lot can be done - especially, as you won't try using Gen 2 or Gen 1!
I tried this too but didn't change anything.
I noticed that oc works on a card with monitor plugged in but this not a solution for mining.
legendary
Activity: 1092
Merit: 1004
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration


I tried but still the same problem Sad

Not a lot can be done - especially, as you won't try using Gen 2 or Gen 1!
newbie
Activity: 36
Merit: 0
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration


I tried but still the same problem Sad
legendary
Activity: 1092
Merit: 1004
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.

A couple of options:

a) try Ubuntu 17.04LTS - it has an updated kernel that may be better with your CPU and motherboard.

b) try Nvidia' newer drivers

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update.

Then go to additional drivers - an every Nvidia Ubuntu driver release up to the recent 384.59 will be available for install.

Sometimes, you'll need to click open Ubuntu Software and update X Server control panel for that driver.

Remember, after switching drivers and rebooting you will need to re-enter:

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
newbie
Activity: 36
Merit: 0
No it doesn't matter with 2 cards. Works perfectly in Windows. Just can't OC in Linux.
legendary
Activity: 1092
Merit: 1004
2x 1060
6600k
MSI Z170-A Pro
directly
375 driver from ubuntu repo
Gen3



Try Gen 1 and Gen 2. Also,

Usually, you need to try older PCI-E speeds.
newbie
Activity: 36
Merit: 0
2x 1060
6600k
MSI Z170-A Pro
directly
375 driver from ubuntu repo
Gen3

legendary
Activity: 1092
Merit: 1004
Does not work for me. The xorg.conf is reset after every boot and no oc settings showing.

What card and how many?

What CPU?

What motherboard?

Directly plugged into motherboard or USB 3 risers?

What Nvidia Drivers?

What PCI-Express Gen?
newbie
Activity: 36
Merit: 0
Does not work for me. The xorg.conf is reset after every boot and no oc settings showing.
newbie
Activity: 52
Merit: 0
Thanks for the guide, was very helpful. Can you control fan speed of 2 or more cards?
For some reason, I can only control fans of one card, but not both (I have a 980 Ti and 970 installed, 980 Ti is adjustable). Works flawless otherwise.

Assuming your fan controls are built to Nvidia spec, this activates both card controls:
 
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

Doing it via the Nvidia X Server Settings

GPU 0 or GPU 1

Thermal Settings, move slider to the desired fan speed and click apply.

Or, you can create sh profile and attach it to the startup as the guide explains.
It was actually my mistake. I installed the second card after I modified xconfig with your command, so it did not add the string to the second GPU entry in the config file. I reran the command  and rebooted. Works as expected now. Thanks a lot Smiley
legendary
Activity: 1092
Merit: 1004
Thanks for the guide, was very helpful. Can you control fan speed of 2 or more cards?
For some reason, I can only control fans of one card, but not both (I have a 980 Ti and 970 installed, 980 Ti is adjustable). Works flawless otherwise.

Assuming your fan controls are built to Nvidia spec, this activates both card controls:
 
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

Doing it via the Nvidia X Server Settings

GPU 0 or GPU 1

Thermal Settings, move slider to the desired fan speed and click apply.

Or, you can create sh profile and attach it to the startup as the guide explains.
newbie
Activity: 52
Merit: 0
Thanks for the guide, was very helpful. Can you control fan speed of 2 or more cards?
For some reason, I can only control fans of one card, but not both (I have a 980 Ti and 970 installed, 980 Ti is adjustable). Works flawless otherwise.
legendary
Activity: 1092
Merit: 1004
thanks for the guide, is it also possible to set a powerlimit?

Set Nvidia Drivers to persistent state (you must be in root - open terminal and enter "sudo -i"):

nvidia-smi -pm 1

First ask nvidia-smi what's the max power and min power limits are:

nvidia-smi -i 0 -q -d POWER

This will show MAX Power and MIN POWER allowed.

GTX 750TI as an example:
MIN POWER 30 W
MAX POWER 38.5 W

Then, you can reduce the watts to the MIN POWER allowed:

sudo nvidia-smi -pl 30

This gives you a net reduction of 22%.

Tested on Ubuntu, with max GPU load via running Unigine Heaven 4 Benchmark at MIN POWER.
Pages:
Jump to: