Pages:
Author

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

legendary
Activity: 2030
Merit: 1076
BTCLife.global participant
If using monitor attached to intel graphics of ssh try this command. This worked for me with Xubuntu 18.04 and nvidia 390 drivers.

sudo nvidia-xconfig -a --cool-bits=31 --allow-empty-initial-configuration
sudo systemctl restart lightdm.service
sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a 'GPUFanControlState=1' -a 'GPUTargetFanSpeed=100'

This changes fan to 100% but over clock works the same way.


I found the answer here.

https://www.linuxquestions.org/questions/linux-general-1/how-to-run-nvidia-settings-remotely-4175599391/

Ok, but me and another guy are looking for an answer hot to set GPU fan speed to any custom value on Ubuntu 18.x Server, i.e. with no X, no GUI, no DE...

https://superuser.com/q/1398591/1004977

Could anyone please help us?

p.s. I found it, and it seems to be working solution for our case! https://bitcointalksearch.org/topic/m.24914477
member
Activity: 214
Merit: 24
I am having great difficulty trying to overclock the memory of the GTX 750 in my rig.


After much research this is where I am at:

From a shellinabox terminal to the rig I do this command:

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

The result is this message: The attribute 'GPUMemoryTransferRateOffset' specified in assignment '[gpu:0]/GPUMemoryTransferRateOffset[0]=100' cannot be assigned (it is a read-only attribute).

Any ideas in how to solve this issue?

-------------------------------------------------------------------

EDIT SOLVED: the issue was I needed to use index 1 not 0 as in:

DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[1]=200

This Guide states to use 3 but if I use either 3 or 2 the command doesn't return anything but when I use 1 I get this:

Attribute 'GPUMemoryTransferRateOffset' (H110-1:0[gpu:0]) assigned value 200.

and with this command: nvidia-smi -i 0 -q -d CLOCK

I can see the memory speed has changed from 2505 to 2605 or by 100. Memory MHz is twice that so 2505 == 5010 MHz and 2605 is 5210 MHz or 200 MHz faster.

-------------------------------------------------------------------

Rig Spec's:

ASRock H110 Pro BTC+ Motherboard
Celeron G3930 CPU
4GB DDR4 Memory
180GB NVMe SSD
13x Nvidia GTX 750 GPUs

Running Ubuntu 16.04.5 LTS

Coolbits is set to 28 for all the GPU's

Nvidia Driver: Driver Version: 396.54
newbie
Activity: 6
Merit: 0
Thanks to the OP, I configured my ubuntu 16.04 for overclocking and fan control, however few questions.


1. I had to connect one of the GPU to monitor in order to configure OC , however after everything done, can i go back and use Integrated Graphics? , that worked smooth for me , with Nvidia GPU to monitor , the mouse cursor lags to move (even when it is not mining)  and it is frustrating.   Has anyone come across such ? any solution

2. Is there any way to control fan curve instead of a fix % of fan speed ?

Thanks, again.
newbie
Activity: 24
Merit: 0
If using monitor attached to intel graphics of ssh try this command. This worked for me with Xubuntu 18.04 and nvidia 390 drivers.

sudo nvidia-xconfig -a --cool-bits=31 --allow-empty-initial-configuration
sudo systemctl restart lightdm.service
sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a 'GPUFanControlState=1' -a 'GPUTargetFanSpeed=100'

This changes fan to 100% but over clock works the same way.


I found the answer here.

https://www.linuxquestions.org/questions/linux-general-1/how-to-run-nvidia-settings-remotely-4175599391/

newbie
Activity: 29
Merit: 0
Hello!
Please help me with one problem! I don't know how to enable OC on nvidia p106/p104 system with connected monitor to inegrated graphics.

I installed different nvidia drivers, but everytime had the same problem - adding options like coolbits doesn't work. When I restart x-server or reboot after changing xorg.conf - it resets to the default. If I make this file read-only - x-server crashes at the start.
I tried a lot of variants, but nothing is working.

Such commands like this do nothing for me
sudo nvidia-xconfig -a --allow-empty-initial-configuration --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0" --custom-edid="DFP-0:/etc/X11/dfp-edid.bin"

On other system with usual GTX 10xx cards all is working good.

My system is usual, it is for test only.

Asus H110M-k
Intel Celeron G3900
4GB DDR4
1x GPU P104-100 (on the 1st pci-e slot)

