Date: Wed, 21 Oct 2015 17:56:08 -0400 From: Henry Hu <henry.hu.sh@gmail.com> To: "Ranjan1018 ." <214748mv@gmail.com> Cc: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= <dumbbell@freebsd.org>, "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org> Subject: Re: [patch] Testing the new i915 driver (rev. 3820047) Message-ID: <CAEJt7haZ4vfs2hgavW=CHkiRBcnyMr5TJKO-EhvQ5zbuc4n9JQ@mail.gmail.com> In-Reply-To: <CACyC=qa6M5Bna=wwO4S95RWzDngExVYGD0ifX6nDB=KdzKYrLQ@mail.gmail.com> References: <56224C70.8040906@FreeBSD.org> <28961.174542974$1445329913@news.gmane.org> <2055370.RNj6gJ7qL2@asbach.renzel.net> <CACyC=qa6M5Bna=wwO4S95RWzDngExVYGD0ifX6nDB=KdzKYrLQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 21, 2015 at 3:09 PM, Ranjan1018 . <214748mv@gmail.com> wrote: > Backlight support for the i915 driver via sysctl. > > Instructions: > Install the attached patch : > > # cd freebsd-base-graphics > # patch -p2 < i915_backlight.patch > > Rebuild, install and reboot the new kernel. > > Now you can control the backlight of your laptop via sysctl: > > set backlight to 10% > > # sysctl hw.dri.0.i915_backlight=10 > hw.dri.0.i915_backlight: 9 -> 10 > > set backlight to 20% > > # sysctl hw.dri.0.i915_backlight=20 > hw.dri.0.i915_backlight: 10 -> 20 > > increment the backlight > > # sysctl -n hw.dri.0.i915_backlight=1000 > 20 -> 25 > > decrement the backlight > > # sysctl -n hw.dri.0.i915_backlight=-1000 > 25 -> 20 > > decrement the backlight > > # sysctl hw.dri.0.i915_backlight=-1000 > hw.dri.0.i915_backlight: 20 -> 16 > > You can also set the initial backlight at boot in /boot/loader.conf : > > drm.i915.init_backlight=10 > > or via /etc/sysctl.conf > > hw.dri.0.i915_backlight=10 > > set a 10% backlight. > > I am running this patch on current for months on my Samsung Samsung ATIV > Book 2 270E5E with Intel HD Graphics 4000. > You can try graphics/intel-backlight, which does not require a kernel patch. > > Thanks, > Maurizio > > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > -- Cheers, Henry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJt7haZ4vfs2hgavW=CHkiRBcnyMr5TJKO-EhvQ5zbuc4n9JQ>