Lenovo P52 laptop fan control incorrect

Bug #1800838 reported by Kirill Shustov
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
acpi (Ubuntu)
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Pure system ubuntu 18.04.1 with all update running on Lenovo p52 laptop.
CPU fans speed is very low by default and start running only after 65 degrees.
As a result laptop is very hot all the time independ what I am running.

proc shows that level control is auto
cat /proc/acpi/ibm/fan
status: enabled
speed: 0
level: auto

but it is impossible to switch fan on
echo level full-speed > /proc/acpi/ibm/fan

lspci:
00:00.0 Host bridge: Intel Corporation Device 3ec4 (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Device a379 (rev 10)
00:14.0 USB controller: Intel Corporation Device a36d (rev 10)
00:14.2 RAM memory: Intel Corporation Device a36f (rev 10)
00:14.3 Network controller: Intel Corporation Device a370 (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)
00:16.0 Communication controller: Intel Corporation Device a360 (rev 10)
00:1c.0 PCI bridge: Intel Corporation Device a338 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Device a33f (rev f0)
00:1d.0 PCI bridge: Intel Corporation Device a330 (rev f0)
00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)
00:1f.0 ISA bridge: Intel Corporation Device a30e (rev 10)
00:1f.3 Audio device: Intel Corporation Device a348 (rev 10)
00:1f.4 SMBus: Intel Corporation Device a323 (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a324 (rev 10)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1cbb (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
70:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
71:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a808

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: acpi (not installed)
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
Uname: Linux 4.15.0-38-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CurrentDesktop: GNOME-Flashback:GNOME
Date: Wed Oct 31 15:16:32 2018
InstallationDate: Installed on 2018-10-26 (5 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: acpi
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CurrentDesktop: GNOME-Flashback:GNOME
Dependencies:
 gcc-8-base 8.2.0-1ubuntu2~18.04
 libc6 2.27-3ubuntu1
 libgcc1 1:8.2.0-1ubuntu2~18.04
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2018-10-26 (5 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
Tags: bionic
Uname: Linux 4.15.0-38-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip docker lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Kirill Shustov (kirill-sustov) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1800838

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Did this issue start happening after an update/upgrade? Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.19 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19

Revision history for this message
Kirill Shustov (kirill-sustov) wrote : ProcCpuinfoMinimal.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Kirill Shustov (kirill-sustov) wrote : ProcEnviron.txt

apport information

Revision history for this message
Kirill Shustov (kirill-sustov) wrote :

1. This was from beginning

2. I will try latest kernel

Revision history for this message
Kirill Shustov (kirill-sustov) wrote :

repeat on 4.19 kernel version

Revision history for this message
Hui Wang (hui.wang) wrote :

create /etc/modprobe.d/thinkpad_acpi.conf with: options thinkpad_acpi fan_control=1

reboot.

Then you can change fan speed via "#echo level full-speed > /proc/acpi/ibm/fan"

Revision history for this message
Kirill Shustov (kirill-sustov) wrote :

This is manual fan regulation what is not very handy to control fan speed manually all the time.
I found other issue, second fan is not wokring. It is repeating on 3 laptops, so can not be hardware malfunction.

Revision history for this message
Hui Wang (hui.wang) wrote :

how do you know the 2nd fan is not working? let me check it in your way on my p52 too.

Revision history for this message
Kirill Shustov (kirill-sustov) wrote :

First is sensors output. Here is only 1 pwm.
thinkpad-isa-0000
Adapter: ISA adapter
fan1: 2067 RPM

second, what I switch to level 7, I feel by hand that 1st running well, second not at all. Probably second one is controlled by nvidia

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in acpi (Ubuntu):
status: New → Confirmed
Revision history for this message
Kirill Shustov (kirill-sustov) wrote :

Current update.

Problem is repeatable on 4.20.3-042003-generic kernel build with latest 415 nvidia driver.
Problem of overheating can be solved partially by using thinkfan utility and editing /etc/thinkfan.conf
(0, 0, 45)
(1, 38, 50)
(2, 40, 61)
(3, 52, 63)
(4, 56, 65)
(5, 59, 66)
(7, 63, 78)
(127, 70, 32767) <- 127 gives full speed of fan and level:disengaged (it is about 4000 rpm)

second fan is under nvidia control and running slowly even on 100% CPU load and 88C degree.
probably can be solved by tuning nvidia drivers or settings, but ... I did not found how.
Right now tried to build large project, all cores are 100% and 85-90 degrees, nvidia only 52 and fan moves slowly.

Revision history for this message
eocanha (eocanha) wrote :

Thanks for the "127 gives full speed" trick. Until now I was using

```
("level full-speed", 64, 32767)
```

and adding the -D option to DAEMON_ARGS on /etc/default/thinkfan ("dangerous mode", a bit scary!) to force thinkfan to swallow the non-integer option. Your "127" trick is much better.

Revision history for this message
eocanha (eocanha) wrote :

Regarding the nvidia fan (right side of the case), it doesn't spin fast for me either. I tried to get the fan controls in nvidia-settings (390.77-0ubuntu0.18.04.1) by rebooting with "Coolbits" "4" (see: https://z-issue.com/wp/nvidia-linux-drivers-powermizer-coolbits-performance-levels-and-gpu-fan-settings/ or just google "coolbits") but the controls didn't appear on the app.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.