From owner-freebsd-current@FreeBSD.ORG Sat Jan 31 04:19:29 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7EAC7C1 for ; Sat, 31 Jan 2015 04:19:29 +0000 (UTC) Received: from mail.wilcox-tech.com (mail.foxkit.us [192.99.209.192]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.wilcox-tech.com", Issuer "mail.wilcox-tech.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 56B197C4 for ; Sat, 31 Jan 2015 04:19:28 +0000 (UTC) Received: (qmail 15030 invoked from network); 31 Jan 2015 04:20:46 -0000 Received: from ip68-13-243-137.ok.ok.cox.net (HELO ?192.168.1.253?) (emyers@wilcox-tech.com@68.13.243.137) by mail.foxkit.us with ESMTPA; 31 Jan 2015 04:20:46 -0000 Message-ID: <54CC57CE.2080001@interlinked.me> Date: Fri, 30 Jan 2015 22:19:26 -0600 From: Elizabeth Myers User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Justin Hibbits , Adrian Chadd Subject: Re: Questions on adding backlight support for the i915 driver References: <54C883E7.4000300@interlinked.me> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2015 04:19:29 -0000 On 01/30/15 17:25, Justin Hibbits wrote: > Would it make sense to have a generic 'backlight' driver framework > that we plug into? I wrote a backlight driver (well, 2, but both show > up as dev.backlight in sysctl) for powerpc, but if we want to have > even more individual backlight drivers, I think it makes sense to make > them all look the same, with similar configuration properties. > > - Justin I was thinking the same thing myself. There's a lot of different backlights out there, and acpi_video(4) obviously can't cover them all, which seems to define the de facto "standard" MIB for brightness sysctls (which upower presently uses). I hate to bikeshed, but I would humbly suggest adding an MIB hierarchy such as hw.backlight...brightness (and maybe brightness_raw for advanced users who want/need more control). -- Cheers, Elizabeth