From: Woochanlee Date: Fri, 9 Jul 2021 04:13:01 +0000 (+0900) Subject: bootstrap: Delete check display state and wake up X-Git-Tag: submit/tizen/20210709.081442~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1efb8b2395f6e4ddde56339f26f6812a8448a203;p=platform%2Fcore%2Fuifw%2Faurum.git bootstrap: Delete check display state and wake up It's not good for performance and user can do this at user side. Change-Id: Ie964ea2eba3f7bc3acc6dd45296a65be20fb66f4 --- diff --git a/org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc b/org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc index 82d10d5..60142c6 100644 --- a/org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc +++ b/org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc @@ -15,26 +15,6 @@ PreCommand::PreCommand(Command *cmd) : mCommand{cmd} {} ::grpc::Status PreCommand::execute() { -#ifndef TIZEN_TV - display_state_e state; - if (device_display_get_state(&state) != DEVICE_ERROR_NONE) { - LOGE("getting display state has failed"); - return grpc::Status::CANCELLED; - } - - bool isDisplayOn = DISPLAY_STATE_SCREEN_OFF != state; - - if (!isDisplayOn) { - LOGI("Display off state try to wake up"); - if (device_power_wakeup(false) != DEVICE_ERROR_NONE) { - LOGE("turning on display has failed"); - return grpc::Status::CANCELLED; - } - - std::this_thread::sleep_for(std::chrono::milliseconds{INTV_TURNON_MARGIN}); - } -#endif /* TIZEN_TV */ - mCommand->executePre(); return mCommand->execute(); } diff --git a/packaging/aurum.spec b/packaging/aurum.spec index f002269..399c75e 100644 --- a/packaging/aurum.spec +++ b/packaging/aurum.spec @@ -132,10 +132,6 @@ meson \ %build -%if "%{tizen_profile_name}" == "tv" - CFLAGS+=" -DTIZEN_TV";export CFLAGS -%endif - ninja \ -C gbsbuild \ -j %(echo "`/usr/bin/getconf _NPROCESSORS_ONLN`") \