display: add config file for TV profile 29/55329/1 accepted/tizen/mobile/20151224.000149 accepted/tizen/tv/20151224.000208 accepted/tizen/wearable/20151224.000225 submit/tizen/20151223.084010 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authorTaeyoung Kim <ty317.kim@samsung.com>
Wed, 23 Dec 2015 07:14:14 +0000 (16:14 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Wed, 23 Dec 2015 07:14:14 +0000 (16:14 +0900)
- Display of TV profile should be turned on. Display is turned off
  when request from outside is delivered. Thus config file
  shows that the display should be on state.

Change-Id: I970de5ee897c7304515b71a9956a450c45fed8a5
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
CMakeLists.txt
packaging/deviced.spec
src/display/core.c
src/display/display-tv.conf [new file with mode: 0644]

index af3e4b4..7138627 100755 (executable)
@@ -218,6 +218,12 @@ IF(BLOCK_MODULE STREQUAL on)
        INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mmc-smack-label DESTINATION bin)
 ENDIF()
 
+IF(DISPLAY_MODULE STREQUAL on)
+       IF(PROFILE STREQUAL tv)
+               INSTALL_CONF(src/display display)
+       ENDIF(PROFILE STREQUAL tv)
+ENDIF()
+
 IF(STORAGE_MODULE STREQUAL on)
        INSTALL_CONF(src/storage storage)
 ENDIF()
index 85745b0..efd2b0c 100644 (file)
@@ -348,6 +348,11 @@ systemctl daemon-reload
 %{_datadir}/license/newfs_msdos
 %config %{_sysconfdir}/deviced/block.conf
 %endif
+%if "%{?profile}" == "tv"
+%if %{?display_module} == on
+%config %{_sysconfdir}/deviced/display.conf
+%endif
+%endif
 %if %{?storage_module} == on
 %config %{_sysconfdir}/deviced/storage.conf
 %endif
index cce5d64..6becd35 100644 (file)
@@ -2232,7 +2232,7 @@ static void display_init(void *data)
                check_seed_status();
 
                if (display_conf.lcd_always_on) {
-                       _D("LCD always on!");
+                       _I("LCD always on!");
                        trans_table[S_NORMAL][EVENT_TIMEOUT] = S_NORMAL;
                }
 
diff --git a/src/display/display-tv.conf b/src/display/display-tv.conf
new file mode 100644 (file)
index 0000000..2d74b4e
--- /dev/null
@@ -0,0 +1,4 @@
+[Display]
+# If this value is yes, LCD is always on except pressing power key.
+# Default value is no, LCD is turned off by lcd timeout.
+LCDAlwaysOn=yes                        # yes or no