summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index ab8ba21..33ace78 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -175,6 +175,8 @@ acpi_button_notify_pressed_for_sleep(void *arg)
if (acpi_sc == NULL)
return_VOID;
+ acpi_UserNotify("Button", sc->button_handle, sc->button_type);
+
switch (sc->button_type) {
case ACPI_POWER_BUTTON:
ACPI_VPRINT(sc->button_dev, acpi_sc, "power button pressed\n");
@@ -202,6 +204,8 @@ acpi_button_notify_pressed_for_wakeup(void *arg)
if (acpi_sc == NULL)
return_VOID;
+ acpi_UserNotify("Button", sc->button_handle, sc->button_type);
+
switch (sc->button_type) {
case ACPI_POWER_BUTTON:
ACPI_VPRINT(sc->button_dev, acpi_sc, "wakeup by power button\n");
OpenPOWER on IntegriCloud