Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp160401imm; Fri, 3 Aug 2018 01:05:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfLJ+/vlrYnJSi8OeyurB5MicVXU9x+ePOAwAJPYpVBZ9+DnsfS8hivJeTK+6QfYrER6eEm X-Received: by 2002:a63:9902:: with SMTP id d2-v6mr2624006pge.343.1533283514331; Fri, 03 Aug 2018 01:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533283514; cv=none; d=google.com; s=arc-20160816; b=IKTyiPYDdZQF4mw94Fmb3kG/0EfQCt/0mvmZ3XoCZbB5bHHwZc10QQeqXcEr2xYkCy poaRnCAb21XY5pfrydGfdTlYL9Zk9KwZ3onYFDi/63ezgjAghdNyEZRcCVo3ZeoMz6xv 0h5pjLlSYfM9xT6uIkOZC9yWzuO1wc2xFnNgCxuyhBBkp21rExP3oPj4mXHaXe9veI+q CO7nVgHQUIGICUqdocZhTXBhP9r/9ZPFlYKtlhJa+H00/9YVooG8ooGM+ePB3+krwn2p ooc9nw+sz1hPSgM/O12CW3rfr74Q9SwKcgijeazyVmjLpPKcsu1yveI9jzkleUljhuRD VI7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=Fw3uq72wzY2C0WOUnE1WMU7SdIVyP4R6Aer6NZCq9DE=; b=lj255KNERgFOCMrFkxoVFP/J6CYrj2H26NEe41k6pCbQ4UFQXMBLCsWkWJbS4mk/1I HKDXMRRkrkDeKNI6qjeVKjduQnEFWPVb2yeP6aQTJjTG30jZ0cPmu/Rjy3az0anYw763 p1YQIlj1RbEVHas7nJ3X5VvXZN9X+GLsy2ptBkIYK8vtThZ2YeY35napkmLmF7Vg24K7 iY9qD4Ab0JkqrU6ul5XS4cXBgFvKhsBo9E/TvL0Ok5uPmYB+zdwDc3P/O72cRczWY4CV kQHuljPDOS89SeZpdZEqxh4EEGk8HblOo/X1Ta8RMdPqjQ5oiyXS8Z77mTKzWoJZdwqz uZSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=apr6TZIz; 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 m30-v6si3665802pgc.361.2018.08.03.01.04.59; Fri, 03 Aug 2018 01:05:14 -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=apr6TZIz; 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 S1728195AbeHCJ7S (ORCPT + 99 others); Fri, 3 Aug 2018 05:59:18 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:38431 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbeHCJ7S (ORCPT ); Fri, 3 Aug 2018 05:59:18 -0400 Received: by mail-io0-f170.google.com with SMTP id v26-v6so4294923iog.5 for ; Fri, 03 Aug 2018 01:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Fw3uq72wzY2C0WOUnE1WMU7SdIVyP4R6Aer6NZCq9DE=; b=apr6TZIzZkpYFA3iVHaAAAb9WnAeuy98F0hpybaXMsCuCrgdA+k+kh8d5IVsnpl7wZ jb9nPorLj6Wql+fia9LT6Pau4bHVTLw+37Y28zMYLcpp8zfeFBrfM9jK4CfkKUfAfEPP 4A33S4uaO8SCgtS7xmAUjcGDXofn2wmbM/H6BD4cZbM+Nn/3WtT8w+wtYl55wNJfTW6P iX/IvD6qYtYHzOJUYaW1X0dNe18oD4kjDHOnqpb8+XGV+5d+bPGiBsSgNWHO/pVFVVeU Mj1ufqpdQT9gRkc7NbHC7ZEOWPuIpZtaUKsnJYsGMkver93DrDxWRCTp21yp/r9z5DQP SlSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Fw3uq72wzY2C0WOUnE1WMU7SdIVyP4R6Aer6NZCq9DE=; b=YmiUMTJw1LSa7aiKRxcHo4E64oLdUBijgu5MxmSsUGpu24ecFU0+Qe0UqtEx9YAQYT NS8s56khtd5fKa9u8LO8Zn3Ti825PQkd06Hc+AG8Qnho6koXncbUTIuFOi8lcnTNHBsT A1P19vgcks2AtW65Iex/EFTAnxjgYvnejvzbGlxWsBYcO4bkquBtMBbwMonm8YUkOkbC WHhZ6zLHKyEHh6pknhC92vSkNCrfWM9nvQCsqh8RyMnp+yyWPznbKyH/7jAMyf4fUyw1 BINoubSvbKHM3ul4ijEXKtcHCi4/EkkVFLNtDpTZazNyOBw2z+yoYJw88+2W4Sq7x4iF EUSA== X-Gm-Message-State: AOUpUlFMgxzzN8CDEKi6aD9582c3jTWJu54UCOmVhn9wTSFl5HONSz3o RLhPy/v9AOIT5ma9CWmbD4NTh4XsTp8DHBYeX9GAJA== X-Received: by 2002:a6b:b791:: with SMTP id h139-v6mr5099806iof.274.1533283450308; Fri, 03 Aug 2018 01:04:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:8704:0:0:0:0:0 with HTTP; Fri, 3 Aug 2018 01:04:09 -0700 (PDT) From: Chris Chiu Date: Fri, 3 Aug 2018 16:04:09 +0800 Message-ID: Subject: Built in PS2 keyboard in new ASUS/acer laptops can not wake up system after s2idle To: Dmitry Torokhov , "Rafael J. Wysocki" , 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 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 Chris