nvidia-settings fan speed

Chat about Linux in general
Post Reply
alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

nvidia-settings fan speed

Post by alfonz19 » Mon Mar 18, 2019 7:35 am

Hi,

I have new lenovo P52 and this laptop is so far just trouble, namely with overheating. Multiple users reported, that they are unable to control right fan, which is related to nvidia gpu. uhm, I'm failing to find out, how nvidia-settings work. I just managed to instal gpu drivers, but rest of it is total mystery to me. Even if I set coolbits in xorg.conf to 4 did not changed anything. There seems to be some cli options like "nvidia-settings -q thermalsensors" but I totally do not understand their documentation. Does anyone know, how nvidia-settings should be used and ideally how to control fancontrol and/or performance modes?

Thanks!

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Mon Mar 18, 2019 8:29 am

Please generate an overview of your system like this:
- Launch a terminal window (this is how to launch a terminal window);
- make the terminal window full screen, to avoid chopped lines;
- Copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

Press Enter.

Copy/paste the output in your next message.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Mon Mar 18, 2019 9:47 am

Code: Select all

System:    Host: utu Kernel: 4.15.0-46-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.6.7 (Gtk 3.22.30-1ubuntu2) Distro: Ubuntu 18.04.2 LTS
Machine:   Device: laptop System: LENOVO product: 20MAS1T300 v: ThinkPad P52 serial: N/A
           Mobo: LENOVO model: 20MAS1T300 v: SDK0J40697 WIN serial: N/A
           UEFI: LENOVO v: N2CET39W (1.22 ) date: 02/13/2019
Battery    BAT0: charge: 16.7 Wh 20.8% condition: 80.4/90.1 Wh (89%) model: LGC 01AV495 status: Discharging
CPU:       6 core Intel Core i7-8750H (-MT-MCP-) arch: Skylake rev.10 cache: 9216 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 26496
           clock speeds: max: 4100 MHz 1: 1234 MHz 2: 3552 MHz 3: 3785 MHz 4: 3103 MHz 5: 3407 MHz 6: 3521 MHz
           7: 3527 MHz 8: 3524 MHz 9: 3666 MHz 10: 3521 MHz 11: 3394 MHz 12: 3473 MHz
Graphics:  Card: NVIDIA GP107GLM [Quadro P1000 Mobile] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 ) driver: nvidia Resolution: 1920x1080@60.03hz
           OpenGL: renderer: Quadro P1000/PCIe/SSE2 version: 4.6.0 NVIDIA 418.43 Direct Render: Yes
Audio:     Card-1 NVIDIA GP107GL High Definition Audio Controller driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel Cannon Lake PCH cAVS driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-46-generic
Network:   Card-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi bus-ID: 00:14.3
           IF: wlp0s20f3 state: up mac: <filter>
           Card-2: Intel Ethernet Connection (7) I219-V driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
           IF: enp0s31f6 state: down mac: <filter>
Drives:    HDD Total Size: 512.1GB (13.6% used)
           ID-1: /dev/nvme0n1 model: SAMSUNG_MZVLB512HAJQ size: 512.1GB
