Bitcoin Forum
November 18, 2017, 10:49:31 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Control fan speed of Nvidia 1060 on headless Ubuntu  (Read 425 times)
alexrossi
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 04, 2017, 06:49:07 AM
 #1

As stated in the title, i'm looking for a tool that can manually set the speed of the fans in nvidia cards.

With AMD there was a super easy cli tool that was able to set a fixed fanspeed, but as now I found nothing with nvidia.

      ▀
   ▄▄▄   ▄▀
   ███ ▄▄▄▄  ██
       ████
    ▄  ▀▀▀▀
▄▄
     ██    ▀▀
██▄█▄▄▄████████
▄▄▄▄▄▄▄▄▀▀███▀▀▀
██████████████████
████▄▀▄▀▄▀███▀▀▀▀▀
████▄▀▄▀▄▀███ ▀
████▄▀▄▀▄▀████████
▀█████████████████
]
,CoinPayments,
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
NameTaken
Sr. Member
****
Offline Offline

Activity: 462


View Profile
September 04, 2017, 07:10:59 AM
 #2

nvidia-smi. You are probably referring to aticonfig which came with Fglrx but the new AMDGPU-PRO driver does not include any userland tools.
alexrossi
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 04, 2017, 08:22:56 AM
 #3

With smi i can just control the stats but I haven't found how to manually set the speed

May I ask if you have a specific command to edit the %, and if this setting persist even after a reboot?

      ▀
   ▄▄▄   ▄▀
   ███ ▄▄▄▄  ██
       ████
    ▄  ▀▀▀▀
▄▄
     ██    ▀▀
██▄█▄▄▄████████
▄▄▄▄▄▄▄▄▀▀███▀▀▀
██████████████████
████▄▀▄▀▄▀███▀▀▀▀▀
████▄▀▄▀▄▀███ ▀
████▄▀▄▀▄▀████████
▀█████████████████
]
,CoinPayments,
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
NameTaken
Sr. Member
****
Offline Offline

Activity: 462


View Profile
September 04, 2017, 08:27:06 AM
 #4

Code:
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=70
QuintLeo
Hero Member
*****
Offline Offline

Activity: 882


View Profile
September 04, 2017, 08:25:32 PM
 #5

Code:
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=70

nvidia-settings -a "GPUFanControlState=1" -a "GPUTargetFanSpeed=70"

 I don't think it works without the quotes, but not 100% certain.

alexrossi
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 05, 2017, 05:41:35 AM
 #6

Code:
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=70

nvidia-settings -a "GPUFanControlState=1" -a "GPUTargetFanSpeed=70"

 I don't think it works without the quotes, but not 100% certain.



Well, my rig is coming Tomorrow, so I will be able to report if this command blast all the gpu fans to the indicated value or not.

Unfortunately i googled a little and it seems that this setting is not persistent between reboots

      ▀
   ▄▄▄   ▄▀
   ███ ▄▄▄▄  ██
       ████
    ▄  ▀▀▀▀
▄▄
     ██    ▀▀
██▄█▄▄▄████████
▄▄▄▄▄▄▄▄▀▀███▀▀▀
██████████████████
████▄▀▄▀▄▀███▀▀▀▀▀
████▄▀▄▀▄▀███ ▀
████▄▀▄▀▄▀████████
▀█████████████████
]
,CoinPayments,
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
NameTaken
Sr. Member
****
Offline Offline

Activity: 462


View Profile
September 05, 2017, 06:01:38 AM
 #7

Code:
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=70

nvidia-settings -a "GPUFanControlState=1" -a "GPUTargetFanSpeed=70"

 I don't think it works without the quotes, but not 100% certain.



Either works.

Code:
nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=70

nvidia-settings -a "GPUFanControlState=1" -a "GPUTargetFanSpeed=70"

 I don't think it works without the quotes, but not 100% certain.



Well, my rig is coming Tomorrow, so I will be able to report if this command blast all the gpu fans to the indicated value or not.

