From 1efb8b2395f6e4ddde56339f26f6812a8448a203 Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Fri, 9 Jul 2021 13:13:01 +0900 Subject: [PATCH] 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 --- .../src/Commands/PreCommand.cc | 20 ------------------- packaging/aurum.spec | 4 ---- 2 files changed, 24 deletions(-) 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`") \ -- 2.34.1