From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 31122] Cannot control backlight intensity on Powerbook Date: Tue, 09 Aug 2016 19:30:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0925918863==" 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 --===============0925918863== Content-Type: multipart/alternative; boundary="14707710180.BEF198F.13532"; charset="UTF-8" --14707710180.BEF198F.13532 Date: Tue, 9 Aug 2016 19:30:18 +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=3D31122 --- Comment #18 from Karol Herbst --- Comment on attachment 125642 --> https://bugs.freedesktop.org/attachment.cgi?id=3D125642 backlight control w/ gpio check Review of attachment 125642: ----------------------------------------------------------------- ::: nouveau_backlight.c.orig @@ +69,5 @@ > + else > + level =3D val + NV30_BL_MIN_LEVEL - 1; > + > + nvif_wr32(device, NV30_PMC_BACKLIGHT, > + (level << 16) + 0x80000535); /* workaround for disable= d backlight after waking from suspend */ also like imirkin said: use | instead of + ((level << 16) + 0000535) | 0x80000000 --=20 You are receiving this mail because: You are the assignee for the bug.= --14707710180.BEF198F.13532 Date: Tue, 9 Aug 2016 19:30:18 +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

Commen= t # 18 on bug 31122<= /a> from Karol Herbst
Comment on attac=
hment 125642 [details] [review]=

backlight control w/ gpio check

Review of attachment 125642 [details] [review]:
-----------------------------------------------------------------

::: nouveau_backlight.c.orig
@@ +69,5 @@
> +        else
> +                level =3D val + NV30_BL_MIN_LEVEL - 1;
> +
> +        nvif_wr32(device, NV30_PMC_BACKLIGHT,
> +                 (level << 16) + 0x80000535);  /* workaround fo=
r disabled backlight after waking from suspend */

also like imirkin said: use | instead of +

((level << 16) + 0000535) | 0x80000000


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