Choose style:

Author Topic: nvidia fan control with cool bits  (Read 860 times)

0 Members and 1 Guest are viewing this topic.

Offline kopyguy

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 14
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
nvidia fan control with cool bits
« on: December 27, 2018, 05:49:15 pm »
Hello Peppermint and nvidia users. I'm not a linux expert or programmer. I do like to tinker and linux is a great platform to tinker. Over the last few years I have taken from the community. I thought that I could give back in some small measure by sharing my results of an issue that I resolved with nvidia fan speed control. My gpu fan never seems to turn on. Temps are never what i would consider to be too high but electronics last longer when they are keep cool. I am a lite gamer. The following is what I did to get a continuous fan speed.

I need to give credit to these two sources.
https://wiki.archlinux.org/index.php/NVIDIA/Tips_and_tricks#nvidia-settings
http://us.download.nvidia.com/XFree86/Linux-x86_64/346.59/README/xconfigoptions.html

1. Installed proprietary nvidia gpu drivers.
2. Added nvidia-xconfig file
Code: [Select]
$ sudo nvidia-xconfig
3. Add fan control to nvidia config file.
Code: [Select]
$ sudo nvidia-xconfig --cool-bits=4
4. Add a file called "nvidia-fan-speed.desktop". Create with the following content with a text editor and put in the hidden directory /home/"YourUserName"/.config/autostart/
Code: [Select]
[Desktop Entry]
Exec=nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=30"
Name=nvidia-fan-speed
5. The example above gives a fan speed of 30%. You can change to any percentage.
6. You can check your result if you check the "Thermal Settings" in the "NVIDIA X Server Settings" application.
7. If you prefer command line.
Code: [Select]
$ nvidia-settings
8. There is a warning that cool-bits could cause system damage and void warranties. I'm not overclocking or changing GPU voltages. I'm just applying some cooling. Use at your own risk.

I hope this saves someone some time if you want some control over your GPU fan.

Steve




« Last Edit: March 23, 2019, 10:27:46 am by kopyguy »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25462
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: nvidia fan control with cool bits
« Reply #1 on: December 27, 2018, 06:11:25 pm »
Very nice tutorial kopyguy, and thanks for sharing :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kopyguy

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 14
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: nvidia fan control with cool bits
« Reply #2 on: December 27, 2018, 06:14:57 pm »
I owe so much more.  :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25462
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: nvidia fan control with cool bits
« Reply #3 on: December 27, 2018, 07:58:18 pm »
You owe nothing my friend, but kudos for the community spirit :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kopyguy

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 14
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: nvidia fan control with cool bits
« Reply #4 on: March 23, 2019, 11:06:32 am »
I have a question in regard to my tutorial. I'm not sure how I got this tutorial to work originally but it did. Here is some background.
1.  I decided  to put a fresh install of peppermint on a ssd.
2. I then decide to try this "cool bits" tutorial and it didn't work.
3.  After some playing around I did get it working.
4. this is what I found that gave me the clue to the problem. When I looked at the directory "autostart" in Nemo my file name is "nvidia-fan-speed". When I look at the directory with....

Code: [Select]
steve@betelgeuse ~ $ ls -l ~/.config/autostart
total 12
-rw-r--r-- 1 steve steve 127 Mar 23 09:47 nvidia-fan-speed.desktop
-rwxr-xr-x 1 steve steve 195 Feb  9 11:16 peppermint-control-center.desktop
-rwxr-xr-x 1 steve steve 165 Feb  9 11:16 xbindkeys.desktop
steve@betelgeuse ~ $
My file name is "peppermint-control-center.desktop".
5. I don't know how the ".desktop" was added to the file name unless I used another configuration file as a template.
6. Now for the questions:
 a) Why Is ".desktop" hidden in the the graphical file manager?
 b) Is it a special extension in Linux or Desktop environments?
7. I changed the file name in the tutorial to "nvidia-fan-speed.desktop" and it works again.

Still enjoying Peppermint

