Date: Thu, 22 Oct 2015 21:43:25 +0200 From: "Ranjan1018 ." <214748mv@gmail.com> To: Henry Hu <henry.hu.sh@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: <CACyC=qa7forX95CuHPi89ERuzWC=AqDsnxw3PseoqdTpTeqeBg@mail.gmail.com> In-Reply-To: <CAEJt7haZ4vfs2hgavW=CHkiRBcnyMr5TJKO-EhvQ5zbuc4n9JQ@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> <CAEJt7haZ4vfs2hgavW=CHkiRBcnyMr5TJKO-EhvQ5zbuc4n9JQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2015-10-21 23:56 GMT+02:00 Henry Hu <henry.hu.sh@gmail.com>: > > > > 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. > I know graphics/intel-backlight, I have first ported intel-backlight to FreeBSD :-) (and Grembo has done a great job to build a port) or you can try my updated version on github https://github.com/maurizio-emmex/intel_backlight_fbsd to fine control the backlight modifying directly the hardware register. But, IMHO the i915 driver, should be able to change its own backlight without external program or additional drivers. Regards, Maurizio (emmex)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACyC=qa7forX95CuHPi89ERuzWC=AqDsnxw3PseoqdTpTeqeBg>