Unfortunately i googled a little and it seems that this setting is not persistent between reboots

Running this on boot is trivial.
alexrossi
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 05, 2017, 06:37:12 AM
 #8


Running this on boot is trivial.


The idea that has passed in my mind: putting it in the rc.local of my ubuntu setup should do the trick? (even if rc.local is executed as root and not as standard user?)



      ▀
   ▄▄▄   ▄▀
   ███ ▄▄▄▄  ██
       ████
    ▄  ▀▀▀▀
▄▄
     ██    ▀▀
██▄█▄▄▄████████
▄▄▄▄▄▄▄▄▀▀███▀▀▀
██████████████████
████▄▀▄▀▄▀███▀▀▀▀▀
████▄▀▄▀▄▀███ ▀
████▄▀▄▀▄▀████████
▀█████████████████
]
,CoinPayments,
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
NameTaken
Sr. Member
****
Offline Offline

Activity: 462


View Profile
September 05, 2017, 06:38:39 AM
 #9


Running this on boot is trivial.


The idea that has passed in my mind: putting it in the rc.local of my ubuntu setup should do the trick? (even if rc.local is executed as root and not as standard user?)



I use systemd service file.
QuintLeo
Hero Member
*****
Offline Offline

Activity: 882


View Profile
September 05, 2017, 12:23:00 PM
 #10

I have a "startup.conf" that I point XFCE at to autorun on startup.
I'm not sure if it matters to nvidia-smi or nvidia-settings, but aticonfig DOES need X to be running before it would let you do a lot of it's commands.


alexrossi
Legendary
*
Offline Offline

Activity: 1526


View Profile
September 05, 2017, 07:30:44 PM
 #11

I have a "startup.conf" that I point XFCE at to autorun on startup.
I'm not sure if it matters to nvidia-smi or nvidia-settings, but aticonfig DOES need X to be running before it would let you do a lot of it's commands.




Is there a technical reason that aticonfig need an X session, before letting the user using the commands, or it's just an unsolved bug that maybe will be fixed in the future?

      ▀
   ▄▄▄   ▄▀
   ███ ▄▄▄▄  ██
       ████
    ▄  ▀▀▀▀
▄▄
     ██    ▀▀
██▄█▄▄▄████████
▄▄▄▄▄▄▄▄▀▀███▀▀▀
██████████████████
████▄▀▄▀▄▀███▀▀▀▀▀
████▄▀▄▀▄▀███ ▀
████▄▀▄▀▄▀████████
▀█████████████████
]
,CoinPayments,
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
█████
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████ ██
█████
NameTaken
Sr. Member
****
Offline Offline

Activity: 462


View Profile
September 05, 2017, 07:42:26 PM
 #12

I have a "startup.conf" that I point XFCE at to autorun on startup.
I'm not sure if it matters to nvidia-smi or nvidia-settings, but aticonfig DOES need X to be running before it would let you do a lot of it's commands.




Is there a technical reason that aticonfig need an X session, before letting the user using the commands, or it's just an unsolved bug that maybe will be fixed in the future?
An X session needs to be running for libatiadlxx to initialize to monitor temps, fans and reclock. Fglrx is deprecated.
QuintLeo
Hero Member
*****
Offline Offline

Activity: 882


View Profile
September 05, 2017, 09:33:41 PM
 #13

To be more specific, fglrx is no longer supported at all - 15.12 was the last version of it, which only supports cards prior to the Fury and *SOME* of the AMD APU iGPUs.

 Just don't get me started on AMDGPU-PRO - almost 2 years they've been working on it and it's STILL highly incomplete, missing anything resembling a usable "control" tool, and what control it DOES offer isn't documented worth beans.
 Fan control on multi-card setups often just flat out does not WORK for no apparent reason.

 I'm to the point of not even LOOKING at AMD cards any more because of the state of the LINUX drivers for them - AMD has a very long history of GARBAGE support for LINUX, and the current state is pretty bad even compared to THAT history.



Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!