ACPI video support fixes for 3.11

- Change from Aaron Lu makes ACPICA export a variable which can be
  used by driver code to determine whether or not the BIOS believes
  that we are compatible with Windows 8.

- Change from Matthew Garrett makes the ACPI video driver initialize
  the ACPI backlight even if it is not going to be used afterward
  (that is needed for backlight control to work on Thinkpads).

- Fix from Rafael J Wysocki implements Windows 8 backlight support
  workaround making i915 take over bakclight control if the firmware
  thinks it's dealing with Windows 8.  Based on the work of multiple
  developers including Matthew Garrett, Chun-Yi Lee, Seth Forshee,
  and Aaron Lu.

- Fix from Aaron Lu makes the kernel follow Windows 8 by informing
  the firmware through the _DOS method that it should not carry out
  automatic brightness changes, so that brightness can be controlled
  by GUI.

/
ACPI / video: no automatic brightness changes by win8-compatible firmware

Starting from win8, MS backlight control driver will set bit 2 of the
parameter of control method _DOS, to inform firmware it should not
perform any automatic brightness changes. This mostly affects hotkey
notification deliver - if we do not set this bit, on hotkey press,
firmware may choose to adjust brightness level instead of sending out
notification and doing nothing.

So this patch sets bit 2 when calling _DOS so that GUIs can show the
notification window on hotkey press.  This behavior change is only
necessary for win8 systems.

The MS document on win8 backlight control is here:
http://msdn.microsoft.com/en-US/library/windows/hardware/jj159305

References: https://bugzilla.kernel.org/show_bug.cgi?id=52951
References: https://bugzilla.kernel.org/show_bug.cgi?id=56711
Reported-by: Micael Dias <kam1kaz3@gmail.com>
Reported-by: Dan Garton <dan.garton@gmail.com>
Reported-by: Bob Ziuchkovski <bob.ziuchkovski@gmail.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 file changed