From owner-freebsd-current@FreeBSD.ORG Sun Feb 1 10:12:04 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 05863EB3 for ; Sun, 1 Feb 2015 10:12:04 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 877B3101 for ; Sun, 1 Feb 2015 10:12:03 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 794306A6064; Sun, 1 Feb 2015 11:12:01 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t11AC1i4011845; Sun, 1 Feb 2015 11:12:01 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t11AC18x010697; Sun, 1 Feb 2015 11:12:01 +0100 (CET) (envelope-from lars) Date: Sun, 1 Feb 2015 11:12:01 +0100 From: Lars Engels To: Andrew Wilcox , "'freebsd-current'" Subject: Re: drm2 regression: backlight adjustment on ivybridge no longer works Message-ID: <20150201101201.GP41565@e-new.0x20.net> Mail-Followup-To: Lars Engels , Andrew Wilcox , 'freebsd-current' References: <009501d03acb$4f380d70$eda82850$@Wilcox-Tech.com> <54CA7949.6060202@shurik.kiev.ua> <20150201091821.GN41565@e-new.0x20.net> <004001d03e02$62d7f040$2887d0c0$@Wilcox-Tech.com> <20150201094124.GO41565@e-new.0x20.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tjOMJDssiV0CZSJH" Content-Disposition: inline In-Reply-To: <20150201094124.GO41565@e-new.0x20.net> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) 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: Sun, 01 Feb 2015 10:12:04 -0000 --tjOMJDssiV0CZSJH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 01, 2015 at 10:41:25AM +0100, Lars Engels wrote: > On Sun, Feb 01, 2015 at 03:35:15AM -0600, Andrew Wilcox wrote: > > Lars Engels sent: 01 February 2015 03:18: > > > With acpi_video I get some interesting sysctl: > > > hw.acpi.video.lcd0.levels: 100 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14= 15 > > > 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 = 39 > > > 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 = 63 > > > 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 = 87 > > > 88 89 90 91 92 93 94 95 96 97 98 99 100 > > >=20 > > > I guess it should not be 100 100 0 ... 100? > >=20 > > Actually, the "standard" internal ACPI brightness level struct (BRTN in= the DSDT) is laid out as: > >=20 > > * "Full power" value (one byte, the value at which the brightness shoul= d be set on AC by default) > > * "Economy" value (one byte, the value at which the brightness should b= e set on battery by default) > > * Actual values (N bytes, up to Max but frequently not) > >=20 > > So, no, that value indeed sounds correct. On my laptop the value is: > > 80 47 0 7 13 20 27 33 40 47 53 60 67 73 80 87 93 100 >=20 > Thank you for the explanation. > FWIW, here is the full output from sysctl hw.acpi.video.lcd0: >=20 > hw.acpi.video.lcd0.active: 1 > hw.acpi.video.lcd0.brightness: 11 > hw.acpi.video.lcd0.fullpower: 100 > hw.acpi.video.lcd0.economy: 100 > hw.acpi.video.lcd0.levels: 100 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 > 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 > 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 > 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 > 88 89 90 91 92 93 94 95 96 97 98 99 100 > hw.acpi.video.crt0.active: 1 > hw.acpi.video.ext0.active: 1 > hw.acpi.video.ext1.active: 1 > hw.acpi.video.ext2.active: 1 > hw.acpi.video.ext3.active: 1 > hw.acpi.video.ext4.active: 1 > hw.acpi.video.ext5.active: 1 >=20 > >=20 > > What revision of -CURRENT are you running? What is the outcome of > > trying the patch posted Saturday morning (UTC) from Elizabeth Myers > > (message ID <54CC5311.9070604@interlinked.me>)? > >=20 >=20 > I'm currently running r277858 and haven't tried the patch, yet. But will > do now and report back. >=20 So now I have a new sysctl hw.dri.0.i915_backlight. But no matter what value I pass to it, the brightness doesn't change. It's a Ivy Brigde notebook where drm shows some errors in dmesg. Please see: http://pastie.org/9877917 --tjOMJDssiV0CZSJH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUzfvxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1th8MH/j/ll532EWkGPuJ+A4fMIs3z rD7kyFhdtFKnBeNBf1W43aFhWu8FHYpJGv4pjd57EtHfrUFeepO+temxIQ5RSHnn LkvG3UQr/2FBqTa0wf03+xYXexxoFARu7aBmJjzRAJaU4oJ+l2wc46K7L+8CNZYw Bpf19qSq7thjaUbby5sRfz8WlUbL9nhEdAsYce0zKU/ZmhJoB6qeXf0Ny1g5bNqP y61GzSMIwBqYzrvLRzQYEIUmwuLskg6fsyCui+69zuX4t7FHSH72/33Sh26RSbeM TcLfnNtnoxTNbBMgitjVeKF3mlPLWAioUjtZ/fw7J+PyNZXXrmIhrpHU1zmZBPE= =cKMF -----END PGP SIGNATURE----- --tjOMJDssiV0CZSJH--