Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3375569imm; Mon, 4 Jun 2018 02:29:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL0Kg0LY9LEeO6LZeUm/WR6MLqlgAezXTVyR8TRaUFkYEull9UH9XfOQuqf3bC3uW4BeT5m X-Received: by 2002:a17:902:164:: with SMTP id 91-v6mr21259884plb.134.1528104589526; Mon, 04 Jun 2018 02:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528104589; cv=none; d=google.com; s=arc-20160816; b=SgSl8NqbBBjMaLjfySxRiyTK0QTv5IpknV2/gDXcZhv0qc5BGKjEyTFBFy09Nxy7a/ KXJrcuU7VB9xwXCJ1wjB/BKeg8SbLMY/29MMCbTApEpSpbqvGhqOpgjh8lmQZSbdS3E/ lG9ZDpo3lwRqZsH5GYvdRrKeY7o3jLDOiujePvY7cuxCSI6wRlkv1CA++BL+9FfPwbzn 23kxPJBRW8SjKJcPUahljBvVRXQtf30BzFoOIeGxyCIB/nMcjFsKNdNeV3z0g78zuQBf ce8edkFzzJpqokTvQ3vYWw7CHr+DychICKclYBjFJ+BtpJr/XL3KFMjB5ymvVrtaxPmU Gkow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id:arc-authentication-results; bh=h/isbIjUkQgoIdIURmMoHmlSVfIjgGJO30h/nxlUBi4=; b=RUMYzBosG15UkPTxiE4d+upkYBIuFjErX23YD3Jp1ojIR2JZSL0ne3Y39a6BLI9wMC VoIaejw1M/+FaiWZlxfmIV2wPx4CICuUDbsDlLPBhP890EfxdexiE8bWXkfijYGVxrg0 6aiLvI9bglEJDyx1ujhPws/1RqVjTA7tUl3hPG81Vd5kt5aCLb/oUlrOxGWbzE5U41vt qeIEcFaX1ttHQQplRBRtVu2DNmx84DO8G0RRhH3axYo56zWmy03+9kSSPco/OL2po93r 54csbUCHoLN6wOxistZSFzBHKqJsDxZn9nIUW+VcDzunRA62NwR6sdcU3XSsRfomFn3l Rfew== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si20431359pll.404.2018.06.04.02.29.34; Mon, 04 Jun 2018 02:29:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbeFDJ2E (ORCPT + 99 others); Mon, 4 Jun 2018 05:28:04 -0400 Received: from s3.sipsolutions.net ([144.76.63.242]:53214 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbeFDJ2C (ORCPT ); Mon, 4 Jun 2018 05:28:02 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fPlmE-00044i-3o; Mon, 04 Jun 2018 11:27:46 +0200 Message-ID: <2634178c3b1fb2c1174eae0d67419e285e2f7c26.camel@sipsolutions.net> Subject: Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support From: Benjamin Berg To: Chris Chiu , Daniel Drake , Hans de Goede Cc: Andy Shevchenko , Corentin Chary , Darren Hart , Andy Shevchenko , acpi4asus-user , Platform Driver , Linux Kernel Mailing List , Linux Upstreaming Team , Jian-Hong Pan Date: Mon, 04 Jun 2018 11:27:43 +0200 In-Reply-To: References: <20180503030438.51150-1-chiu@endlessm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-55gQeibBvF1gilaf+Ot3" X-Mailer: Evolution 3.28.2 (3.28.2-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-55gQeibBvF1gilaf+Ot3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 t= hought > 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. Benjamin --=-55gQeibBvF1gilaf+Ot3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEED2NO4vMS33W8E4AFq6ZWhpmFY3AFAlsVBg8ACgkQq6ZWhpmF Y3ANhhAAjloye/ZcS7iPIU/wuwAotBQhxKT8oA2QAJLRkKqfD94pN4+E+1kN8pkv kiKBrlBS5dYn8XX+AIP6Gc4dZGn1Y/yrUCgZNnF7+kyp6KYdmqo2ortk/E0MP7fy A4+KauxqgbB7VaBkpA78QAj73imaIVHxHsXXiIBDeliMkl/MSuIV3d34MCc5u/rV tovljsKyFEWdxKFbOiQ77ga/sJiTuiLUrREUjoLz1ff0EGtDWsD/Q+ZbtzgKV1C5 AcuzDTx0vxAnDYv3cGjt2MWkAFNAnHKopxORS01ewFVZF/iPfa5UoHszrVtj2cZl pSmADzCjQJHyBI5gZ1jgPtjJZhNiZ8F6WKtrlhJe4dZz0lP5DVbdSZgaVyXM/0VB 9MwLuMenq7QmpRFDpvH/xBAlepzwaZ085TeEPBoKKt++nDfTiXsorfKZE8q1xdGX YCPi3zmr5oE+D2ASDuQIxtwa0QVmSZRQWfBEoU4NI/liY5v9RtNTff8Jx9KhocS+ 5b8gRkIRdL/HUc6vqqIJtG3W5rkd3g9ku2Oy1eaApiPrFovMUGwAQDiODiCSKRDj fUn1d2BwUi+eXpLdfQtzxBQgN9oVSTqdaku8ChD9fjMm0GKBaHNXeQZGfOvYu4H1 PL/LI6EmQjLMxMDnnfV9PCR8Fk0fFQXZtOG8TORZKeZRdRUesV8= =4f3I -----END PGP SIGNATURE----- --=-55gQeibBvF1gilaf+Ot3--