From 1c8d4fb0ead62ee88d890b3e0aa816513255439b Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 12 Jul 2013 15:05:29 +0000 Subject: Add ability to run scripts after screen timeout/wake --- gui/blanktimer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/blanktimer.cpp b/gui/blanktimer.cpp index 0b1f0083c..a513ff057 100644 --- a/gui/blanktimer.cpp +++ b/gui/blanktimer.cpp @@ -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(); -- cgit v1.2.3