on xenial help sign in
Force a delay of 20s to wait for unity8
commit2197aba7aa2b339fc49cb991758c16bfeb5dec97 authorMichael Terry <michael.terry@canonical.com> dateThu 28 Aug 2014, 15:58 (12 years ago) parent48d93ba
1 file changed+5−1
tools/unlock-device+5−1
tools/unlock-device+5−1
@@ -4,7 +4,7 @@
44# Our goal here is to get an Ubuntu Touch device into a testable unlocked state.
55# This will include a reboot.
66
7−WAIT_COMMAND="adb reboot; sleep 5; adb wait-for-device; sleep 20"
7+WAIT_COMMAND="adb reboot; sleep 5; adb wait-for-device"
88
99while getopts s:w: opt; do
1010 case $opt in
@@ -19,6 +19,10 @@ done
1919
2020eval "$WAIT_COMMAND"
2121
22+# Force a sleep of twenty no matter what, since we may need to wait for unity8
23+# to finish coming up (it's hard to tell when the greeter is actually rendered)
24+sleep 20
25+
2226GDBUS_CMD="gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter && echo Greeter unlocked"
2327
2428UNLOCK_OUTPUT=$(adb shell "if [ \"\$(id -u)\" = 0 ]; then sudo -u phablet -i $GDBUS_CMD; else $GDBUS_CMD; fi" 2>&1)