Add ability to run scripts after screen timeout/wake

This commit is contained in:
Dees_Troy
2013-07-12 15:05:29 +00:00
committed by Gerrit Code Review
parent b7ecc09d93
commit 1c8d4fb0ea
+2
View File
@@ -98,6 +98,7 @@ int blanktimer::setClockTimer(void) {
setConBlank(2);
setBrightness(0);
screenoff = true;
TWFunc::check_and_run_script("/sbin/postscreenblank.sh", "blank");
PageManager::ChangeOverlay("lock");
}
#ifndef TW_NO_SCREEN_BLANK
@@ -149,6 +150,7 @@ void blanktimer::resetTimerAndUnblank(void) {
break;
}
#endif
TWFunc::check_and_run_script("/sbin/postscreenunblank.sh", "unblank");
// No break here, we want to keep going
case 2:
gui_forceRender();