Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3410618imm; Mon, 6 Aug 2018 04:25:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyu8vF4Ai5BsEDobiF1VxdvxpoizQMLoPcTuA1fwHJXQXIw8av6/3hJHRwlP+X3V+v+FsE X-Received: by 2002:a62:d401:: with SMTP id a1-v6mr10724493pfh.51.1533554758044; Mon, 06 Aug 2018 04:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533554758; cv=none; d=google.com; s=arc-20160816; b=LsvIng0nQ93UCA3B4lQyr9APXyJl7xIm4sjisNqOfjDJZ2rHoE8mTBA2V4X1lLcBl9 rY1egS6/yZZ2y0aCvM1yEeuH2fDbJYLnzLTioCPmoejRr1jrT3omWhxYCp/VBdnxK9wu 02gkRGfNoeDRk4f0uRpPP63t/5L0op55mMnjHx8R9f0XWkcbwe9UlcDtS6mDhPbwTAwr N/8hwKcF5wMoX3B1ByZsWCp6NKWaUYgFy2bmZ3hWapnbTpEVLCi4P7RUeTgs/2xClmI9 FTKQSZ8Kn1zKAg3yljEsronmCSl/V+KiEeBO0gryBmsmTyVEXGtt8SxAfKGKCuRPebGK yT3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=CbUZoGdhpLJPxCOAMoTdSHyu+/s97B2FZFnW5wqIfWs=; b=im/d/EOLwz4V/T212vbi5VPddf0eije58rm/KM/F3hDOXdlNQfpnAPUeeeZAeHvZhF znuZbGldssM7v4kzTWH+dX9OIdAEuHUC1LiVyTI6gUL1ZaMrwA3KYh+mEs2hbFJ/bQxp pgETCXFPiZSyhFmVdMHQq3H7cHKc8CQzDH9v7WG3m3hGRBTF93DQ41eCLC9EPwbDyi8X n1gdl6tDfLWd+u81QO84W29VJDVwuWttY1dw0jXbE4m/B33I0kcQsJKoRgqAJiPXWi36 VLOf+8bzn+RdBSIOes2fkPrZF+b7BzmSW2GLk5e2FE+/xzqe4eSUqzt3A+0myu5g6/HL GWQA== ARC-Authentication-Results: i=1; mx.google.com; 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 p35-v6si12511860pgl.202.2018.08.06.04.25.43; Mon, 06 Aug 2018 04:25:58 -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; 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 S1730342AbeHFN2C (ORCPT + 99 others); Mon, 6 Aug 2018 09:28:02 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:47010 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbeHFN2C (ORCPT ); Mon, 6 Aug 2018 09:28:02 -0400 Received: from 79.184.254.16.ipv4.supernova.orange.pl (79.184.254.16) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 551e0353d895b89e; Mon, 6 Aug 2018 13:19:25 +0200 From: "Rafael J. Wysocki" To: Chris Chiu Cc: Dmitry Torokhov , linux-input , linux-pm@vger.kernel.org, Linux Kernel , Linux Upstreaming Team Subject: Re: Built in PS2 keyboard in new ASUS/acer laptops can not wake up system after s2idle Date: Mon, 06 Aug 2018 13:17:26 +0200 Message-ID: <1631276.bMiRmflJ7r@aspire.rjw.lan> In-Reply-To: References: <73029405.6ZXyByzer1@aspire.rjw.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, August 6, 2018 1:07:25 PM CEST Chris Chiu wrote: > 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? A udev rule sounds like a good idea to me.