Partition: ID-1: / size: 467G used: 64G (15%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot size: 705M used: 146M (23%) fs: ext4 dev: /dev/nvme0n1p2
           ID-3: swap-1 size: 1.03GB used: 0.00GB (0%) fs: swap dev: /dev/dm-2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 40.0C mobo: N/A gpu: 0.0:37C
           Fan Speeds (in rpm): cpu: 2626
Info:      Processes: 366 Uptime: 1:59 Memory: 5237.0/31889.0MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Mon Mar 18, 2019 10:06 am

Very new hardware, judging by the UEFI date. I see that you already have a very new proprietary Nvidia driver for it, which is good.

Try this:
Update Manager - panel: View - Linux kernels
Install the latest kernel from the 4.18 series. Then reboot.

Does that help?
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
trytip
Level 11
Level 11
Posts: 3847
Joined: Tue Jul 05, 2016 1:20 pm

Re: nvidia-settings fan speed

Post by trytip » Mon Mar 18, 2019 10:25 am

add this to your /etc/x11xorg.conf

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8800 GT"
Option "ModeValidation" "AllowNonEdidModes"

Code: Select all

    Option         "TripleBuffer" "1"
    Option         "Coolbits" "4"
EndSection

reboot and you should have fan control in nvidia-settings
Image

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Tue Mar 19, 2019 5:38 am

I already did that, no fan controls in nvidia-config.

I also asked at nvidia, but from their response it's complicated and not easily fixable (IIUC, thanks lenovo).
https://devtalk.nvidia.com/default/topi ... =5#5322050

User avatar
catweazel
Level 19
Level 19
Posts: 9752
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: nvidia-settings fan speed

Post by catweazel » Tue Mar 19, 2019 5:43 am

alfonz19 wrote:
Tue Mar 19, 2019 5:38 am
I also asked at nvidia, but from their response it's complicated and not easily fixable (IIUC, thanks lenovo).
https://devtalk.nvidia.com/default/topi ... =5#5322050
I would interpret that as meaning "not possible". Unfortunately, I think that if the nVidia forum can't help, then you're stuck, I'm sorry to say. However try kernel 4.18 first, and if your linux installation is expendable then you might try installing uuku, followed by installing 4.20.16.

Like I said, only take that latter advice if your installation is expendable. The mainline kernels aren't supported so there is risk associated with the attempt to see if 4.20.16 helps.

https://www.omgubuntu.co.uk/2017/02/uku ... nel-ubuntu
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Tue Mar 19, 2019 6:11 am

Thanks for helping me, I'll try to write to lenovo-acpi mailing list as suggested, but that's probably it. Since this laptop is precise opposite of expendable; it's work laptop, which must not fail. It's less of a problem if it dies after a year due to circuit failure, as it's company who's paying, but it would be my fault if I don't have something to work on. Really strange situation indeed. But I'm really unimpressed by nowadays quality control. My last lenovo, 440s worked like a charm without single hickup, but this machine come from factory with several autodestruct features, that one would't think it's even possible.

I'll keep you posted here, if I manage to resolve it somehow.
Thanks!

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Tue Mar 19, 2019 7:31 am

If you haven't done so yet, definitely try the 4.18 kernel. See my previous message in this thread.

As that's an officially supported kernel for Mint 19.x, it should create no problems.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
catweazel
Level 19
Level 19
Posts: 9752
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: nvidia-settings fan speed

Post by catweazel » Tue Mar 19, 2019 7:39 am

alfonz19 wrote:
Tue Mar 19, 2019 6:11 am
Since this laptop is precise opposite of expendable
I didn't say that the laptop would be affected. I said the linux installation would be. At least take Pjotr's advice and try the 4.18 kernel.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Tue Mar 19, 2019 1:06 pm

Hi, so I tried to update to latest kernel using:

[code]apt install linux-headers-4.18.0-16-generic linux-modules-4.18.0-16-generic linux-image-4.18.0-16-generic[/code]

but it seems that thunderbolt support there is somewhat opinionated: with 4.18 booted my docking station does not work, no idea why. So I'm back to 4.15.0-46-generic. Anyways when I have some more time to investigate, I'll go back to 4.18 and try to make it work and test fans. But if anyone sees anything wrong with command above, please let me know. But one thing is certain: nowadays hw is crazy; it takes days to find all workaround just to be able to boot and type on keyboard, and even after that there are some inexplicable stuff like some mysterious 30s time-gap between bios and grub ...

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Tue Mar 19, 2019 1:09 pm

alfonz19 wrote:
Tue Mar 19, 2019 1:06 pm
But if anyone sees anything wrong with command above, please let me know.
The command itself is the wrong way. This is the right way, using the built-in kernel tool of Update Manager:

Update Manager - panel: View - Linux kernels
Install the latest kernel of the 4.18 series. Then reboot.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Wed Mar 20, 2019 5:19 am

I'm using cinnamon, but at work I'm restricted to use ubuntu, so probably no UpdateManager. I don't know ubuntu specifics, and I cannot see any 'kernel tool'. Anyways given command downloadeded latest available kernel, updated grub, and I'm able to boot using that kernel. I don't know if there is something more to be done, but it never was the case IIRC. I might be wrong. I'll try to find out, why thunerbolt does not work with newer kernel.

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Wed Mar 20, 2019 5:25 am

alfonz19 wrote:
Wed Mar 20, 2019 5:19 am
I'm using cinnamon, but at work I'm restricted to use ubuntu, so probably no UpdateManager. I don't know ubuntu specifics, and I cannot see any 'kernel tool'.
Retrospectively, I might have seen myself that you're running Ubuntu and not Mint, from your inxi output.

But don't you think it would have been more appropriate if you would have stated that clearly in the beginning? This has caused some needless confusion. :x
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

alfonz19
Level 1
Level 1
Posts: 38
Joined: Wed May 09, 2018 7:45 am

Re: nvidia-settings fan speed

Post by alfonz19 » Wed Mar 20, 2019 5:45 am

sorry. I don't use ubuntu anywhere else and I'm used going to this forum. I thought, that nvidia-settings / lm-sensors / fancontrol would be the same on all platforms. But yes, you're correct, I should have stated that in clearer form.

User avatar
Pjotr
Level 21
Level 21
Posts: 13759
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: nvidia-settings fan speed

Post by Pjotr » Wed Mar 20, 2019 6:00 am

alfonz19 wrote:
Wed Mar 20, 2019 5:45 am
sorry. I don't use ubuntu anywhere else and I'm used going to this forum. I thought, that nvidia-settings / lm-sensors / fancontrol would be the same on all platforms. But yes, you're correct, I should have stated that in clearer form.
OK. :)
I've asked the mods to move this topic to the appropriate section for Ubuntu questions, so it might be moved soon....

At the moment I'm at a loss what to try next for solving your problem. Hopefully someone else can help you.
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
trytip
Level 11
Level 11
Posts: 3847
Joined: Tue Jul 05, 2016 1:20 pm

Re: nvidia-settings fan speed

Post by trytip » Wed Mar 20, 2019 9:09 am

there are a few 4.18 kernels if the one you have installed doesn't do much test the linux-generic-hwe-18.04

Code: Select all

sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04 
https://wiki.ubuntu.com/Kernel/LTSEnablementStack make sure to do a timeshift snapshot before you try this, it will replace your xorg to something newer.

does nvidia-smi give you any output in terminal?
Image

Post Reply

Return to “Chat about Linux”