Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3406911imm; Mon, 6 Aug 2018 04:21:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdFsq5Z23ffDPWiFnUh6yInHhjWljPni1ZgInNaTYlxQU9bVZfilgJ9DLPJmn61uQIEwnwL X-Received: by 2002:a63:e949:: with SMTP id q9-v6mr14139420pgj.4.1533554489927; Mon, 06 Aug 2018 04:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533554489; cv=none; d=google.com; s=arc-20160816; b=Yg642HLijRQ34NECguqAhOSxcjsS5wT5TmXA4vUySRNHaqyUYooxchaThUhnZZDcSH DYRpyS1fhO9A7JlbrSoda9eI8ouwI5ObiZNFZwAXqpWZHkflR38+Jm2fwidK1G0qUlrn rMSF8AwolIf/aXSb/AA2+RcJ2eIkRXLTpzI9uFm4b20Vv+Fj3t3W1hxaZFKA1SKqX2+s EjMayxrLjrwJ1hrgeHodmJoW14QfGa4EQ/g/kSAXjVz6Vl0ENwrFoXTQOeEyfqDg+FfA dkapiGvhXs4H88QIoZvgXx+IrL4Q2sBZj84YX7lvmOROOKsee5b4cI1B7QDnjKKUdM7D IuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4qJkcs4HfzL51knKen5vWZTfKdLM4oBGlqsw37SpMq4=; b=rytwiz+ly8JEZJrh6HhCi54ak4UePT6Jg916POyZNM4NjR8xWoAXLJx7qp7nXpbxML KDoTRj4wqAEx0f1Ha87xNzI4o+hgGObpy29X5Unv2Q2doO4fTz73Y/mVgcHPyzmznvTI 982Sw2dFGN3+RpUFL/Xy7GC6NEO2EHnTTCEveeFqENf9Ieo7FRmk/dnoLapanJgblP2d SBjUDEEpZk9aS828xBN9zllLoOGPFrCwbwSYdFo7wKGhGRE9oi9mKTJys7yBWou5cXBC p1EETClL1Y14vnLydTmfSoxnDHtCWscj8s5fbaAOgmETqrkRxeeUCdwZspIeiiWu12H6 o6Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=0duoC++d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si12267822pga.113.2018.08.06.04.21.13; Mon, 06 Aug 2018 04:21:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=0duoC++d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729958AbeHFNQA (ORCPT + 99 others); Mon, 6 Aug 2018 09:16:00 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:41797 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727613AbeHFNP7 (ORCPT ); Mon, 6 Aug 2018 09:15:59 -0400 Received: by mail-io0-f196.google.com with SMTP id g7-v6so358868ioq.8 for ; Mon, 06 Aug 2018 04:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4qJkcs4HfzL51knKen5vWZTfKdLM4oBGlqsw37SpMq4=; b=0duoC++dUzj2rkMMh7bFeTf3UGlVSK9YS4bfKUsBleoTcn5n1xKxziAP3SqX3p3/2/ Psyd11VO/nNK+S3JB4XZaQALbxYhLNIQXlPJ2zcXjr3NOGbg72C3nE66ytXYWCfDzYkm exgV+3nsY++2RDjic1cX3dTt6soSDR2RHGsWy3kTatabIT3UVix/175cyfycar1i0yQV uYynidr/8bMenweyW66tzWiPAtLMwZX9ywFSy2Yq3KCJPzZwutrsMHZajrM8wRTGd7NM MNHIEZI4SHDWBYkFj08WakVwPLSf//4HkwMxBiLkUS9GMAH6Y5sG82HMMSCywglSLk3W fuTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4qJkcs4HfzL51knKen5vWZTfKdLM4oBGlqsw37SpMq4=; b=Kyttbe5kaCoekmT9/DNmpi+hG1gpFhYjWXQDyVn30G3ysAO0bQTAKVFQr11JuyGz6P QWlmN8jGUrQBAoHqUBTE+tM/AhiuN21lIg9lccIdUeSZWGRT08zju6BZM7Cx+BWxp5CK UuBqz7PK4hNwOHHrsDYSDzdydo0UGooaLvUVAjC9y32vW3fvagWWmIkvN3VdjuZWvaZq E1xK4RUmdYWicpZahRBQFzaPJwu88Yxr+DOqIcXizgRKlcGAg/+yaasGxNycMUaEHmi8 xeFAHtKlb4wLzw0qeHjFZiUqLnmIUIKG/rYma/A5Yr8eIQDLM5dIlY+O7NU3f4kZR7DR s3sA== X-Gm-Message-State: AOUpUlFdM5LsSR9wxXKJU7960BCtv+tE/ynoITdWtRdtDLyaldlxAGmv aGjwwUk8+FnQvZ/p3QzXOgjA1Z7KRXN22ur37AgE7A== X-Received: by 2002:a6b:cd8f:: with SMTP id d137-v6mr14497853iog.154.1533553646269; Mon, 06 Aug 2018 04:07:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:8704:0:0:0:0:0 with HTTP; Mon, 6 Aug 2018 04:07:25 -0700 (PDT) In-Reply-To: <73029405.6ZXyByzer1@aspire.rjw.lan> References: <73029405.6ZXyByzer1@aspire.rjw.lan> From: Chris Chiu Date: Mon, 6 Aug 2018 19:07:25 +0800 Message-ID: Subject: Re: Built in PS2 keyboard in new ASUS/acer laptops can not wake up system after s2idle To: "Rafael J. Wysocki" Cc: Dmitry Torokhov , linux-input , linux-pm@vger.kernel.org, Linux Kernel , Linux Upstreaming Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 6, 2018 at 5:37 PM, Rafael J. Wysocki wrote: > On Friday, August 3, 2018 10:04:09 AM CEST Chris Chiu wrote: >> Hi guys, >> We have some new laptops with Intel new Intel WiskyLake CPU come >> in and they all have the same problem. They all have the so-called >> "Modern Standby" feature which is s2idle in Linux. >> >> The problem is the built-in keyboard no longer wake up the system >> after it goes to s2idle. Only the power button can wake up. It's >> different from the other laptops with old Intel CPUs (CoffeeLake, >> KaybeLake...etc). We found the difference is that the EC (embedded >> controller) no longer signals SCI event when in s2idle. >> >> Confirmed with ASUS EC engineer, he also admits that the EC code >> for signaling SCI event in modern standby has been removed on >> WiskyLake models. Because the built-in PS2 keyboard can still wake up >> the system on WisksyLake+Windows10 RS4 combination without EC >> intervention. >> >> Based on this information, we suspect that maybe the built-in >> keyboard wakeup on Windows 10 RS4 in enabled by default (although we >> don't know how to prove that). It's easy to simply do >> 'device_set_wakeup_enable' and 'enable_irq_wake' for the i8042 >> keyboard port to wake up the system without EC, but it's nasty. >> >> Any suggestion about how to achieve the keyboard wake up function >> on these new laptops in a generic way? Thanks > > What about echoing "enabled" to the keyboard's power/wakeup file in sysfs? > 'echo enabled > /sys/devices/platform/i8042/serio0/power/wakeup' can get the keyboard wake up the system as expected. We considered to work out a DMI based quirk for this. But based on the information that EC would not signal SCI event for WiskyLake models, we'd like to know if there's any generic solution? Maybe a 'udev' rule to identify WiskyLake NoteBook then enable the keyboard wake up? Chris