Steve

 
« Last Edit: March 23, 2019, 11:08:56 am by kopyguy »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25462
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: nvidia fan control with cool bits
« Reply #5 on: March 23, 2019, 03:14:51 pm »
.desktop files are special files and are displayed differently to normal files in the file manager.

Look in
Code: [Select]
/usr/share/applications
at the launcher names.

then run:
Code: [Select]
ls /usr/share/applications
you'll see for example that in the file manager you see "Firefox Web Browser", but in the terminal you'll see "firefox.desktop" .. these are indeed the same file, it's ACTUAL name is firefox.desktop, but in an GUI application (such as the main menu) it'll display only the name contained in it's
Name=
line (contained inside firefox.desktop if opened in a text editor).

Might be useful to check the contents of the firefox.desktop file ;)
Code: [Select]
xed /usr/share/applications/firefox.desktop
most specifically the "Name=" line(s)



So in answer to your questions

6a) It's not so much that the ".desktop" extension is hidden .. more that the name that is displayed in GUI apps (such as the file manager) is specified INSIDE the file on the:-
Name=
line.
(you could have had "Name=Fred" in the contents and when viewed in the file manager you'd just see "Fred", even though the actual file name is still "nvidia-fan-speed.desktop")

6b) YES - .desktop files are 'launchers' and follow the freedesktop.org (desktop entry specification) standard  .. so amongst other things such as foreign translations for menu entries/tooltips, defining relevant mimetypes, they provide a method for the author to define how the applications launcher shows up in menus (such as the whiskermenu).

The standard can be found here
https://standards.freedesktop.org/desktop-entry-spec/latest/
(see the table of contents at the bottom)

Hope that made sense ?
« Last Edit: March 23, 2019, 04:25:37 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kopyguy

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 14
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: nvidia fan control with cool bits
« Reply #6 on: March 23, 2019, 04:10:13 pm »
Thank you very much PCNetSpec. Your explanation made sense to me. So much to learn. :)

Steve

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5256
  • Karma: 941
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: nvidia fan control with cool bits
« Reply #7 on: March 23, 2019, 04:17:23 pm »
Code: [Select]
steve@betelgeuse ~ $ 

Oh, my! Somebody else names their machines after Ghostbusters characters.

I know it sounds silly, but be careful which ghoul you name them after...   ;)

Offline kopyguy

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 14
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: nvidia fan control with cool bits
« Reply #8 on: March 24, 2019, 09:44:55 pm »
Quote
Oh, my! Somebody else names their machines after Ghostbusters characters.

I know it sounds silly, but be careful which ghoul you name them after...   ;)

Spoiler (click here to view / hide)
                                                            __ooooooooo__
                                        oOOOOOOOOOOOOOOOOOOOOOo
                             oOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
                  oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
             oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
        oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
      oOOOOOOOOOOOO*  *OOOOOOOOOOOOOO*  *OOOOOOOOOOOOOOo
   oOOOOOOOOOOOO            OOOOOOOOOOOO             OOOOOOOOOOOOOOo
  oOOOOOOOOOOOOOo  oOOOOOOOOOOOOOOo  oOOOOOOOOOOOOOOOo
oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
oOOO                OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO                OOOOo
oOOOOO    OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO     OOOOOOo
  *OOOOO   OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  OOOOOOO*
  *OOOOOO  *OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*  OOOOOOO*
    *OOOOOO  *OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*  OOOOOOO*
      *OOOOOOo  *OOOOOOOOOOOOOOOOOOOOOOOOOOO*  oOOOOOOO*
          *OOOOOOOo  *OOOOOOOOOOOOOOOOOOOOOOO*  oOOOOOOO*
              *OOOOOOOOo  *OOOOOOOOOOOOOOOOOOO*  oOOOOOOOO*     
                  *OOOOOOOOo                                                        oOOOOOOOO*     
                          *OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO*         
                                             ""OOOOOOOOOOOOOOOOOOO""
                                                           OOOOOOOOOOOO
                                           
[close]

Thanks,
Steve