Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2015 16:53:48 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        "Ranjan1018 ." <214748mv@gmail.com>,  FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: [PATCH] Adding backlight support for the i915 driver.
Message-ID:  <55157D0C.2040808@selasky.org>
In-Reply-To: <CACyC=qZAhL3RPqErQh1BjjrhkbvmLXnrVT4i0LEtT10vbjVT2w@mail.gmail.com>
References:  <CACyC=qZAhL3RPqErQh1BjjrhkbvmLXnrVT4i0LEtT10vbjVT2w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55157D0C.2040808>