From cebe27b142d03f60ccb4f25e0fa4c6c42f50c0ee Mon Sep 17 00:00:00 2001 From: Ross Philipson Date: Mon, 13 Mar 2017 16:15:11 -0400 Subject: [PATCH] [acpi] Lid state in XS should be 0/1 not closed/open. OXT-694 Signed-off-by: Ross Philipson --- xcpmd/src/acpi-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcpmd/src/acpi-events.c b/xcpmd/src/acpi-events.c index 31576b8f..deca4b56 100644 --- a/xcpmd/src/acpi-events.c +++ b/xcpmd/src/acpi-events.c @@ -185,7 +185,7 @@ static void handle_lid_event(int status) { xcpmd_log(LOG_INFO, "Lid change event: %s\n", lid_status_string); - xenstore_write(lid_status == LID_CLOSED ? "closed" : "open", XS_LID_STATE_PATH); + xenstore_write_int(lid_status == LID_CLOSED ? 0 : 1, XS_LID_STATE_PATH); xenstore_write("1", XS_LID_EVENT_PATH); //notify_com_citrix_xenclient_xcpmd_lid_changed(xcdbus_conn, XCPMD_SERVICE, XCPMD_PATH);