Ubuntu – Ubuntu 16.04 LTS: Fan works at max speed on HP Envy 6-1154er

16.04fanhppower-management

I tried many different things. I spent days by googling and trying different steps in intention to resolve this issue. But with no success.

I already asked about the issue in this question: Abnormal fan behavior: Sticking and persist on max speed (HP Envy 6-1154er & Ubuntu 14.04). It enumerates several steps I tried.

I tried install TLP. Now I installed LMT (Laptop Mode Tools): Laptop can't control fan speed after 16.04 upgrade. I installed Ubuntu 16.04 upgrade. I previously had 14.04 (And the issue exists since it's installation). I installed 4.6 kernel. So, due to I have new OS I decided to ask the same again as It seems my previous topic won't be answered.

Possible solution:
I noticed when the fan works on max speed and temperature is in range 59-69C (The CPU is "cold") If I unplug the AC power supply from the laptop, the fan's speed gets low as it should after a couple of seconds or sometimes about tens of seconds.

So, I think if I were able somehow tell the LMT or the OS that the laptop is on the battery always regardless of it's actual connection to power supply, I probably would be able to get what I want: gently working fan. This is only thing left that I can't still beat. I don't want to get windows back.

q@4xybook:~$ sudo laptop_mode status

Gives this when AC is plugged.

Mounts:
   /dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,commit=360,data=ordered)
   /dev/sdb1 on /home type ext4 (rw,nosuid,nodev,relatime,commit=360,data=ordered)
   /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
   /dev/sda2 on /home/q/media type ext4 (rw,relatime,errors=remount-ro,commit=360,data=ordered)
   /dev/sda3 on /home/q/stuff-loc type ext4 (rw,relatime,commit=360,data=ordered)
   /dev/sda3 on /home/q/work type ext4 (rw,relatime,commit=360,data=ordered)
   /dev/sda3 on /home/q/apps type ext4 (rw,relatime,commit=360,data=ordered)

Drive power status:

   /dev/sda:
    drive state is:  active/idle

   /dev/sdb:
    drive state is:  active/idle

(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)

Readahead states:
   /dev/sda2: 3072 kB
   /dev/sdb1: 3072 kB
   /dev/sda1: 3072 kB
   /dev/sda2: 3072 kB
   /dev/sda3: 3072 kB
   /dev/sda3: 3072 kB
   /dev/sda3: 3072 kB

Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists.

/proc/sys/vm/laptop_mode:
   2

/proc/sys/vm/dirty_ratio:
   60

/proc/sys/fs/xfs/xfssyncd_centisecs:
   3000

/proc/sys/vm/dirty_background_ratio:
   1

/proc/sys/vm/dirty_expire_centisecs:
   36000

/proc/sys/vm/dirty_writeback_centisecs:
   36000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:
   1596539

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:
   1603843

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq:
   2399988

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq:
   2399988

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor:
   powersave

/proc/acpi/button/lid/LID0/state:
   state:      open

/sys/class/power_supply/ACAD/online:
   1

Mounts:
   /dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro,commit=360,data=ordered)
   /dev/sdb1 on /home type ext4 (rw,nosuid,nodev,relatime,commit=360,data=ordered)
   /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
   /dev/sda2 on /home/q/media type ext4 (rw,relatime,errors=remount-ro,commit=360,data=ordered)
   /dev/sda3 on /home/q/stuff-loc type ext4 (rw,relatime,commit=360,data=ordered)
   /dev/sda3 on /home/q/work type ext4 (rw,relatime,commit=360,data=ordered)
   /dev/sda3 on /home/q/apps type ext4 (rw,relatime,commit=360,data=ordered)

Drive power status:

   /dev/sda:
    drive state is:  active/idle

   /dev/sdb:
    drive state is:  active/idle

(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)

Readahead states:
   /dev/sda2: 3072 kB
   /dev/sdb1: 3072 kB
   /dev/sda1: 3072 kB
   /dev/sda2: 3072 kB
   /dev/sda3: 3072 kB
   /dev/sda3: 3072 kB
   /dev/sda3: 3072 kB

Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists.

/proc/sys/vm/laptop_mode:
   2

/proc/sys/vm/dirty_ratio:
   60

/proc/sys/fs/xfs/xfssyncd_centisecs:
   3000

/proc/sys/vm/dirty_background_ratio:
   1

/proc/sys/vm/dirty_expire_centisecs:
   36000

/proc/sys/vm/dirty_writeback_centisecs:
   36000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:
   2399988

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:
   2399988

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq:
   2414796

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq:
   2414066

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq:
   2600000

/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq:
   800000

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor:
   powersave

/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor:
   powersave

/proc/acpi/button/lid/LID0/state:
   state:      open

/sys/class/power_supply/ACAD/online:
   1

Laptop mode 
enabled, active [unchanged]

And this if it's unplugged

q@4xybook:~$ sudo laptop_mode status

...
/sys/class/power_supply/ACAD/online:
   0

Laptop mode 
enabled, active [unchanged]

Any ideas?

— UPDATE —

Can a kind soul tell me: Is it possible to make the laptop always work in battery mode regardless of it's actual state?

Best Answer

Eventually things become ok after I did the things suggested by @Ingo. I removed intel_powerclamp. The road to hell is definetly based on good intentions...

sudo rmmod intel_powerclamp

To disable it permanently and suppress loading it altogether, in addition do:

cd /etc/modprobe.d
sudo su
echo install intel_powerclamp /bin/true  >intel_powerclamp.conf

intel_powerclamp: Start/Stop forced idle injection

Related Question