Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1381571imm; Tue, 22 May 2018 03:13:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqrHsD8r/Hb3UBRxqh0iwJAJskYNo1F3YXhYUeIi5Jx/S2l6O2OrU+L7XcylEULxDLitwFK X-Received: by 2002:a17:902:1025:: with SMTP id b34-v6mr23721068pla.207.1526983984295; Tue, 22 May 2018 03:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983984; cv=none; d=google.com; s=arc-20160816; b=cCiBTuAw1+kPHaNFJezxKt/lCHMazIXLT6UKobj2VqJ3A7wXqv2XkqkfF4gS5XvdLw SUaY+Wdgpg350mBi5MnRxvM+hxVh8Sa8Zn92N4P/y5wZCU/aDyc7rEjQ6JCmqrlMkpzt YF5f7fMe7lkWpV2+q6zcuwLtMRYMC+QQtcdwLsWKqLpjMsfCGFYVqJtprFFGOYu6yWo+ 96kIrMIPZmq+0kBy3x0xfGKwyIGEWPU/j9XA4TydCORXBXO3fdn+aMBXYmdhUort1U2B VCfVEnyFbut9SZNIxFMUvj/aI6iQIQkEEf9Z9U6g7FUz6OcqKre20QAA126jhcJb9Wac +2mA== 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=5YDDP2aL1McO8GRC5bjWsyE+Iw4BibABkl+lrVXLO5s=; b=RXvpkUuMdUAoxCahBD7VA1B+YLT6sWz8fA2c4BiegRPrUue7alz26TV1QdV3wHQ8bI GdFyH/hm1k1f9Dxhw3BwrlMjPfwWMTEmciKII8ay0+RAg2x1hPM2Ph8A8thiwNkM/NJm MEug7JjcJ2retbmrQVh34CRUxerW1tsHA6vc+o9uCNjLQYaSRw1wAxEpLu1oLIImvoUs aUHTFZC238TCO/9Oa+Sy3WVXHmKznta0i66BbnYo1RdON+DrU/kkqLVqMoxPVyCDZUwR PzAOrplci77Z7NahafRYQd/q7hYZ26bcz9K7bB69ENAL3iYfMBZqhVi4bmyp/CoJ/u3a XiZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=TmDKnro4; 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 e3-v6si16139942pfc.336.2018.05.22.03.12.49; Tue, 22 May 2018 03:13:04 -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=TmDKnro4; 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 S1751559AbeEVKLM (ORCPT + 99 others); Tue, 22 May 2018 06:11:12 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40138 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbeEVKLE (ORCPT ); Tue, 22 May 2018 06:11:04 -0400 Received: by mail-wm0-f68.google.com with SMTP id j5-v6so31912865wme.5 for ; Tue, 22 May 2018 03:11:03 -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=5YDDP2aL1McO8GRC5bjWsyE+Iw4BibABkl+lrVXLO5s=; b=TmDKnro46yCc/f1R/5r+of0g43k2Qr63T2nbk/hEhjTDZ4N6Keq3yia9IcdpdUECXc 2O7azFfGglDrROzQ8fjPjwnxCS92GfRZViCIr9BlDdR3qlnoWEza9wYIadmzToC2Chfl ZhUQZgnGBCufkVf9Tj/eqJqJ78sv06p2w9uX2+b1G4GP3AwYeEOYRfO5FuYWxQtGrSZU C4NlqPE4N2kOJQUhmdieS3ryHyXUmjvlR2jgUHgIzDwHH58HMUeP3v5+xqAkMHP0ZibH HZc5mz77ziRNrPeap4xJyy/J6nnUssOwjXLwgV2jfl/mJu504odqjyDeHtmx46rOlKjt 6jMA== 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=5YDDP2aL1McO8GRC5bjWsyE+Iw4BibABkl+lrVXLO5s=; b=VgXyp3scaC2pI+BcfGC88ew35sljOOiWZDyI4kJSLfM5geMldJJ2XdMQcHfHXlVech 0s2VQWec1XP5vQjDHL1OocoI8nT0+r0SemYa2HSSMGZ49CFi36qBRzxJTDNM0PWtaZzs IOx+nB4xessppSOnZ0w2avyq9qOJW2gBWLPb1+uPYZVpgTAbj20o0b2EePHXu1UpgTH2 ouJPRBwc1V0gLWUiK4BRmEf6gWuz9zCEKVDeaK2zqbx1qDdf9B8LX6wDKVykgz+0lAIj VeDVD/0X/A8bzEgGMXo4Dvi7YKaUKXaWnn8HKbTTq/jt6yau1kjTOIhWN/c4tY9Fmb99 gnog== X-Gm-Message-State: ALKqPwfj1OwGiIhSXqes0ZirFOmq9z+uBiXvORrwAbTSSiHpNVzChy0z xNxB5lrtmXf/jf3EzDdL6/+H/ymiD+JgO8WwcmbNzw== X-Received: by 2002:aa7:c2d0:: with SMTP id m16-v6mr1417912edp.171.1526983862980; Tue, 22 May 2018 03:11:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.245.113 with HTTP; Tue, 22 May 2018 03:11:02 -0700 (PDT) In-Reply-To: References: <20180503030438.51150-1-chiu@endlessm.com> From: Chris Chiu Date: Tue, 22 May 2018 18:11:02 +0800 Message-ID: Subject: Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support To: Andy Shevchenko Cc: Benjamin Berg , Daniel Drake , Corentin Chary , Darren Hart , Andy Shevchenko , acpi4asus-user , Platform Driver , Linux Kernel Mailing List , Linux Upstreaming Team , Jian-Hong Pan 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 Tue, May 22, 2018 at 5:18 PM, Andy Shevchenko wrote: > On Tue, May 15, 2018 at 4:41 PM, Benjamin Berg wrote: > >> I had a quick chat with Bastien about this. The conclusion was that >> reusing the TOGGLE key may be problematic for gnome-settings-daemon. >> And the alternative of a new CYCLE key also has some caveats. >> >> The most straight forward solution is likely to simply handle the >> brightness change in the kernel and not report the key to userspace at >> all. This should work just fine and at least GNOME will show an on >> screen display in response to the brightness change. >> >> Do you think that approach would work well? > > Am I right we are waiting for Daniel's answer? > > Btw, I mistakenly thought that patch in the queue for-next, while it's > not. So, I'm going to drop it now. > Feel free to re-submit a new (better) version. > > -- > With Best Regards, > Andy Shevchenko So it's better to handle NOTIFY_KBD_BRTUP, BRTDOWN, BRTTOGGLE (c4, c5, c7) in the driver and no need to pass it up to userspace? I'll work out a patch for this. Chris