From owner-freebsd-current@FreeBSD.ORG Wed Feb 11 17:43:55 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 32527ED5; Wed, 11 Feb 2015 17:43:55 +0000 (UTC) Received: from cpt-redirect03.mweb.co.za (cpt-redirect03.mweb.co.za [196.28.156.203]) (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 C46CBE3; Wed, 11 Feb 2015 17:43:54 +0000 (UTC) Received: from 41-133-130-70.dsl.mweb.co.za ([41.133.130.70] helo=brane.freislich.nom.za) by cpt-redirect03.mweb.co.za with esmtp (Exim 4.84) id 1YLbKA-000DDD-M3; Wed, 11 Feb 2015 19:43:49 +0200 Received: from [73.20.223.245] (helo=clue.co.za) by brane.freislich.nom.za with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YLbK2-000LLi-RX; Wed, 11 Feb 2015 19:43:39 +0200 Received: from localhost ([127.0.0.1] helo=zen) by clue.co.za with esmtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1YLbIq-0000JH-3i; Wed, 11 Feb 2015 12:42:20 -0500 To: Adrian Chadd From: Ian FREISLICH Subject: Re: r277959 breaks X display on IvyBridge mobile GT2 IG In-Reply-To: References: X-Attribution: BOFH MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1193.1423676540.1@zen> Content-Transfer-Encoding: quoted-printable Date: Wed, 11 Feb 2015 12:42:20 -0500 Message-Id: X-Missing-rDNS: 73.20.223.245 Cc: Ian FREISLICH , freebsd-current 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, 11 Feb 2015 17:43:55 -0000 Adrian Chadd wrote: > Hi, > = > There's a "invert backlight" option in i915, try setting it to 1? This is pretty much all I could find (unless I was looking in the wrong place). It makes no difference. The backlight appears to be disabled. Index: intel_display.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- intel_display.c (revision 278584) +++ intel_display.c (working copy) @@ -6938,6 +6938,9 @@ = /* Acer Aspire 5734Z must invert backlight brightness */ { 0x2a42, 0x1025, 0x0459, quirk_invert_brightness }, + + /* Asus Zenbook UX31A must invert backlight brightness */ + { 0x0166, 0x1043, 0x1517, quirk_invert_brightness }, }; = static void intel_init_quirks(struct drm_device *dev) Resulting log message: Feb 11 11:55:38 zen kernel: info: [drm] applying inverted panel brightness= quirk The flag removed by r278584 is BLM_PCH_OVERRIDE_ENABLE according to the Linux driver. I think we're not correctly setting or selecting the PWM channel for backlight control. > = > -a > = > = > On 11 February 2015 at 07:41, Ian FREISLICH wrote= : > > Hi > > > > With this commit my display blanks and never lights up when X starts. > > > > [zen] /usr/src # svn diff -r 277958:277959 > > Index: sys/dev/drm2/i915/intel_display.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- sys/dev/drm2/i915/intel_display.c (revision 277958) > > +++ sys/dev/drm2/i915/intel_display.c (revision 277959) > > @@ -6995,7 +6995,7 @@ > > */ > > I915_WRITE(BLC_PWM_CPU_CTL2, PWM_ENABLE); > > I915_WRITE(BLC_PWM_CPU_CTL, 0); > > - I915_WRITE(BLC_PWM_PCH_CTL1, PWM_ENABLE | (1<<30)); > > + I915_WRITE(BLC_PWM_PCH_CTL1, PWM_ENABLE); > > } > > > > void intel_modeset_init_hw(struct drm_device *dev) > > > > > > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x15171043 chip=3D0x01= 668086 rev=3D 0x09 > > hdr=3D0x00 > > vendor =3D 'Intel Corporation' > > device =3D '3rd Gen Core processor Graphics Controller' > > class =3D display > > subclass =3D VGA > > cap 05[90] =3D MSI supports 1 message enabled with 1 message > > cap 01[d0] =3D powerspec 2 supports D0 D3 current D0 > > cap 13[a4] =3D PCI Advanced Features: FLR TP > > > > Ian > > > > -- > > Ian Freislich > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.= org" -- = Meditating Guru Ian Freislich