Skip to content

Commit

Permalink
Fixed DPMS when x11 DPMS connection is not available. Version 2.3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
ua0lnj committed Jul 27, 2024
1 parent 63fc783 commit 45a4f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion softhddevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extern "C"
/// vdr-plugin version number.
/// Makefile extracts the version number for generating the file name
/// for the distribution archive.
static const char *const VERSION = "2.3.6"
static const char *const VERSION = "2.3.7"
#ifdef GIT_REV
"-GIT" GIT_REV
#endif
Expand Down
4 changes: 2 additions & 2 deletions video.c
Original file line number Diff line number Diff line change
Expand Up @@ -22044,8 +22044,8 @@ static void X11DPMSDisable(xcb_connection_t * connection)
}
free(reply);
}
DPMSDisabled = 1;
}
DPMSDisabled = 1;
}

///
Expand All @@ -22058,8 +22058,8 @@ static void X11DPMSReenable(xcb_connection_t * connection)
if (DPMSDisabled && X11HaveDPMS(connection)) {
xcb_dpms_enable(connection); // monitor powersave on
xcb_dpms_force_level(connection, XCB_DPMS_DPMS_MODE_ON);
DPMSDisabled = 0;
}
DPMSDisabled = 0;
}

static int X11DPMSGetStatus(xcb_connection_t * connection)
Expand Down

0 comments on commit 45a4f30

Please sign in to comment.