bootstrap: Delete check display state and wake up 42/261042/1
authorWoochanlee <wc0917.lee@samsung.com>
Fri, 9 Jul 2021 04:13:01 +0000 (13:13 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Fri, 9 Jul 2021 04:14:37 +0000 (13:14 +0900)
It's not good for performance and user can do this at user side.

Change-Id: Ie964ea2eba3f7bc3acc6dd45296a65be20fb66f4

org.tizen.aurum-bootstrap/src/Commands/PreCommand.cc
packaging/aurum.spec

index 82d10d5..60142c6 100644 (file)
@@ -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();
 }
index f002269..399c75e 100644 (file)
@@ -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`") \