diff options
author | 2013-10-11 21:27:46 +0800 | |
---|---|---|
committer | 2013-10-16 01:16:05 +0200 | |
commit | 46445b6b896fd6b9fd8261f1747801dc520d2968 (patch) | |
tree | 83d99636cbdb09c671df636aa293591de4d8a23e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI / video: Do not register backlight if win8 and native interface exists (diff) | |
download | linux-dev-46445b6b896fd6b9fd8261f1747801dc520d2968.tar.xz linux-dev-46445b6b896fd6b9fd8261f1747801dc520d2968.zip |
thinkpad-acpi: fix handle locate for video and query of _BCL
The tpacpi_acpi_handle_locate function makes use of acpi_get_devices to
locate handle for ACPI video by HID, the problem is, ACPI video node
doesn't really have HID defined(i.e. no _HID control method is defined
for video device), so.. that function would fail. This can be solved by
enhancing the callback function for acpi_get_devices, where we can use
acpi_device_hid function to check if the ACPI node corresponds to a
video controller.
In addition to that, the _BCL control method only exists under a video
output device node, not a video controller device node. So to evaluate
_BCL, we need the handle of a video output device node, which is child
of the located video controller node from tpacpi_acpi_handle_locate.
The two fix are necessary for some Thinkpad models to emit notification
on backlight hotkey press as a result of evaluation of _BCL.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions