Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1160565ybl; Fri, 16 Aug 2019 09:52:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWQR42a5XR2sIOn4PXsXTxaX10P65vDQmJRdjM5bhFb4XRmROdjLyzeU6/R4agZhqUy9jg X-Received: by 2002:a17:90a:bc42:: with SMTP id t2mr8129156pjv.121.1565974362288; Fri, 16 Aug 2019 09:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565974362; cv=none; d=google.com; s=arc-20160816; b=1ADW8eMQA+q9OaYxHXEa2iYCy/KcTdXnhWIyMOYfZGWR7vm+O+8XNM7EKafoARnBVC I3Zn0We0uCwSidV250CHii99k4yXC0dDKJzX1sSQJPtESEIF3bZt8lAIZZuCNBt9MoRR 8N1SXPoUNNKsbCKb5WSpHbSSMUXuVnFEuY4xEbUKoH3mzyE8DR2jXdUAz7Y7ybX9fUNk g5euVgkP2+Yqk5x/2gsXOKuN5v9QDZlLJY9LCG2qpFaP+FlJYLzjbaBQNBAYaKmkD8f/ suwv0hgHWieM9HHShLJSekxNfA4vZesYgIsUdzLTDKBDqWr83OXyRxDdxRF+mbT2BupT BGQA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Civt5NBOAWGf5GW0UyddmzqlkRDCO+LU3qsIQ+KkPpU=; b=sOVCsvicmqOtMMCzrItXlImlGlGib8BRDYlXU7HOwvBJaFqxlbrq3kjUfey68opNVl IUbr7pPcJHsyuTvKbrUupdUMGn4ZnFZEoxU+ZSa1RGUyQndAywtHt80A9d4BoPBtVQ20 V250nJ/FizfyIRimrebdFPyG7WdYlU4EOVu6vaFN6DVI/fjg8Bi7VcKyENtvXs1pGZfN mq3Hb4gGAnFkUWeqJtboKrbLTUbF5CUTZ1IZqxe81VMo+tLf2MO8wGDroqlMeiC7BBxr 7eNfQaPszFz/wjRiwbS5nDomK2M5HDGjImdO/+hRS72DL8mBFx2yAbFOBq0q2mVrxIhv Xn7w== 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 n10si4211080pgr.27.2019.08.16.09.52.26; Fri, 16 Aug 2019 09:52:42 -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 S1727448AbfHPQvz (ORCPT + 99 others); Fri, 16 Aug 2019 12:51:55 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41355 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbfHPQvz (ORCPT ); Fri, 16 Aug 2019 12:51:55 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hyfSA-0002eU-Cf; Fri, 16 Aug 2019 18:51:50 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hyfS8-00027l-G7; Fri, 16 Aug 2019 18:51:48 +0200 Date: Fri, 16 Aug 2019 18:51:48 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Matthias Kaehlcke Cc: Thierry Reding , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , linux-pwm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Enric Balletbo i Serra , Douglas Anderson , Brian Norris , Pavel Machek , Jacek Anaszewski Subject: Re: [PATCH v3 2/4] backlight: Expose brightness curve type through sysfs Message-ID: <20190816165148.7keg45fmlndr22fl@pengutronix.de> References: <20190709190007.91260-1-mka@chromium.org> <20190709190007.91260-3-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190709190007.91260-3-mka@chromium.org> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 09, 2019 at 12:00:05PM -0700, Matthias Kaehlcke wrote: > Backlight brightness curves can have different shapes. The two main > types are linear and non-linear curves. The human eye doesn't > perceive linearly increasing/decreasing brightness as linear (see > also 88ba95bedb79 "backlight: pwm_bl: Compute brightness of LED > linearly to human eye"), hence many backlights use non-linear (often > logarithmic) brightness curves. The type of curve currently is opaque > to userspace, so userspace often uses more or less reliable heuristics > (like the number of brightness levels) to decide whether to treat a > backlight device as linear or non-linear. > > Export the type of the brightness curve via the new sysfs attribute > 'scale'. The value of the attribute can be 'linear', 'non-linear' or > 'unknown'. For devices that don't provide information about the scale > of their brightness curve the value of the 'scale' attribute is 'unknown'. > > Signed-off-by: Matthias Kaehlcke I wonder what kind of problem you are solving here. Can you describe that in a few words? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |