From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 05:42:23 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5E2E901; Wed, 28 Jan 2015 05:42:22 +0000 (UTC) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73487B77; Wed, 28 Jan 2015 05:42:22 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id fb4so9393294wid.2; Tue, 27 Jan 2015 21:42:20 -0800 (PST) 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=zPHNWJV7rCgIuy0KsM+yjYHugOD3CzxMCipSCiZWURQ=; b=xu/0Q/IYCtqIWnPXEIJ0Vv6umyNnx6DaHiJpB4FdNDPxcWYAfQmgkvwQkFZve3dpxW Bz1ign3cUBNoXCTgQXfKBQN+iFYEAUQHAqkg9SdVLkX87EiDyFi7Z1KIl2y/Rxf/WQuq UEczSyrNl9gAIkhVbbGBMNUXnPgb7WqnvIQV5Ek7rmJWSWAN2fiADd71yac8UcTbcCoB +74ei8+xPH9lnf4B4mnh4JmVrBr+CLW8WDlHJM9eNtlMV0EsO2uDi4bu+ai2p2vgj+eW OxdFr3Lkgu8YRi0JOieNMHjWWnilGwH5qhf049suP/d+94qPIa+EMBS9xJvt9A1d8NLx 6VKg== MIME-Version: 1.0 X-Received: by 10.194.158.5 with SMTP id wq5mr3332759wjb.85.1422423740864; Tue, 27 Jan 2015 21:42:20 -0800 (PST) Received: by 10.217.64.10 with HTTP; Tue, 27 Jan 2015 21:42:20 -0800 (PST) In-Reply-To: <000e01d039fb$d5959930$80c0cb90$@Wilcox-Tech.com> References: <000e01d039fb$d5959930$80c0cb90$@Wilcox-Tech.com> Date: Wed, 28 Jan 2015 06:42:20 +0100 Message-ID: Subject: Re: drm2 regression: backlight adjustment on ivybridge no longer works From: "Ranjan1018 ." <214748mv@gmail.com> To: Andrew Wilcox Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Adrian Chadd , freebsd-current , 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: Wed, 28 Jan 2015 05:42:23 -0000 2015-01-27 7:38 GMT+01:00 Andrew Wilcox : > 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 > > > (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=0x030000 card=0x00db106b chip=0x01268086 > rev=0x09 hdr=0x00 > vendor = 'Intel Corporation' > device = '2nd Generation Core Processor Family Integrated Graphics > Controller' > class = display > subclass = 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 > > > 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/ > GitHub: https://github.com/awilfox > > Hi, my Samsung laptop has an Intel IvyBridge: vgapci0@pci0:0:2:0: class=0x030000 card=0xc708144d chip=0x01668086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = '3rd Gen Core processor Graphics Controller' class = display subclass = VGA The regression was introduced in r277487. The backlight adjustment works in FreeBSD 11.0-CURRENT r277395, r277486 but not in r277487, r277534 and r277639. Regards, Maurizio