From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 06:38:16 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D642DABE for ; Tue, 27 Jan 2015 06:38:16 +0000 (UTC) Received: from mail.wilcox-tech.com (mail.foxkit.us [192.99.209.192]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.wilcox-tech.com", Issuer "mail.wilcox-tech.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DDAD790 for ; Tue, 27 Jan 2015 06:38:16 +0000 (UTC) Received: (qmail 12983 invoked from network); 27 Jan 2015 06:39:14 -0000 Received: from c-71-57-141-247.hsd1.fl.comcast.net (HELO Todd) (AWilcox@Wilcox-Tech.com@71.57.141.247) by mail.foxkit.us with ESMTPA; 27 Jan 2015 06:39:14 -0000 From: "Andrew Wilcox" To: "'Ranjan1018 .'" <214748mv@gmail.com>, "'Adrian Chadd'" , "'freebsd-current'" References: In-Reply-To: Subject: RE: drm2 regression: backlight adjustment on ivybridge no longer works Date: Tue, 27 Jan 2015 00:38:16 -0600 Message-ID: <000e01d039fb$d5959930$80c0cb90$@Wilcox-Tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIkD3QRswOKHk1/aLD21PpFfsdgwgGR9mCRnB9I4GA= Content-Language: en-gb Cc: 'Konstantin Belousov' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 06:38:16 -0000 Ranjan1018 . sent: 26 January 2015 06:19: > 2015-01-24 23:25 GMT+01:00 Adrian Chadd : > > The backlight adjustment doesn't work on my ivybridge mobile laptop=20 > > (Lenovo X230) after the dri update. > > > I have the same issue on my Samsung Ativ 2 laptop. I have a Sandy Bridge laptop (Apple MacBook Pro 8,2) - HD 3000: vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x00db106b = chip=3D0x01268086 rev=3D0x09 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '2nd Generation Core Processor Family Integrated = Graphics Controller' class =3D display subclass =3D VGA It is running: FreeBSD pwyll.foxkit.us 11.0-CURRENT #1 r277781M: Mon = Jan 26 18:41:15 CST 2015 = root@pwyll.foxkit.us:/usr/obj/usr/src/sys/GENERIC amd64 I have no issues using acpi_video's sysctls = (hw.acpi.video.lcd0.brightness) to adjust backlight, though it does not = have good granularity. The stepping is about 7, so it goes as = 13%..20%..27%..35%..etc. > > The "intel_backlight" program from intel-gpu-tools" also no longer=20 > > changes the backlight value. This program works fine for me on both an older kernel (r277523) and = this kernel (r277781), after applying some patches to allow the library = to build on FreeBSD. It also has better granularity (the stepping is = 2-3). If there is anything I can do/run to aide in debugging why it works for = me but not others, let me know. Best, Andrew -- Andrew Wilcox, C/C++/Python developer, kernel hacker Blog: http://blog.foxkit.us/ WWW: http://foxkit.us/=20 GitHub: https://github.com/awilfox