Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705032
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] intel-vbtn: match power button on press rather than release |
| Date | Mon, 07 Aug 2017 02:40:02 +0200 |
| Message-ID | <ubEfo-111-5@gated-at.bofh.it> (permalink) |
| References | <uaOgN-1p8-7@gated-at.bofh.it> <uaUmf-5dC-25@gated-at.bofh.it> <ubekW-1o0-29@gated-at.bofh.it> <ubfK1-2mC-5@gated-at.bofh.it> <ubD9D-nK-11@gated-at.bofh.it> |
| X-Original-To | Darren Hart <dvhart@infradead.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Ted2+FkkXxfp/m/i+7wbdOV22zqieeio3kT2MJxZKMs=; b=dX54RPtRPU73WRjZ1prfojKduyp1dU4BF+0zYmi2+b8qYW6X0+qxigj7Q0YfGKsm87 7/lSieq8hfvkr3Vy3TTs/XhP9eXxXiZuE9AU6PdXgKxN4z44Xa421U6vuPFFZuq4i7be 8owWDQ4lkeSSDfaD20v1vHFFZAEzREWBQaoQHnMWfkVtPnSp0IaXGOZni4WDi+pghcy7 b5L8qe3OG2I16nIr7VmC1beUhbtsABJ2uDN13NAm0+BHTI4RfLF+aD4P24ZGIiL+vYzX iOTk5DqtAvfEKe09GRFIwqYFS8Y/GtmRw4+scuy+IpFZEHooiSTOdeu2JSScLAY78PmI ON4w== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Ted2+FkkXxfp/m/i+7wbdOV22zqieeio3kT2MJxZKMs=; b=ZPaj1cd/ncGLlJ9Dsff/tt1kMOHwYwFUdrow3e4sTGjWFDboxpQSkf7gOpZQbAOfjX mzq2LctbD6MfkM139oGsCTOPC6e4A14AU0Hoq5oGs4f4PGQYE5cqDsD7UTCJ36G8l6AI U/iKJZo/OA8ldTMX+b3INPnFhjufwLWfcHV7H18Y0Z/Sv4WeJME99LfT5OnSk5wTTfwQ ZZrR6vePmKtGR0mYi8U27iV3Oym3gMULGj8QDl1Eq14mLSzEzQZFcbBQmgiZiJlzUp7a EVVIOWSiAqAU1CnSUK2/6RAjCaLh5FTEFPWrJ/EhnW1pWpebFoqO5PivViqA6lDwWsg0 9sZg== |
| X-Gm-Message-State | AHYfb5gxgoDpUxgaaYbbhfIfIwmtCBI3CTCHOeESrTlfaX2BTHaDEhOd 6QCo5MnyADXeK2ynuWMAmv1kJ+M16Q== |
| X-Received | by 10.107.43.131 with SMTP id r125mr10243856ior.76.1502066288500; Sun, 06 Aug 2017 17:38:08 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | w-BiqCoRY1KIHN2BNxW43gZnC3w |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 52 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Rafael J. Wysocki" <rjw@rjwysocki.net>, Mario Limonciello <mario.limonciello@dell.com>, AceLan Kao <acelan.kao@canonical.com>, Linux PM <linux-pm@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Platform Driver <platform-driver-x86@vger.kernel.org>, Len Brown <lenb@kernel.org>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| X-Original-Date | Mon, 7 Aug 2017 02:38:07 +0200 |
| X-Original-Message-ID | <CAJZ5v0g3v=fQ79P1WG-L7imNBMuvh30uHz0GcAnZJcwFKptYvQ@mail.gmail.com> |
| X-Original-References | <1501866006-24811-1-git-send-email-mario.limonciello@dell.com> <11471111.T3jHVeqpMT@aspire.rjw.lan> <20170805205753.GA1277@fury> <1700343.1Fm4iKlbcW@aspire.rjw.lan> <20170806232418.GA29692@fury> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1705032 |
Show key headers only | View raw
On Mon, Aug 7, 2017 at 1:24 AM, Darren Hart <dvhart@infradead.org> wrote: > On Sun, Aug 06, 2017 at 12:20:22AM +0200, Rafael Wysocki wrote: >> On Saturday, August 5, 2017 10:57:53 PM CEST Darren Hart wrote: >> > On Sat, Aug 05, 2017 at 01:30:20AM +0200, Rafael Wysocki wrote: >> > > On Friday, August 4, 2017 7:29:53 PM CEST Darren Hart wrote: >> > > > On Fri, Aug 04, 2017 at 12:00:06PM -0500, Mario Limonciello wrote: >> > > > > This fixes a problem where the system gets stuck in a loop >> > > > > unable to wakeup via power button in s2idle. >> > > > > >> > > > > The problem happens because: >> > > > > - press power button: >> > > > > - system emits 0xc0 (power press), event ignored >> > > > > - system emits 0xc1 (power release), event processed, >> > > > > emited as KEY_POWER >> > > > > - set wakeup_mode to true >> > > > > - system goes to s2idle >> > > > > - press power button >> > > > > - system emits 0xc0 (power press), wakeup_mode is true, >> > > > > system wakes >> > > > > - system emits 0xc1 (power release), event processed, >> > > > > emited as KEY_POWER >> > > > > - system goes to s2idle again >> > > > > >> > > > > To avoid this situation, process the presses (which matches what >> > > > > intel-hid does too). >> > > > > >> > > > > Verified on an Dell XPS 9365 >> > > > > >> > > > > Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> >> > > > >> > > > This looks good to me - responding to the release is non-intuitive IMHO >> > > > anyway. I'd like to see agreement from AceLan, but this should go into >> > > > the 4.13 rc cycle (at rc3 currently). >> > > >> > > Yes, it should, and I'm not sure if the original author's opinion matters here. >> > > >> > > The patch makes sense to everyone involved and fixes an annoying issue, so >> > > I don't see any real arguments against applying it. >> > > >> > > Please feel free to add my ACK to it if that helps. >> > >> > I always try to give those in MAINTAINERS a chance to respond, but I will queue >> > this up to fixes now. >> >> Thanks! > > Rafael, > > Merged to mainline (in case you were waiting on this for the dependent > patch you mentioned). Awesome, thanks!
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] intel-vbtn: match power button on press rather than release Mario Limonciello <mario.limonciello@dell.com> - 2017-08-04 19:10 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release Darren Hart <dvhart@infradead.org> - 2017-08-04 19:40 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-08-05 01:40 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release Darren Hart <dvhart@infradead.org> - 2017-08-05 23:00 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-08-06 00:30 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release Darren Hart <dvhart@infradead.org> - 2017-08-07 01:30 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release "Rafael J. Wysocki" <rafael@kernel.org> - 2017-08-07 02:40 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release AceLan Kao <acelan.kao@canonical.com> - 2017-08-07 03:00 +0200
Re: [PATCH] intel-vbtn: match power button on press rather than release Darren Hart <dvhart@infradead.org> - 2017-08-07 06:00 +0200
csiph-web