Skip to content

Commit

Permalink
[acpi] Lid state in XS should be 0/1 not closed/open.
Browse files Browse the repository at this point in the history
OXT-694

Signed-off-by: Ross Philipson <[email protected]>
  • Loading branch information
Ross Philipson committed Mar 13, 2017
1 parent e82331d commit cebe27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xcpmd/src/acpi-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit cebe27b

Please sign in to comment.