I have a connected monitor to internal graphics.

 
How can I unlock the overclocking on nvidia P104?


https://miningclub.info/threads/majning-na-linux-mint-ubuntu-nvidia-amd-majnery-razgon-ehtakij-how-to-dlja-novichkov.19005/page-27#post-902545

Is that you Bro ?
If not, maybe it will be helpfull
newbie
Activity: 40
Merit: 0
Hello!
Please help me with one problem! I don't know how to enable OC on nvidia p106/p104 system with connected monitor to inegrated graphics.

I installed different nvidia drivers, but everytime had the same problem - adding options like coolbits doesn't work. When I restart x-server or reboot after changing xorg.conf - it resets to the default. If I make this file read-only - x-server crashes at the start.
I tried a lot of variants, but nothing is working.

Such commands like this do nothing for me
sudo nvidia-xconfig -a --allow-empty-initial-configuration --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0" --custom-edid="DFP-0:/etc/X11/dfp-edid.bin"

On other system with usual GTX 10xx cards all is working good.

My system is usual, it is for test only.

Asus H110M-k
Intel Celeron G3900
4GB DDR4
1x GPU P104-100 (on the 1st pci-e slot)

I have a connected monitor to internal graphics.

 
How can I unlock the overclocking on nvidia P104?
legendary
Activity: 1092
Merit: 1004
i reinstalled ubuntu 20 times and never could overclock nvidia cards.... in nvidia setings there is fan control but not core clock... tryed everything.. any new tutorial ?

Well, there is a new Ubuntu 16.04.04 LTS - not had time to test it as a mining platform. But, working perfectly on my test PC.

16.04.03 had a lot of bug and issues around CPUs and GPUs, so you may find the new version does work correctly.
newbie
Activity: 41
Merit: 0
i reinstalled ubuntu 20 times and never could overclock nvidia cards.... in nvidia setings there is fan control but not core clock... tryed everything.. any new tutorial ?
legendary
Activity: 1092
Merit: 1004
Thanks for the post.

is this still the proper way to do it or is there a new way?  Would like to get setup in linux with my rigs.

Also, can you make oc settings for each card individually or is it a global setting?  A few of my rigs have cards with mixed freqs.  had to just buy what I could, because of the video card drought.  Can you set power limit with this too?

You can set up individual overclocking and fan profiles per card via a .sh file for each card loaded up when you log into OS via startup program.
member
Activity: 122
Merit: 10
Overclocking & Fancontrol is only enabled for first GPU?!

*********************************************
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.25  (buildmeister@swio-display-x86-rhel47-03)  Wed Jan 24 20:46:04 PST 2018

Section "ServerLayout"
    Identifier     "layout"
    Screen      0  "nvidia" 0 0
    Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "modesetting"
    Option         "AccelMethod" "None"
    BusID          "PCI:0@0:2:0"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:1@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:2@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:3@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:4@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:5@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:6@0:0:0"
    Option         "Coolbits" "31"
EndSection

Section "Screen"
    Identifier     "intel"
    Device         "intel"
    Monitor        "Monitor0"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
    Option         "ConstrainCursor" "off"
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
EndSection

Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration" "on"
    Option         "IgnoreDisplayDevices" "CRT"
EndSection
member
Activity: 168
Merit: 39
Thanks for the post.

is this still the proper way to do it or is there a new way?  Would like to get setup in linux with my rigs.

Also, can you make oc settings for each card individually or is it a global setting?  A few of my rigs have cards with mixed freqs.  had to just buy what I could, because of the video card drought.  Can you set power limit with this too?
newbie
Activity: 8
Merit: 0
Hi guys .
I’m new and would need some help .
I’m not practice of Ubuntu but I have to go for it because don’t know why ... on win10 just recognize 4 gpu only.
Maybe I’m in the wrong place but I hope some1 will help me .
I have :
Asus mining expert
Intel g4400
4gb balistics ram
5 1080ti

I wanna mine Ethereum and ofcorse overclock my gpus ...
Pls help me , I will make a donation . Thanks

Normal stuff - set everything to PCI-Express Gen 1 or Gen 2.

Enable 4G performance.

Set 16GB of virtual memory.

Hi man....i need help pls...
I was regularly mining for about 24h....when my ethminer crashes with this error : Error CUDA mining : an illegal memoery access was ancounered

