From: Yunhee Seo Date: Tue, 15 Oct 2024 02:12:30 +0000 (+0900) Subject: display: Add display.conf for headless profile X-Git-Tag: accepted/tizen/unified/20241017.114743^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=platform%2Fcore%2Fsystem%2Fplugin%2Fdeviced-headless.git display: Add display.conf for headless profile In the headless profile, display is not used. However, there was a mismatch part between headless profile and deviced display policy. To set display related configuration, especially DisplayDPMSType none, this is necessary. Change-Id: I74265b018e82a9ea6cd6c845ee714b460b6a1cc8 Signed-off-by: Yunhee Seo --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4553799..3cf7f5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,5 +9,6 @@ ADD_SUBDIRECTORY(src/deviced-input) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/input.conf DESTINATION /etc/deviced) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/power.conf DESTINATION /etc/deviced) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/conf/display.conf DESTINATION /etc/deviced/conf.d) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/rndis.service DESTINATION /usr/lib/systemd/system) INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/packaging/rndis.sh DESTINATION /usr/bin) diff --git a/conf/display.conf b/conf/display.conf new file mode 100644 index 0000000..361ea2a --- /dev/null +++ b/conf/display.conf @@ -0,0 +1,43 @@ +# deviced is pending lcd on until lock screen shows. +# This is the maximum pending time. +# LockScreenWaitingTime=0.3 (second) + +# Power-off popup is launched when power key is long pressed. +# This is duration of pressing power key. +# LongPressInterval=2 (second) + +# This is polling time of auto brightness. +# LightSensorSamplingInterval=1 (second) + +# display state is changed to SLEEP state after this time. +# If this value is large, it causes power consumption problem. +# LCDOffTimeout=300 (milli second) + +# This is n step of auto brightness. +# If brightness is change from a to b, brightness's changed n times from a to b. +# BrightnessChangeStep=10 + +# Just below application only allow to change display frame rate. +# refer to enum refresh_app +# ChangedFrameRateAllowed=setting (setting or all) +# ControlDisplay=(yes or no) + +# LCD is not turned off when this value is yes and key double pressed +# PowerKeyDoublePressSupport=(yes or no) + +# 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 or no) + +# If this value is yes, LCD is turned off by lcd timeout. +# If this value is no, LCD is turned off just by external requests. +# TimeoutEnable=(yes or no) + +# This is the type of DPMS. +# If DPMS type is window_manager, turning display on or off, it uses window manager DPMS. +# If DPMS type is none, when the DPMS function is called, it does nothing just returns true. +# Default value is window_manager. +# DisplayDPMSType=(window_manager or none) + +[Display] +DisplayDPMSType=none \ No newline at end of file diff --git a/packaging/system-plugin-deviced-headless.spec b/packaging/system-plugin-deviced-headless.spec index 996598b..1714b27 100644 --- a/packaging/system-plugin-deviced-headless.spec +++ b/packaging/system-plugin-deviced-headless.spec @@ -50,5 +50,6 @@ make %{?jobs:-j%jobs} %{SYSTEM_PLUGIN_LIBDIR}/libplugin-backend-deviced-input.so %config %{_sysconfdir}/deviced/input.conf %config %{_sysconfdir}/deviced/power.conf +%config %{_sysconfdir}/deviced/conf.d/display.conf %{_unitdir}/rndis.service %{_bindir}/rndis.sh