Pages:
Author

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

newbie
Activity: 36
Merit: 0
Quote
    3. Run sudo nvidia-xconfig -a --allow-empty-initial-configuration --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0"

This command never works. OC settings still hidden.
newbie
Activity: 21
Merit: 0
Hi,

I just went through this guide.  Thanks!

But I am running into a slight problem.  I only seem to have overclock adjustment on 4 of my 6GPU's

When I try to adjust the other two, it does not verify the setting is set, or give an error.  also in the nvide settings gui, there are no adjustable settings on two of the GPU's.

I have looked at xorg.conf, and it looks like it has the same settings for all 6 gpu's, so I have no idea why only 4 are adjustable (they are all  gigabit gtx 1070).

Here is my xorg.conf
Quote
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 384.90  (buildmeister@swio-display-x86-rhel47-05)  Tue Sep 19 18:13:03 PDT 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"
    Screen      3  "Screen3" RightOf "Screen2"
    Screen      4  "Screen4" RightOf "Screen3"
    Screen      5  "Screen5" RightOf "Screen4"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor3"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor4"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor5"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:2:0:0"
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:4:0:0"
EndSection

Section "Device"
    Identifier     "Device3"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:6:0:0"
EndSection

Section "Device"
    Identifier     "Device4"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:8:0:0"
EndSection

Section "Device"
    Identifier     "Device5"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1070"
    BusID          "PCI:9:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "Device3"
    Monitor        "Monitor3"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen4"
    Device         "Device4"
    Monitor        "Monitor4"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen5"
    Device         "Device5"
    Monitor        "Monitor5"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    Option         "Coolbits" "28"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
e97
jr. member
Activity: 58
Merit: 1
Figured this out thanks to a few posts around the web and here..


    1. Clean install ubuntu-16.04.3-server
    2. Install cuda-9 using these instructions: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=deblocal
    3. Run sudo nvidia-xconfig -a --allow-empty-initial-configuration --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0"
    4. Reboot

    5. Commands for overclocking over SSH:


    sudo nvidia-smi -pm 1 # persistence mode

    sudo nvidia-smi -pl 150 # power limit


    Turn off LEDs
    sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPULogoBrightness=0

    Core clock and memory transfer speed (mem clock?)

    sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUGraphicsClockOffset[3]=-100

    sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[3]=1900

    Fans
    sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1
    sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=45
legendary
Activity: 1092
Merit: 1004
Does anyone have instructions on how to do this over SSH?

Nope. Been busy gaming this Fall Season!
e97
jr. member
Activity: 58
Merit: 1
Does anyone have instructions on how to do this over SSH?
newbie
Activity: 24
Merit: 0
Nice guide. I used it for this pendrive os. https://ba.net/zcash-eth-miner-os/
e97
jr. member
Activity: 58
Merit: 1
legendary
Activity: 1092
Merit: 1004
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?


6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding


You need to have identical models for Ubuntu e.g. all GTX 1060 or all GTX 1050 TIs.

In your situation: you will be limited to using Windows 10.

Did you get all 4 cards installed or where some missing in Nividia Xorg Server?


All cards are working without OC.


OK, overclocking and fan control can only be enabled when a monitor is connected to the GPU on primary PCI-Express slot.

Set it to PEG in bios. Make sure all the PCH is set to Gen1, and check if you also have the option to set the individual slot selections to Gen1.

Try starting with a GTX 1060 on primary PCI-Express slot.

If, that does not work, then try starting with GTX 1050 TI in the primary PCI-E slot.

As soon as you get a display output from one GPU connected to a monitor - you will be able to set fan controls and overclocking.

Also, see if Disabling above 4G decode works, it sometimes causes a black screen.



Does it matter if I use DP or HDMI?

Try it out, but Ubuntu tends to has a few of issues with HDMI.
newbie
Activity: 36
Merit: 0
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?


6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding


You need to have identical models for Ubuntu e.g. all GTX 1060 or all GTX 1050 TIs.

In your situation: you will be limited to using Windows 10.

