Re: x270 CPU temp / throttling and unhandled HKEY event when I close the lid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I spent some more time testing this today. It seems like it only happens when I close the lid while running on battery. If I close the lid with the laptop plugged in, THEN unplug it, I don't see these temperature messages happen during idling / light use. Also notable is that unhandled HKEY event 0x6032 doesn't show up if I close the lid on A/C power. This issue still happens if I blacklist the thinkpad-acpi module, but I'm wondering if it's something Lenovo specific that isn't being handled and triggers the issue.

Some additional info about the machine:

Kernel
Thinkpad-acpi module enabled
Version 4.11.0-041100rc7-generic
Linux-firmware 1.161.1

BIOS settings
Speedstep on
AC – max performance
Battery – Battery Optimization

Thermal
AC – max performance
Battery – Balanced

CPU power mgmt enabled


I also tested to see how the CPU behaved under load and found something else interesting. If I close the lid with the laptop unplugged (the condition that causes this issue), the processor runs at a much lower clock speed (~2.0 GHz) and much lower temperature (60C) when under load. This makes me think something about the lid being closed on battery power causes an issue with Intel Speedstep / p states / c states. I don't really know much about how that works though, unfortunately.

converting video with lid closed plugged in will hover at 96-98C / 3.48 GHz <-- 3.5GHz is the maximum turbo boost for this processor
converting video with lid open unplugged will hover around 80C / 2.9GHz <-- Probably the correct speed/temperature for these settings on battery power?
converting video with lid open plugged in will hover at 96-98C / 3.48 GHz

plug in, close lid, then unplug = 80C / 2.9GHz <-- the only way I can close the lid without the issue happening. Doesn't seem like a coincidence.
unplug then close lid = 60C / 2.0GHz
unplug, close lid then plug back in = 60C / 2.0GHz
unplug, close lid, plug back in, unplug = 60C / 2.0GHz

On Fri, Apr 21, 2017 at 11:27 PM, neil k <host.crash@xxxxxxxxx> wrote:
Hello,

I recently bought a new Thinkpad X270 (i7 7500U) and put Mint 18 on it.  I have been running it with an external monitor with the lid closed, and I noticed I had a ton of scary temperature related messages in dmesg. They happen immediately after I close the lid, and about every 5 minutes if I leave it closed. The weird thing is that it idles around 45-55C which is perfectly normal for a laptop. I haven't seen a single temperature spike when this happens. I can also max out the processor encoding video and it will hover around 80C with no temperature warnings at all.

Below is chunk of dmesg lines right after I close the lid (notice it says the CPU is over the threshold and .01 seconds later it's allegedly under the threshold again.) I'm running the 4.8 kernel right now. It seems to do the same thing with the mainline kernel (4.11) except the "mce" events don't happen anymore.  I'm also running BIOS 1.11 if that matters.  I upgraded from the default BIOS in hopes that it would fix this, but it doesn't seem to have done anything.

Does anyone have any ideas about what could be causing this?  It seems like something about the lid being closed causes it not to be able to read the temperature sensors properly, unless the CPU temperature really spikes enough to be throttled and cools back down to idle temperatures in less than .01 seconds. 


[ 4325.800141] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
[ 4325.800146] thinkpad_acpi: unhandled HKEY event 0x6032
[ 4325.800149] thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@lists.sourceforge.net
[ 4325.949784] CPU0: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949785] CPU2: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949786] CPU1: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949787] CPU3: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949789] CPU2: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949792] CPU0: Package temperature above threshold, cpu clock throttled (total events = 1)
[ 4325.949793] mce: [Hardware Error]: Machine check events logged
[ 4325.949794] mce: [Hardware Error]: Machine check events logged
[ 4325.954773] CPU2: Core temperature/speed normal
[ 4325.954773] CPU0: Core temperature/speed normal
[ 4325.954774] CPU1: Package temperature/speed normal
[ 4325.954774] CPU3: Package temperature/speed normal
[ 4325.954775] CPU0: Package temperature/speed normal
[ 4325.954776] CPU2: Package temperature/speed normal

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux