0012-gm45-fix-uneven-backlight-native-gfx-init.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From cb40445b1debc5900835f94d0aa3287cc213a0d5 Mon Sep 17 00:00:00 2001
  2. From: Francis Rowe <info@gluglug.org.uk>
  3. Date: Mon, 29 Dec 2014 21:02:48 +0000
  4. Subject: [PATCH 12/17] gm45: fix uneven backlight (native gfx init)
  5. When setting brightness levels low, backlight becomes uneven.
  6. This patch fixes that.
  7. Tested on X200.
  8. Change-Id: Ie71bf696ba4431ab25076f92dd5fdc9fdc167b09
  9. Signed-off-by: Francis Rowe <info@gluglug.org.uk>
  10. ---
  11. src/northbridge/intel/gm45/acpi/igd.asl | 6 +++---
  12. 1 file changed, 3 insertions(+), 3 deletions(-)
  13. diff --git a/src/northbridge/intel/gm45/acpi/igd.asl b/src/northbridge/intel/gm45/acpi/igd.asl
  14. index 696cc2b..39fefb2 100644
  15. --- a/src/northbridge/intel/gm45/acpi/igd.asl
  16. +++ b/src/northbridge/intel/gm45/acpi/igd.asl
  17. @@ -62,15 +62,15 @@ Device (GFX0)
  18. Method (XBCM, 1, NotSerialized)
  19. {
  20. - Store (ShiftLeft (Arg0, 4), BCLV)
  21. + Store (ShiftLeft (Arg0, 8), BCLV)
  22. Store (0x80000000, CR1)
  23. - Store (0x0610, BCLM)
  24. + Store (ShiftLeft (0x61, 8), BCLM)
  25. }
  26. Method (XBQC, 0, NotSerialized)
  27. {
  28. Store (BCLV, Local0)
  29. - ShiftRight (Local0, 4, Local0)
  30. + ShiftRight (Local0, 8, Local0)
  31. Return (Local0)
  32. }
  33. #include <drivers/intel/gma/igd.asl>
  34. --
  35. 1.9.1