ACPI: video: call ACPI notifier chain for ACPI video notifications
PATCH 4/4 ACPI: video: call ACPI notifier chain for ACPI video notifications
From: Zhang Rui <[email protected]>
Call notifier chain for display/brightness switch events. The kernel mode graphics driver is interested in this.
Sign-off-by Zhang Rui <[email protected]>
--- drivers/acpi/video.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/acpi/video.c +2 -0
@@ -1765,6 +1765,7 @@ static void acpi_video_bus_notify(acpi_hbreak ; } +acpi_notifier_call_chain (device, event,0 );input_report_key (input, keycode,1 );input_sync (input);input_report_key (input, keycode,0 );
@@ -1826,6 +1827,7 @@ static void acpi_video_device_notify(acpbreak ; } +acpi_notifier_call_chain (device, event,0 );input_report_key (input, keycode,1 );input_sync (input);input_report_key (input, keycode,0 );
Applied.
thanks,
-Len
Quoted 32 lines · Zhang Rui
From: Zhang Rui <[email protected]>
Call notifier chain for display/brightness switch events. The kernel mode graphics driver is interested in this.
Sign-off-by Zhang Rui <[email protected]>--- drivers/acpi/video.c | 2 ++ 1 file changed, 2 insertions(+)Index:
linux-2.6/drivers/acpi/video.c
===================================================================drivers/acpi/video.c +2
-0@@ -1765,6 +1765,7 @@ static void acpi_video_bus_notify(acpi_hbreak ; } +acpi_notifier_call_chain (device, event,0 );input_report_key (input, keycode,1 );input_sync (input);input_report_key (input, keycode,0 );@@ -1826,6 +1827,7 @@ static void acpi_video_device_notify(acpbreak ; } +acpi_notifier_call_chain (device, event,0 );input_report_key (input, keycode,1 );input_sync (input);input_report_key (input, keycode,0 );