From owner-freebsd-current@FreeBSD.ORG Fri Mar 27 15:53:04 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B07D8FE for ; Fri, 27 Mar 2015 15:53:04 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D13E922 for ; Fri, 27 Mar 2015 15:53:04 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 110991FE023; Fri, 27 Mar 2015 16:53:02 +0100 (CET) Message-ID: <55157D0C.2040808@selasky.org> Date: Fri, 27 Mar 2015 16:53:48 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Ranjan1018 ." <214748mv@gmail.com>, FreeBSD CURRENT Subject: Re: [PATCH] Adding backlight support for the i915 driver. References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 27 Mar 2015 15:53:04 -0000 On 03/27/15 16:01, Ranjan1018 . wrote: > This patch exposes the backlight support via a sysctl: > > set the backlight to 10%: > > # sysctl hw.dri.0.i915_backlight=10 > > hw.dri.0.i915_backlight: 25 -> 10 > > set the backlight to 50%: > > # sysctl hw.dri.0.i915_backlight=50 > > hw.dri.0.i915_backlight: 10 -> 50 > > decrease the current backlight value: > > # sysctl hw.dri.0.i915_backlight=-1000 > > hw.dri.0.i915_backlight: 50 -> 43 > > increment the current backlight value: > > # sysctl hw.dri.0.i915_backlight=1000 > > hw.dri.0.i915_backlight: 43 -> 51 > > # sysctl hw.dri.0.i915_backlight=1000 > > hw.dri.0.i915_backlight: 51 -> 60 > > I am running this path on for about a week without issue. > > This path can be found at: > https://github.com/maurizio-emmex/i915_backlight_freebsd > > I thank Elizabeth Myers, elizabeth at interlinked dot me, for the idea of > adding the backlight support for the i915 driver and for the original patch. > > Regards, > Maurizio Maybe you want to use "CTLFLAG_RWTUN" so that it also can be set from /boot/loader.conf ? --HPS