From owner-freebsd-x11@freebsd.org Thu Oct 22 19:43:27 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2CE0A1C83B for ; Thu, 22 Oct 2015 19:43:26 +0000 (UTC) (envelope-from 214748mv@gmail.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACA0E18BC; Thu, 22 Oct 2015 19:43:26 +0000 (UTC) (envelope-from 214748mv@gmail.com) Received: by igdg1 with SMTP id g1so1954750igd.1; Thu, 22 Oct 2015 12:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HsU86UwQxDtp94aLbRyY0EBetK0C0567tAca41OkCcM=; b=g0auXAazNhCq/oxwaGTIa+J90guqridgXKjehlyetsgDz8PvqeWubADabwlTw4LZIT 1HVrpXnoWtE/DtSO6o/6vDCADxb4/BDlDdQtSM63FScQxviCt3N+T5TE1kYE/xiBWfLg S7O6wvdsjGmSdZUz05lzkb11OniPTZ41x7a1d0goROhjs991nnxzTP2X+iSX8kWwriFs 7aPj8K/NTc/fOT8rG8kRD7fTl9DH/224DVUFtpPAN5utRgzbNljDM/+feOYbl6zwS4+K By4+aWWtkv1r1ayA9eG4DViB6vjjC7bmMx2PDtd0vRgS8DZzCjNeIIt47nqEixh5U7gR fvSQ== MIME-Version: 1.0 X-Received: by 10.50.131.229 with SMTP id op5mr224622igb.83.1445543006137; Thu, 22 Oct 2015 12:43:26 -0700 (PDT) Received: by 10.79.0.105 with HTTP; Thu, 22 Oct 2015 12:43:25 -0700 (PDT) In-Reply-To: References: <56224C70.8040906@FreeBSD.org> <28961.174542974$1445329913@news.gmane.org> <2055370.RNj6gJ7qL2@asbach.renzel.net> Date: Thu, 22 Oct 2015 21:43:25 +0200 Message-ID: Subject: Re: [patch] Testing the new i915 driver (rev. 3820047) From: "Ranjan1018 ." <214748mv@gmail.com> To: Henry Hu Cc: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= , "freebsd-x11@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 19:43:27 -0000 2015-10-21 23:56 GMT+02:00 Henry Hu : > > > > 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)