Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-02 Thread Lars Engels
On Sun, Feb 01, 2015 at 11:23:47AM +0100, Lars Engels wrote: > On 1. Februar 2015 11:20:26 MEZ, Alexandr Krivulya > wrote: > >01.02.2015 12:12, Lars Engels пишет: > >> 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:

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Lars Engels
On 1. Februar 2015 11:20:26 MEZ, Alexandr Krivulya wrote: >01.02.2015 12:12, Lars Engels пишет: >> 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

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Alexandr Krivulya
01.02.2015 12:12, Lars Engels пишет: > 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

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Lars Engels
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 1

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Lars Engels
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

RE: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Andrew Wilcox
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

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-02-01 Thread Lars Engels
On Sat, Jan 31, 2015 at 07:11:23AM +, Miguel Clara wrote: > On the laptop I'm running current, if relevant > > Loading acpi_video doesn't do much I don't see any sysctl related to > "lcd0" or "birightness", this is one of those computers with "hybrid" > graphics, intel + ATI card, so not

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-31 Thread Elizabeth Myers
On 01/31/15 02:00, Miguel Clara wrote: > I had to patch manually, for some reason the diff was rejected, but I t > compiled and I've instead on 10/stable... problem is this is the laptop > where I am typing this :D > > Its also upgrading some ports, so not a good time to reboot, but I'll > post re

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-31 Thread Miguel Clara
I had to patch manually, for some reason the diff was rejected, but I t compiled and I've instead on 10/stable... problem is this is the laptop where I am typing this :D Its also upgrading some ports, so not a good time to reboot, but I'll post results in the other thread, as for the HP, works per

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-30 Thread Elizabeth Myers
On 01/31/15 01:28, Miguel Clara wrote: > I saw the discussion about how to approach the issue, but totally missed > the patch :D > > Thanks, I'll try that... I'm assuming it will make no difference on > 10/stable yet? only current? Excellent question! I have absolutely no idea. I don't even think

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-30 Thread Miguel Clara
I saw the discussion about how to approach the issue, but totally missed the patch :D Thanks, I'll try that... I'm assuming it will make no difference on 10/stable yet? only current? On Sat, Jan 31, 2015 at 7:22 AM, Elizabeth Myers wrote: > On 01/31/15 01:11, Miguel Clara wrote: > > On the lap

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-30 Thread Elizabeth Myers
On 01/31/15 01:11, Miguel Clara wrote: > On the laptop I'm running current, if relevant > > Loading acpi_video doesn't do much I don't see any sysctl related to > "lcd0" or "birightness", this is one of those computers with "hybrid" > graphics, intel + ATI card, so not sure if that's somewhat

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-30 Thread Miguel Clara
On the laptop I'm running current, if relevant Loading acpi_video doesn't do much I don't see any sysctl related to "lcd0" or "birightness", this is one of those computers with "hybrid" graphics, intel + ATI card, so not sure if that's somewhat related. Anyway, I've just tested the drm patc

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-29 Thread Alexandr Krivulya
29.01.2015 12:46, Ranjan1018 . пишет: > 2015-01-28 10:11 GMT+01:00 Adrian Chadd : > >> ugh, so because i can't sleep, I read the Linux i915 history for >> backlight changes. >> >> Turns out if I disable bit 30 in ivb_pch_pwm_override() to register >> BLC_PWM_PCH_CTL1, the acpi video setting works.

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-29 Thread Ranjan1018 .
2015-01-28 10:11 GMT+01:00 Adrian Chadd : > ugh, so because i can't sleep, I read the Linux i915 history for > backlight changes. > > Turns out if I disable bit 30 in ivb_pch_pwm_override() to register > BLC_PWM_PCH_CTL1, the acpi video setting works. The keyboard settings > still don't, but I'll

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-28 Thread Adrian Chadd
and the commit from linux: commit 7aa1e7f06d6ea1bce3b27630d50769d13da28b1a Author: Daniel Vetter Date: Wed Jun 27 16:43:36 2012 +0200 Revert "drm/i915: allow PCH PWM override on IVB" This reverts commit f82cfb6bcda164ef3a66b8c3fc549b1f9bdd09ad. This breaks the backlight controls

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-28 Thread Adrian Chadd
ugh, so because i can't sleep, I read the Linux i915 history for backlight changes. Turns out if I disable bit 30 in ivb_pch_pwm_override() to register BLC_PWM_PCH_CTL1, the acpi video setting works. The keyboard settings still don't, but I'll worry about that later. Bit 30 in the linux drm code

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-28 Thread Adrian Chadd
Hi! Good catch! But nope, didn't fix it. -adrian On 27 January 2015 at 23:23, Andrew Wilcox wrote: > Ranjan1018 . sent: 27 January 2015 23:42: >> The regression was introduced in r277487. > > Looking closer at this revision, I believe I may see the issue. Most of the > new tunables introdu

RE: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-27 Thread Andrew Wilcox
Ranjan1018 . sent: 27 January 2015 23:42: > The regression was introduced in r277487. Looking closer at this revision, I believe I may see the issue. Most of the new tunables introduced in dev/drm2/i915/i915_drv.c are uninitialised and thus probably contain junk. It likely works for me because

RE: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-27 Thread Andrew Wilcox
Ranjan1018 . sent: 27 January 2015 23:42: > my Samsung laptop has an Intel IvyBridge: [snip] > The regression was introduced in r277487. > The backlight adjustment works in FreeBSD 11.0-CURRENT r277395, r277486 > but not in r277487, r277534 and r277639. Hrm. That is interesting. A few questions

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-27 Thread Ranjan1018 .
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

RE: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-26 Thread 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 MacBoo

Re: drm2 regression: backlight adjustment on ivybridge no longer works

2015-01-26 Thread Ranjan1018 .
2015-01-24 23:25 GMT+01:00 Adrian Chadd : > Hi, > > I've just found a regression. > > The backlight adjustment doesn't work on my ivybridge mobile laptop > (Lenovo X230) after the dri update. > > I've added debugging. It's making it all the way to the pch backlight > panel update routine in intel_