ACPI/Button: Add ACPI Button event via netlink routine
Subsystems (2)
PATCH 1/1 ACPI/Button: Add ACPI Button event via netlink routine
Commit 1696d9d(ACPI: Remove the old /proc/acpi/event interface) removes ACPI Button event which originally was sent to userspace via /proc/acpi/event. This causes ACPI shutdown regression on gentoo in the VirtualBox. Now ACPI events are sent to userspace via netlink. This patch is to add ACPI Button event back via netlink routine.
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=71721
Reported-and-tested-by Richard Musil <[email protected]>
Signed-off-by Lan Tianyu <[email protected]>
Cc <[email protected]> # 3.11.x
--- drivers/acpi/button.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/acpi/button.c +4 -0
@@ -302,6 +302,10 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)input_sync (input);pm_wakeup_event (&device->dev,0 ); +acpi_bus_generate_netlink_event ( + device->pnp.device_class, +dev_name (&device->dev), + event, ++button->pushed); }break ;default :
Signature · 1 line
1.8.3.1