Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commitae35d65

Browse files
jwrdegoederafaeljw
authored andcommitted
ACPI: button: Add a debug message when we're sending a LID event
I've been debugging some spurious suspend issues on various devices,at least on some devices these spurious suspends are caused by suriousLID closed events being send to userspace.Running e.g. evemu-record after noticing a spurious suspend is too lateto detect that a LID closed event it the (probable) cause of this.This commit adds an acpi_handle_debug call to help debugging this.Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent50c4c4e commitae35d65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎drivers/acpi/button.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ static int acpi_lid_notify_state(struct acpi_device *device, int state)
210210
}
211211
/* Send the platform triggered reliable event */
212212
if (do_update) {
213+
acpi_handle_debug(device->handle,"ACPI LID %s\n",
214+
state ?"open" :"closed");
213215
input_report_switch(button->input,SW_LID, !state);
214216
input_sync(button->input);
215217
button->last_state= !!state;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp