Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp481327imm; Fri, 17 Aug 2018 01:05:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyQyLI1fkw7NKmwUkY8Yj6Tmc7mwgpuOP6p1Z7Xlg2j08wCNQ4sb7yIwO7szkxuaQ9ctZ8L X-Received: by 2002:a65:48cd:: with SMTP id o13-v6mr30749341pgs.99.1534493150925; Fri, 17 Aug 2018 01:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534493150; cv=none; d=google.com; s=arc-20160816; b=ZDz62jTN6kpAex1uIJMfq27Nl2ogNpUb7BvaXJLXq1tjLJ2von8FKnn17aX7YPQbGN 7Ffwn8Tqoz1OasXgGkhEfs6q2zcb4p89r7fU+8WijQSAV0surM9iGp3MHZ+ouraMSAtT 2a0RAF7Glk80iBg5ewTAyBctfHosHk/LNUATZ7w4cUxmmKAQJ3pC2KOTjehIiAjx1WZ/ CALmNPjNup3Lugc5w1c2hqgk846x/IC0pLLZV+Cl0JndLEZr+tQzPz/Cmg5S8TcbUjbn LyQJbn8odMOSyrprkTrZ/jSsEuf1OrhgurtV4I55kqNbGanWi2nw53sW01TxjQR2lXQr 9wcQ== 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 :in-reply-to:references:mime-version:arc-authentication-results; bh=25AqdTYalrHE2xnyefn4ffOVeaLDI4fuTF9VaaQmP+w=; b=C/8U4f+v2Z1+cJSYs0q3gWk/VyzIgTeWk2U/KlB9X4B/68ScY97QXjzbOQ7BeOApir fNfGhRfsmI6KPfeCRMvm8ty32GIKZiaNk+887N55xjwE0oKSBoCNJubS4qjO0JuWe6SV Ip05Oz3cX/hDPBk2f5DsVsG8pBOjNNXR2LMaN1jCR2cZb6cBcxTSs3SAYAdbkh5gGNNw /+U6ia9wZz/0JHXBUA39xp5tYSiu++Z5qNhnFlpIHf7pJtGtdzO1luPg+C+SSdT0Ypoa PzzjPYqY1C2jlvH0A5chANAhr+x2OTCKigdT2d5gXQbpaKux3AuFCH5ctae/j9lUk385 gzPA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a140-v6si1761608pfd.35.2018.08.17.01.05.35; Fri, 17 Aug 2018 01:05:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726609AbeHQLGz (ORCPT + 99 others); Fri, 17 Aug 2018 07:06:55 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:40291 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbeHQLGz (ORCPT ); Fri, 17 Aug 2018 07:06:55 -0400 Received: by mail-oi0-f68.google.com with SMTP id w126-v6so12634610oie.7; Fri, 17 Aug 2018 01:04:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=25AqdTYalrHE2xnyefn4ffOVeaLDI4fuTF9VaaQmP+w=; b=n6Q8ttbnz/vk5f/ZI0kmk603RwhTMMjdGzAVyk8yGuCHfrqrHdSuglmBcAIDTVA1Zp +x1ur+lwi/E5Rve56kWgk+ThtXEfOaUCXpRTPqVUidiIK35h6Kt0MUp9K+46GJkNo+tz tzjbMptJKSR9EeOZn87JQ5CHJDy1tz0AYcZbbeE5xUajl+0vJOhfjxgY1+Bd9zNsjOTp 1GzVWxnB4XdmXtuu7AlePgQ/6thGV0Cd+/WSCGEF3NLPgbdzdJ3Lj/n+brr0YU89dtDh 156dieFnWisu63Ay0UpwgXEbNPh/sdkHYMfrPIvQR1Su7FBFnyuguu6h1pcPdVO12wVt 4X+g== X-Gm-Message-State: AOUpUlGOpxinZKomFJkMbHRlqlOAxLmGYPrP2N6BoJNxB5ODw9qdH3Sp flkyAu4PUFljghpHVu51aUK+YGFt7Cxl75ho5DY= X-Received: by 2002:aca:1719:: with SMTP id j25-v6mr1520435oii.138.1534493070922; Fri, 17 Aug 2018 01:04:30 -0700 (PDT) MIME-Version: 1.0 References: <73029405.6ZXyByzer1@aspire.rjw.lan> <1631276.bMiRmflJ7r@aspire.rjw.lan> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 17 Aug 2018 10:04:19 +0200 Message-ID: Subject: Re: Built in PS2 keyboard in new ASUS/acer laptops can not wake up system after s2idle To: Daniel Drake Cc: "Rafael J. Wysocki" , Chris Chiu , Dmitry Torokhov , linux-input@vger.kernel.org, Linux PM , Linux Kernel Mailing List , 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 Fri, Aug 17, 2018 at 4:29 AM Daniel Drake wrote: > > On Mon, Aug 6, 2018 at 7:17 PM, Rafael J. Wysocki wrote: > >> '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. > > What would the udev rule look like though? > > Match for Intel CPU generation (WhiskyLake) and laptop chassis type > and then enable i8042 wakeups? While that seems like the most accurate > reflection of the situation which we are seeing across multiple > vendors, it doesn't feel right and seems unlikely to be accepted by > systemd upstream. > > In previous designs, pressing a key while the system was in S3 sleep > would cause a SCI interrupt due to the firing of the EC GPE, which > effectively meant that keyboard wakeups were on by default and could > not be disabled. Also USB keyboards have wakeups on by default (see > usbhid_start()). Just these new platforms have this > unfortunate/accidental behaviour change... > > Would it make sense to turn i8042 wakeups on by default on the kernel > side? I don't know if any particular conditions are applied, but that > would appear to be the default Win10 behaviour here. Yes, it would, but that might prevent some systems from suspending at all in theory if there are keyboard interrupts on them occurring during system-wide suspend, for example. Otherwise, it would just be a matter of calling device_wakeup_enable() at init time for the keyboard port (as long as you know which one of them is the keyboard).