Bug 201575

Summary: On HP Elite x2 1013 G3 and Dell Latitude 7285 power button sometimes wakeup tablet only after holding it for a few seconds
Product: ACPI Reporter: RussianNeuroMancer (russianneuromancer)
Component: ECAssignee: Mario.Limonciello
Status: ASSIGNED ---    
Severity: normal CC: kernel-NTEO, lenb, Mario.Limonciello, najwayaminah, rui.zhang
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 4.19.0 Tree: Mainline
Regression: No
Attachments: Dell Latitude 7285 acpidump
Dell Latitude 7285 dsdt.dsl
HP Elite x2 1013 G3 acpidump
HP Elite x2 1013 G3 dsdt.dsl
HP Elite x2 1013 G3 dmesg Linux 4.19.0

Description RussianNeuroMancer 2018-10-31 06:03:32 UTC
I find that on HP Elite x2 1013 G3 and Dell Latitude 7285 power button sometimes wakeup it tablet after short press, and sometimes power button wakeup tablet only after holding it for a few seconds. 

Dell Latitude 7285: 
Initially with Linux 4.13-4.15 (earlier releases wasn't tested) it was requirement to hold power button for five seconds to wakeup from suspend (freeze).  Later, in Linux 4.16 or Linux 4.17 power button started to wakeup tablet after short press, except it did so most of the time, not always. Currently sometimes tablet doesn't wakeup from lid event and power button press, so in such cases it's still necessary to hold power button for five seconds for wakeup it. 

Tested BIOS: from 1.0.5 to 1.2.0.
acpidump and dsdt.dsl is attached

HP Elite x2 1013 G3:
Tablet was tested only with Linux 4.19.0. As with Dell Latitude 7285, sometimes tablet doesn't wakeup from lid event or power button press, and it's still necessary to hold power button for three seconds for wakeup. It also happens with suspend freeze, not suspend to ram which I didn't test yet.

Tested BIOS: Q87 01.01.03 Rev.A
acpidump, dsdt.dsl and dmesg from suspend->wakeup cycle, when issue is reproduced, is attached. 

Please let me know if any additional debug information is required.
Comment 1 RussianNeuroMancer 2018-10-31 06:04:08 UTC
Created attachment 279261 [details]
Dell Latitude 7285 acpidump
Comment 2 RussianNeuroMancer 2018-10-31 06:04:31 UTC
Created attachment 279263 [details]
Dell Latitude 7285 dsdt.dsl
Comment 3 RussianNeuroMancer 2018-10-31 06:05:11 UTC
Created attachment 279265 [details]
HP Elite x2 1013 G3 acpidump
Comment 4 RussianNeuroMancer 2018-10-31 06:05:49 UTC
Created attachment 279267 [details]
HP Elite x2 1013 G3 dsdt.dsl
Comment 5 RussianNeuroMancer 2018-10-31 06:06:14 UTC
Created attachment 279269 [details]
HP Elite x2 1013 G3 dmesg Linux 4.19.0
Comment 6 RussianNeuroMancer 2018-10-31 06:34:46 UTC
I want to note that on HP Elite x2 1013 G3, when wakeup from short power button press doesn't work, wakeup from lid also doesn't work. However, when tablet in this state (no wakeup from lid events or short power button press)  wakeup from Bluetooth (HP ActivePen G2 top button) and USB (any key on keyboard) still works well.
Comment 7 RussianNeuroMancer 2018-11-28 08:53:36 UTC
This issue is reproducible only with suspend freeze.

On HP Elite x2 1013 G3 there is BIOS option that allow to use S3, and when this option (or "mem_sleep_default=deep" kernel option) is enabled, tablet always wakeup from short power button press. Unfortunately, for Dell Latitude 7285 S3 is not an option, and fix of this issue is still required.
Comment 8 Zhang Rui 2019-07-01 06:21:41 UTC
CC Mario.
Comment 9 RussianNeuroMancer 2019-08-27 14:37:25 UTC
@Zhang Rui

On HP Elite x2 1013 G3 with latest BIOS and latest kernel issue is worse now. 

Tablet no longer wakeup from suspend freeze by power button at all. 
Until this is fixed I propose to change default for this tablet from S0ix to S3.
Comment 10 Zhang Rui 2019-09-03 06:48:59 UTC
let's focus on the Dell issue here, as we have Mario in the thread.

so the problem is that,
with latest kernel, power button short press can not wake the system from s2idle in some cases, right?
Comment 11 RussianNeuroMancer 2019-09-03 07:11:03 UTC
I have to return two Latitude 7285 to Dell due to unsolvable hardware issues with device (unrelated to power button). I don't know current status of this issue on this device.

What is next steps with debugging HP 1013?
Comment 12 Najwa Yaminah 2019-11-25 10:49:53 UTC
I am facing the same issue with the Dell power button. A popup appears with the error of Dell Latitude 7285 and can't be able to find the reason as I am busy as provide Dubai Essays https://writingservice.ae/. Is there anyone who suggest me the solution.