Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp336619imm; Mon, 4 Jun 2018 18:59:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJsan3q6sCiVg+V4blboWir/WqfgO9jgXWczq1TKEbxcIeds8yUVnpwn8dQusEEhfKQMzC3 X-Received: by 2002:a17:902:7896:: with SMTP id q22-v6mr24576205pll.243.1528163997013; Mon, 04 Jun 2018 18:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528163996; cv=none; d=google.com; s=arc-20160816; b=pWeWe5FoTUjoF9+0TcbT0haiGcMRZE3FiKkce03V+TBJICpGylTzAkluNkBoZjohA+ EE8YTgcXtdLLqORJ++7EwDvbxq2IdYM5y/q6W8PG1bN87wjq3l1SMO5rRWv0PzDbOSm9 o2+weyfItqOys+2BbnmEL3rPCBUCVobp9KauMhtUsMqSQ8W9+dgPqeG6MwK4HFhee521 15XsJ1jl+AUTVlHpG8if9Or0X2Jjd2TBZXzSRPuH8PSJ/IheL5Z9Mn3995db4IocMVgh gXzrr0XJ5g3qM9R1IQduIyP25n/Ii6A3j4eGhBr4gMju1SROQ7ZaUYivkUA/dbT4hXNy z/4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=XjskHoM/J34jhHeSjlGVs4n/80FRoyH15vDDZQ7a9QI=; b=J1vgnG2rp21DMxmGmYY79uqZKINZvvQVyMvaZyvTmBntmpDWKJGURM9MTjuzYK0Czl drid5U0WSRc0p8SiFG9s7vn/K3l6AUTOYtY/HWgDHIxQbk3WO+hWACEbJTNNeskraaMn Xh4OvOY+4B95h+ibcNlepK2KcEwkE0kyQk/N6gCVyOERJ8CxevwV0DPDH62FLoLhvFl3 M74bH1MHPf2+tieHZRVyefsc/bO+EnJXp9GAGjdP0ZruZarCqGOHogVF0BvSr4a88+1H s0AMpDCyMZjL3oEhwO/3F2votq49H51eo0OAMbDWjS2ufRtuu7iNeoNTd+3Xg4EDhGUh WMtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=O5X6Tg5N; 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 g3-v6si46309350pld.309.2018.06.04.18.59.42; Mon, 04 Jun 2018 18:59:56 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=O5X6Tg5N; 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 S1751498AbeFEB7R (ORCPT + 99 others); Mon, 4 Jun 2018 21:59:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37898 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbeFEB7P (ORCPT ); Mon, 4 Jun 2018 21:59:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XjskHoM/J34jhHeSjlGVs4n/80FRoyH15vDDZQ7a9QI=; b=O5X6Tg5NUQ++UQt01FuKUnaEQ EtjJlZdJJydTcmVsDCTr6zFNbko6cOxUvih36ddThQesE09cCYcsXGZtg3hv0O0AVVN7F2j6fnnft KbPmUxMBliciY6U/qMAj1Y5NlXlm5sgL6GMY8wPbdE1wOIa6x24abpXLvhmoTNnao4az/Ho7Cuo2Q 9lDenuxRhJnFmogWuJanACz7rS1adLLQNVf05o+BXxn8fIXoScUOcC1UMjIUlO+wPOgy1N/1pJ89O e6bMBQxpUEsUaR7lzO38CRsNYQlugx8G7ViuFBZEvqdFzNdbTxh55HvA6Io+HRHKXSvsa/VcVIUzU p0mxnJOJQ==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQ1FW-0003hg-AG; Tue, 05 Jun 2018 01:59:02 +0000 Date: Mon, 4 Jun 2018 18:59:00 -0700 From: Darren Hart To: Benjamin Berg Cc: Chris Chiu , Daniel Drake , Hans de Goede , Andy Shevchenko , Corentin Chary , Andy Shevchenko , acpi4asus-user , Platform Driver , Linux Kernel Mailing List , Linux Upstreaming Team , Jian-Hong Pan Subject: Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support Message-ID: <20180605015900.GC47042@localhost.localdomain> References: <20180503030438.51150-1-chiu@endlessm.com> <2634178c3b1fb2c1174eae0d67419e285e2f7c26.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2634178c3b1fb2c1174eae0d67419e285e2f7c26.camel@sipsolutions.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04, 2018 at 11:27:43AM +0200, Benjamin Berg wrote: > Hi, > > On Thu, 2018-05-24 at 16:33 +0800, Chris Chiu wrote: > > 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? > > Sorry for the late response. > > There is a special mechanism to report that the HW changed the > brightness. This works using the "brightness_hw_changed" sysfs > attribute. So you will need to set the LED_BRIGHT_HW_CHANGED flag on > the LED and then call led_classdev_notify_brightness_hw_changed to make > it work. > > Userspace should correctly show the OSD when this is done. This makes sense. Userspace can't be aware of every platforms sys files, so there needs to be a common mechanism. LED_BRIGHT_HW_CHANGED makes sense. -- Darren Hart VMware Open Source Technology Center