From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Kaehlcke Subject: Re: [PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye. Date: Tue, 11 Jun 2019 15:30:19 -0700 Message-ID: <20190611223019.GH137143@google.com> References: <20180208113032.27810-1-enric.balletbo@collabora.com> <20180208113032.27810-4-enric.balletbo@collabora.com> <20190607220947.GR40515@google.com> <20190608210226.GB2359@xo-6d-61-c0.localdomain> <20190610205233.GB137143@google.com> <20190611104913.egsbwcedshjdy3m5@holly.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Brian Norris Cc: Daniel Thompson , Pavel Machek , Enric Balletbo i Serra , Doug Anderson , Rob Herring , Jingoo Han , Richard Purdie , Jacek Anaszewski , Guenter Roeck , Lee Jones , Alexandru Stan , linux-leds@vger.kernel.org, devicetree , Linux Kernel , kernel@collabora.com List-Id: devicetree@vger.kernel.org On Tue, Jun 11, 2019 at 09:55:30AM -0700, Brian Norris wrote: > On Tue, Jun 11, 2019 at 3:49 AM Daniel Thompson > wrote: > > This is a long standing flaw in the backlight interfaces. AFAIK generic > > userspaces end up with a (flawed) heuristic. > > Bingo! Would be nice if we could start to fix this long-standing flaw. Agreed! How could a fix look like, a sysfs attribute? Would a boolean value like 'logarithmic_scale' or 'linear_scale' be enough or could more granularity be needed? The new attribute could be optional (it only exists if explicitly specified by the driver) or be set to a default based on a heuristic if not specified and be 'fixed' on a case by case basis. The latter might violate "don't break userspace" though, so I'm not sure it's a good idea.