Pls help me...i don`t know wat to do...it was working so nice...


 
newbie
Activity: 8
Merit: 0
Hi guys .
I’m new and would need some help .
I’m not practice of Ubuntu but I have to go for it because don’t know why ... on win10 just recognize 4 gpu only.
Maybe I’m in the wrong place but I hope some1 will help me .
I have :
Asus mining expert
Intel g4400
4gb balistics ram
5 1080ti

I wanna mine Ethereum and ofcorse overclock my gpus ...
Pls help me , I will make a donation . Thanks

Normal stuff - set everything to PCI-Express Gen 1 or Gen 2.

Enable 4G performance.

Set 16GB of virtual memory.

 
Let’s say I got for word . I’m mining with 5 gpu , but the problem now is that I can’t overclock all 5 gpus . Only the main one. I know I must change the xorg.conf file... I tryed everything but I have no permission . Could you help me with the configurazion of all gpu ? Thanks
legendary
Activity: 1092
Merit: 1004
Hi guys .
I’m new and would need some help .
I’m not practice of Ubuntu but I have to go for it because don’t know why ... on win10 just recognize 4 gpu only.
Maybe I’m in the wrong place but I hope some1 will help me .
I have :
Asus mining expert
Intel g4400
4gb balistics ram
5 1080ti

I wanna mine Ethereum and ofcorse overclock my gpus ...
Pls help me , I will make a donation . Thanks

Normal stuff - set everything to PCI-Express Gen 1 or Gen 2.

Enable 4G performance.

Set 16GB of virtual memory.

 
newbie
Activity: 8
Merit: 0
Hi guys .
I’m new and would need some help .
I’m not practice of Ubuntu but I have to go for it because don’t know why ... on win10 just recognize 4 gpu only.
Maybe I’m in the wrong place but I hope some1 will help me .
I have :
Asus mining expert
Intel g4400
4gb balistics ram
5 1080ti

I wanna mine Ethereum and ofcorse overclock my gpus ...
Pls help me , I will make a donation . Thanks
newbie
Activity: 3
Merit: 0
Ok, I feel kind of noobish to admit this..

Problem behind this was that I connected my display to mobo while I was configuring the rig. I've done this with mining rigs and it has not been a problem so far. When I switched to one of the GPUs, everything started working perfectly.
newbie
Activity: 3
Merit: 0
^
how did you install the drivers? did you just install them, have you blacklisted the other driver?

i've had that problem when used to install nvidia+cuda via the provided downloaded file (just by running .sh file if i remember correctly) - the system would work until rebooting

i solved that by installing the drivers via repository (apt-get & stuff), NOT via the install file

I've tried both ways of installing the drivers and it doesn't seem to have any effect. What do you exactly mean by blacklisting? I've just selected the proprietary nvidia driver from driver manager.

Should I be able to adjust the Powermizer settings instantly after modifying the xorg.conf file with coolbits? Or does the overclocking get enabled only once the system reboots with the modified xorg.conf file?
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
New driver out (390) but, apparently, still no nvidia-smi clock setting support :-/
member
Activity: 132
Merit: 11
^
how did you install the drivers? did you just install them, have you blacklisted the other driver?

i've had that problem when used to install nvidia+cuda via the provided downloaded file (just by running .sh file if i remember correctly) - the system would work until rebooting

i solved that by installing the drivers via repository (apt-get & stuff), NOT via the install file
newbie
Activity: 3
Merit: 0
Hi guys,

I've been trying to overclock my GPUs on linux for way too long now and I'm about to lose my mind.

I've tried all of the advices and tips in this thread numerous times. I have tried running Ubuntu, Lubuntu, Kubuntu, Xubuntu and Debian. 17.10 AND 16.04 versions of all these.

And no matter what I do and what version of Linux I'm running, the same problem persists: xorg.conf resets every time I reboot the system or even just log out.

Does anyone have any suggestions anymore? I have tried every possible solution I've come across while trying to troubleshoot this but nothing has worked.

My setup:

Asrock H110 pro btc+
Intel i7-7700K
4GB Crucial Ballistix DDR4-2400
5 x Zotac Geforce GTX1080ti (blower model)
2 x Corsair RM850X
32gb usb3.0 stick/some random hdd (tried running on both of these)

I'm literally clueless. Huh All help is much appreciated.
Pages:
Jump to: