display: Add display.conf for mobile profile 92/319092/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241031.000031 accepted/tizen/unified/20241017.114746 accepted/tizen/unified/x/asan/20241224.003726 tizen_9.0_m2_release
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 15 Oct 2024 06:01:01 +0000 (15:01 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 15 Oct 2024 09:23:43 +0000 (18:23 +0900)
display.conf file in the deviced was used as default configuration.
However, display configuration should be set according to plugin backend profile.
To set mobile specific display configuration,
this is necessary.

Change-Id: I0fff39ebc50e6bb7fb4d33583844c128bf4f03aa
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
CMakeLists.txt
conf/display.conf [new file with mode: 0644]
packaging/system-plugin-backend-deviced-mobile.spec

index 9687bf7b0ec62b4013e3aad027754281defbfc65..177e8a92e0f1e3b34f44de8d425084bee75a2d4b 100644 (file)
@@ -8,3 +8,5 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
 ADD_SUBDIRECTORY(src/battery)
 ADD_SUBDIRECTORY(src/display)
 ADD_SUBDIRECTORY(src/input)
+
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/conf/display.conf DESTINATION /etc/deviced/conf.d)
diff --git a/conf/display.conf b/conf/display.conf
new file mode 100644 (file)
index 0000000..a807a16
--- /dev/null
@@ -0,0 +1,44 @@
+[Display]
+# 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)
+
+LCDAlwaysOn=no
+TimeoutEnable=yes
index 25e838334efafbde5011833876b8d5b0077f50ab..832ae9c0b036baf1dda2deb33151474dc1ca3e4e 100644 (file)
@@ -48,3 +48,4 @@ make %{?jobs:-j%jobs}
 %{SYSTEM_PLUGIN_LIBDIR}/libplugin-backend-deviced-battery.so
 %{SYSTEM_PLUGIN_LIBDIR}/libplugin-backend-deviced-display.so
 %{SYSTEM_PLUGIN_LIBDIR}/libplugin-backend-deviced-input.so
+%config %{_sysconfdir}/deviced/conf.d/display.conf