Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1845440imm; Thu, 24 May 2018 01:35:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/pgWROyo4RyeC+OSHxgBb21N0VXud9l6ocSxnXB5dGQ3Vip7GPyv+zOrArglbMHNArikh X-Received: by 2002:a63:a60a:: with SMTP id t10-v6mr5033995pge.351.1527150908206; Thu, 24 May 2018 01:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527150908; cv=none; d=google.com; s=arc-20160816; b=bfCJc8usws8qgNtOqTfd571CsKQ1Im0iEke0TaP8hBULOfwQNNjtW7NKGe2eq0OLGy wMJR+9nco0LSI9ChlWe626UgTKnc4f+Su0AJL34IWrEyg9vUxoPrFDdQ3AqipSDlE6KY izcO0Wu6XotJdP6MtJR+wwGN4kraIN52lT+8MwyHaURa5ZhxsCj72uvgM0G7f46HeKCH YMtabxIykfDNkZDN2N5bBGjqND6lcklCQhoYoeGsfrj9s/n66v04mTBTrBHsNckzyrYM z8/L6sXwC9rqlStVo/ziaWYXq3m8LDljXI782yn47oifi2Knzp/x4QK7UxztoGffwBkd fsIQ== 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=weThpmuo4YXKbQFhW86ODRuPk4XgRgNsKGsxe0uREgk=; b=iXaFCZ4Rscxmi12L2qS5NqOHOTacN11X+xCPQ0QFEVjON+Q1Wy7SqGQ3zKUpUQx/AE PHdZTgGTJPMRFRFbi3qb1mCipOb0Y1rr71+Xurex2iurN5c8A0gAq5NWHFRQP/jW+Lqy 7vm9uaHXGlkRdBKC27JblbtONCd0Ub4idnhcOoXJxUaBw+ZNHJs7rmoomYpyKURqWO9p 56t1/JHziykyGe+s3UnLeinm6yyo/nqZ5IQS3BwL25HXbou1q5jDcQi4vt8lVlqc9wDe RZ3GDBh+y+zrCG2/PtJh3EncjkoeWy5ItViPYPeRZLCsFRF5vbunDFzBKxzCH+oomsU3 HzLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=uCdwt0qO; 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 h12-v6si22657109plt.494.2018.05.24.01.34.53; Thu, 24 May 2018 01:35:08 -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=uCdwt0qO; 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 S965391AbeEXIeE (ORCPT + 99 others); Thu, 24 May 2018 04:34:04 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34399 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965347AbeEXId4 (ORCPT ); Thu, 24 May 2018 04:33:56 -0400 Received: by mail-wm0-f67.google.com with SMTP id q4-v6so6813500wmq.1 for ; Thu, 24 May 2018 01:33:56 -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=weThpmuo4YXKbQFhW86ODRuPk4XgRgNsKGsxe0uREgk=; b=uCdwt0qOti1X8Twq6/jAtfNRcvY/DiFQG53He6kunM/dBCvd4iMN7Sv1LdiGhOmKMh 5giBqdD3afdzFrMY0C9hHVSZpVvcmQDrFNVDUKwMalJadvmdKsr6G+DHza1aGt/QXomo HE2fyhJunovv1+R6fFAWeCV4KayfZJ/FB6NorCx22x+Zmm4l3kDL6rq1n3J8e36/9Rrf EGMUFmj1+36RYwvdRM3m33woz3CxBhLF+HG1dJIrTYvJhjfKgoUVoBoila3w3/2ZhQjB ZddenqHEraWMs3RUEns/7M1gvl3OLW9VFboTUjjHflq9jS5ZAiLBbfTwJEvkOEsHjFmO 7hnw== 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=weThpmuo4YXKbQFhW86ODRuPk4XgRgNsKGsxe0uREgk=; b=Yjlz2X11nLdiqYtSF7IrJ3l7qOy41a4U7/izQ4UWQ433JWibJ9iemsI8fsd7S6c8Rg bNbgCNIcBsRulymCugFcAFoyM0/Yb9Z8FRqHfhIMKp88rOdqT1OSX6T4TXeFoeJjSmWC V6Ug0mSpT2heRzTtFb25T3g7d0QzFh6+IjY4LEh9/wsRgE9Zp7u9Wv+G+XQ3wKJpTQQy hmTPzLGTXk0Wb/weNl30/HXrZxW2RrBbAefZyyfD4RfYG5P2H/IzktUVarpr86/YA6Fs nagIK0uLRsl2Q8vU8krFj/0O9FyNbUfMcydfDllYQjO9MYw+DU9MiM8fJcLCirUunEts 52qw== X-Gm-Message-State: ALKqPwfcvGQpyi/SaVGoogUL/8lxZc0RlVt2R91njZiM/dTvkHoNwXhy +HVCJi78iDMxyiEESELB2BKcCqH8Ze9b9r61SfiVOw== X-Received: by 2002:a50:90fa:: with SMTP id d55-v6mr10891708eda.54.1527150835525; Thu, 24 May 2018 01:33:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:9f01:0:0:0:0:0 with HTTP; Thu, 24 May 2018 01:33:55 -0700 (PDT) In-Reply-To: References: <20180503030438.51150-1-chiu@endlessm.com> From: Chris Chiu Date: Thu, 24 May 2018 16:33:55 +0800 Message-ID: Subject: Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support To: Daniel Drake Cc: Andy Shevchenko , Benjamin Berg , 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 9:48 PM, Daniel Drake wrote: > On Tue, May 22, 2018 at 4:11 AM, Chris Chiu wrote: >> On Tue, May 22, 2018 at 5:18 PM, Andy Shevchenko >>> 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. >> >> 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. > > Yes, let's explore this approach before submitting another patch to Andy. > > Thanks > Daniel Hi Andy, I've made my change to set the brightness level directly in the driver, but the OSD doesn't show correctly correspond to the level value. The brightness shows OK in /sys/class/led/xxxx/brighness but the OSD always shows level 0. I thought GNOME should read the brightness from /sys before showing OSD? Chris