Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230908
b: refs/heads/master
c: 1f83511
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Jan 7, 2011
1 parent 6449901 commit 95e6496
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fa69baf29de8c77a6b32c054df2abb8f11f8aa4
refs/heads/master: 1f83511bd8f44b8a9e2d82263b2c95f26a625fcc
5 changes: 5 additions & 0 deletions trunk/drivers/acpi/button.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ static int acpi_lid_send_state(struct acpi_device *device)
input_report_switch(button->input, SW_LID, !state);
input_sync(button->input);

if (state)
pm_wakeup_event(&device->dev, 0);

ret = blocking_notifier_call_chain(&acpi_lid_notifier, state, device);
if (ret == NOTIFY_DONE)
ret = blocking_notifier_call_chain(&acpi_lid_notifier, state,
Expand Down Expand Up @@ -314,6 +317,8 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)
input_sync(input);
input_report_key(input, keycode, 0);
input_sync(input);

pm_wakeup_event(&device->dev, 0);
}

acpi_bus_generate_proc_event(device, event, ++button->pushed);
Expand Down

0 comments on commit 95e6496

Please sign in to comment.