Did you get all 4 cards installed or where some missing in Nividia Xorg Server?


All cards are working without OC.


OK, overclocking and fan control can only be enabled when a monitor is connected to the GPU on primary PCI-Express slot.

Set it to PEG in bios. Make sure all the PCH is set to Gen1, and check if you also have the option to set the individual slot selections to Gen1.

Try starting with a GTX 1060 on primary PCI-Express slot.

If, that does not work, then try starting with GTX 1050 TI in the primary PCI-E slot.

As soon as you get a display output from one GPU connected to a monitor - you will be able to set fan controls and overclocking.

Also, see if Disabling above 4G decode works, it sometimes causes a black screen.



Does it matter if I use DP or HDMI?
legendary
Activity: 1092
Merit: 1004
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?


6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding


You need to have identical models for Ubuntu e.g. all GTX 1060 or all GTX 1050 TIs.

In your situation: you will be limited to using Windows 10.

Did you get all 4 cards installed or where some missing in Nividia Xorg Server?


All cards are working without OC.


OK, overclocking and fan control can only be enabled when a monitor is connected to the GPU on primary PCI-Express slot.

Set it to PEG in bios. Make sure all the PCH is set to Gen1, and check if you also have the option to set the individual slot selections to Gen1.

Try starting with a GTX 1060 on primary PCI-Express slot.

If, that does not work, then try starting with GTX 1050 TI in the primary PCI-E slot.

As soon as you get a display output from one GPU connected to a monitor - you will be able to set fan controls and overclocking.

Also, see if Disabling above 4G decode works, it sometimes causes a black screen.

newbie
Activity: 36
Merit: 0
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?


6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding


You need to have identical models for Ubuntu e.g. all GTX 1060 or all GTX 1050 TIs.

In your situation: you will be limited to using Windows 10.

Did you get all 4 cards installed or where some missing in Nividia Xorg Server?


All cards are working without OC.
legendary
Activity: 1092
Merit: 1004
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?

6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding


You need to have identical models for Ubuntu e.g. all GTX 1060 or all GTX 1050 TIs.

In your situation: you will be limited to using Windows 10.

Did you get all 4 cards installed or where some missing in Nividia Xorg Server?
newbie
Activity: 36
Merit: 0
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?

6600K
MSI Z170 Pro
2x 1060, 2x 1050 Ti (USB3 Risers)
Ubuntu 17.04
onboard output (tried GPU but doesn't work either)
Gen1, 4G decoding
legendary
Activity: 1092
Merit: 1004
Need to find out about the setup then!

CPU?

USB 3 Risers?

Motherboard?

Number of GPUs?

Type of GPUs?

Ubuntu Version?

Do you have one GPU acting as the display output or are you using onboard graphics?

PCI-E settings?
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.

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.
After logging out I got suck on the login screen. Can't login again and after reboot the xorg.conf is reset to default (no oc)

Try it again, it is a workaround - sometimes it takes a couple of tries.

Tried 100x, not possible.
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.
After logging out I got suck on the login screen. Can't login again and after reboot the xorg.conf is reset to default (no oc)

Try it again, it is a workaround - sometimes it takes a couple of tries.
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.

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.
After logging out I got suck on the login screen. Can't login again and after reboot the xorg.conf is reset to default (no oc)
brand new
Activity: 0
Merit: 0
I have Coolbits set to 31 but I don't have any uder/overvolt settings in nvidia-settings…
legendary
Activity: 1092
Merit: 1004
I have Coolbits set to 31 but I don't have any uder/overvolt settings in nvidia-settings…

I've got no interest in this feature, as I said before! It is a Command Terminal feature, only.

Some websites says it allows undervolting, but most websites say it only allows overvolting up to 37500 microvolts.
member
Activity: 85
Merit: 100
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.

I don't quite understand about the cool-bits setting, that's the reason why I still haven't OC my cards yet. I googled from net and found that some cards required cool-bits=24, and some 28. What is this actually? Any detailed info about the cool-bits code?
Pages:
Jump to: