From: vincent Date: Sat, 22 Jan 2022 10:51:54 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a7e62844cf9d715c7946ff7ac7f0853735986fde;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a589574..9324f93 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,7 @@ - - - + diff --git a/servers/logcat.php b/servers/logcat.php index 0603df5..15bab07 100644 --- a/servers/logcat.php +++ b/servers/logcat.php @@ -11,10 +11,18 @@ while (true) { echo 'sleep ' . $device . "\n"; off($device); }, + 'Going to sleep due to power_button' => function () use ($device) { + echo 'sleep ' . $device . "\n"; + off($device); + }, 'Waking up from sleep' => function () use ($device) { echo 'wakeup ' . $device . "\n"; shieldRunActivity(null, true); }, + 'Waking up from Asleep' => function () use ($device) { + echo 'wakeup ' . $device . "\n"; + shieldRunActivity(null, true); + }, 'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) { echo 'volume-down ' . $device . "\n"; volume(config('VOLUME_STEP'), '-');