From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 98677] [NVAC] iMac9, 1 effective backlight brightness range changes after S3 Date: Fri, 11 Nov 2016 22:40:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1021796160==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1021796160== Content-Type: multipart/alternative; boundary="14789040010.417e.23570"; charset="UTF-8" --14789040010.417e.23570 Date: Fri, 11 Nov 2016 22:40:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D98677 --- Comment #9 from Jeffery Miller --- I tried a few more brightness tests with the nvidia binary blob. There's a similar mmiotrace already attached. I've observed that the nvidia driver sets the values of=20 I observed that the nvidia driver sets both 0x0061c080 and 0x0061c084 on ea= ch brightness change. It always sets 0x0061c080 to 0x17 and 61c084 with the following percent values: % setting | 0x0061c084 poke --- 21 0x800000d8 22 0x800000e2 30 0x80000134 50 0x80000201 70 0x800002ce 78 0x80000320 100 0x80000401 I noticed that if I change value to 21% (d8) or below the screen is dark/bl= ack. It then stays dark at levels such as 30%, 50%, and such that worked previou= sly. If I set it to 78% or 100% the screen will appear again. Once it reappears = the 50%, 30% values work as they did previously. I patched the nouveau backlight code to always set the PWM_DIV to 0x17. The nouveau driver then behaved the same for the various percent values mention= ed above. It also had the off at low requiring a high % to have it show again. I reverted to my original patch which would always set the DIV to 0x1 on ea= ch change. This makes it consistent with the fresh boot value. This has the si= de effect that after a post (and a resume from suspend) the value is always the same. The visible range is wider for the 0x1 case. The screen doesn't turn fully = dark until around 14%. Additionally it would return to the previous value without having to jump all the way up to a high value. It could go from the 14% off case back to 50% and the screen had the same brightness. I am observing the brightness with my eye. The percent to DUTY value being set to 0x61c084 is similar in each driver. Nouveau sets 0x401 for 100%, 0x200 for 50%. --=20 You are receiving this mail because: You are the assignee for the bug.= --14789040010.417e.23570 Date: Fri, 11 Nov 2016 22:40:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 9 on bug 98677<= /a> from Jeffery Miller
I tried a few more brightness tests with the nvidia binary blo=
b. There's a
similar mmiotrace already attached.

I've observed that the nvidia driver sets the values of=20
I observed that the nvidia driver sets both 0x0061c080 and 0x0061c084 on ea=
ch
brightness change.
It always sets 0x0061c080 to 0x17 and 61c084 with the following
percent values:

% setting    |  0x0061c084 poke
---
21              0x800000d8
22              0x800000e2
30              0x80000134
50              0x80000201
70              0x800002ce
78              0x80000320
100             0x80000401

I noticed that if I change value to 21% (d8) or below the screen is dark/bl=
ack.
It then stays dark at levels such as 30%, 50%, and such that worked previou=
sly.
If I set it to 78% or 100% the screen will appear again. Once it reappears =
the
50%, 30% values work as they did previously.

I patched the nouveau backlight code to always set the PWM_DIV to 0x17. The
nouveau driver then behaved the same for the various percent values mention=
ed
above. It also had the off at low requiring a high % to have it show again.

I reverted to my original patch which would always set the DIV to 0x1 on ea=
ch
change. This makes it consistent with the fresh boot value. This has the si=
de
effect that after a post (and a resume from suspend) the value is always the
same.
The visible range is wider for the 0x1 case. The screen doesn't turn fully =
dark
until around 14%. Additionally it would return to the previous value without
having to jump all the way up to a high value. It could go from the 14% off
case back to 50% and the screen had the same brightness. I am observing the
brightness with my eye.
The percent to DUTY value being set to 0x61c084 is similar in each driver.
Nouveau sets 0x401 for 100%, 0x200 for 50%.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14789040010.417e.23570-- --===============1021796160== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9ub3V2ZWF1Cg== --===============1021796160==--