[patch] Testing the new i915 driver (rev. 3820047)

Ranjan1018 . 214748mv at gmail.com
Wed Oct 21 19:09:53 UTC 2015


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.

Thanks,
Maurizio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i915_backlight.patch
Type: text/x-patch
Size: 2603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20151021/93ce667b/attachment.bin>


More information about the freebsd-x11 mailing list