platform/core/system/deviced.git
4 weeks agopower: Add checker to verify request before doing transition 53/324153/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20250514.164517
Youngjae Cho [Fri, 9 May 2025 06:38:55 +0000 (15:38 +0900)]
power: Add checker to verify request before doing transition

Previously as for the poweroff/reboot/exit transition, no further
requests should've been handled, and it was accomplished by unsubscribing
requests right before the action_transition(). However, this function could
be deferred depending on how long the other processes hold the transition
using device APIs below, giving chance to receive additional requests.
 - device_power_add_state_wait_callback()
 - device_power_confirm_wait_callback()

To make it thoroughly not receive further requests, checks all the
receiving transition requests before processing it. To this end,
added check_transition(), verifying whether a transition could be
processed, at the beginning of transition routine.

This fixes violation of the below assertions at the head of the
trigger_transition().
 - assert(current != DEVICED_POWER_STATE_POWEROFF);
 - assert(current != DEVICED_POWER_STATE_REBOOT);
 - assert(current != DEVICED_POWER_STATE_EXIT);

Change-Id: I9f19274acfd9962e395fc2fa348a65833d96dc77
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit aada81eacd60531ebe955d56003e4a13bd1324b8)

2 months agodisplay: Revert lcd on procedure logic 41/322341/3 accepted/tizen/9.0/unified/20250410.163723
Yunhee Seo [Mon, 7 Apr 2025 12:16:54 +0000 (21:16 +0900)]
display: Revert lcd on procedure logic

As lcd on procedure logic moved to headed plugin,
lcd on procedure logic was removed, before.
However, default logic should be exist in deviced for
image does not use plugin-backend package.

Change-Id: Ic33add02001ae3cfaf6722a669584c7eeaa663d6
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2 months agodisplay: Fix dim state timeout value calculation 11/322011/2 accepted/tizen/9.0/unified/20250407.170151
Yunhee Seo [Wed, 2 Apr 2025 06:19:03 +0000 (15:19 +0900)]
display: Fix dim state timeout value calculation

From consctuctor initialization step,
there was dim timeout value get operation.
However, unit conversion from seconds to milliseconds was omitted.
Proper calculation is added.

Change-Id: I4caaf79d638ea105737de123f1426bc652fa9e23
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2 months agodisplay: Fix max_brightness getter wrong operation 07/321407/3 accepted/tizen/9.0/unified/20250321.150517
Yunhee Seo [Thu, 20 Mar 2025 09:37:25 +0000 (18:37 +0900)]
display: Fix max_brightness getter wrong operation

max_brightness getter works properly only after first value was get.
Thus to get max_brightness value, getter needs to be called more than once.
max_brightness value initial setting is added.

Change-Id: I0c86a90bde17f9035113a549153bbda529496d03
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
4 months agopower: Support power lock operation on headless profile 14/318214/1 accepted/tizen/9.0/unified/20250115.070545
Youngjae Cho [Mon, 23 Dec 2024 08:25:39 +0000 (17:25 +0900)]
power: Support power lock operation on headless profile

Previously, the device API only supports power lock operation at headed
profile via display module. However, as the device API has changed to
support power lock opeartions not only on headed but also on headless
profile, it was required for the deviced to handle such requests on
headless profile accordingly.

To get to this goal, this patch is made up of three parts.
 1) Separate power lock code from power-dbus.c to power-lock.c.
 2) Power resource attributes for managing power lock have been newly
    added to make other modules utilize it via resource-manager.
    In this patch, specifically the display module makes use of it.
     • DEVICED_POWER_ATTR_UINT64_3_CPU_LOCK
       : A setter that controls cpulock. Takes 3 parameters.
          - int: acquire(1) or release(0) lock
          - pid_t: pid of requester
          - int: timeout of the lock, only effective when the
                 first parameter is acquire(1)
     • DEVICED_POWER_ATTR_INT_CPU_LOCK_COUNT
       : A getter for getting cpu lock count
    The resource-power.h, a wrapper accessing the above attributes,
    has newly been introduced. In the future, not only the deviced's
    modules but any plugins also could make use of it.
 3) Add condition branches at display-dbus.c to handle cpu lock request
    on headless profile. The reason why we go thorugh the display
    module, not directly to the power module, is that the current device
    API documentation has not specified privilege necessary for calling
    power method. As adding additional privilege to a public API is not a
    trivial work, we have implemented in this way for now.

Change-Id: If7523325fa00c8d80cc4d35cf86628700d234f8c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 months agoFix build warnings -Wmisleading-indentation and -Wdangling-else 40/317140/1
Youngjae Cho [Tue, 24 Dec 2024 02:32:40 +0000 (11:32 +0900)]
Fix build warnings -Wmisleading-indentation and -Wdangling-else

1. -Wmisleading-indentation
 /home/abuild/rpmbuild/BUILD/deviced-10.0.0/src/shared/devices.h:137:9:
    warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   137 |         if (!dev) dev = find_device(name); if (check_default(dev)) return -ENODEV; \
       |         ^~
       |         ^~~~~~~~~~~~~~~
 /home/abuild/rpmbuild/BUILD/deviced-10.0.0/src/shared/devices.h:137:44: note:
    ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   137 |         if (!dev) dev = find_device(name); if (check_default(dev)) return -ENODEV; \

   : Fixed them by breaking line.

2. -Wdangling-else
 /home/abuild/rpmbuild/BUILD/deviced-10.0.0/tests/syscommon-plugin-test/display.cc:55:12:
    warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   55 |         if (ret_val == 0 && display_config)

   : The EXPECT_EQ() macro following the above 'if' statement is expanded like below
    if (ret_val == 0 && display_config)
      switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal::EqHelper::Compare(
      "display_config->display_dpms_type"
      ,
      "SYSCOMMON_DEVICED_DPMS_TYPE_NONE"
      ,
      display_config->display_dpms_type
      ,
      SYSCOMMON_DEVICED_DPMS_TYPE_NONE
      ))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure,
        "display.cc", 56, gtest_ar.failure_message()) = ::testing::Message()
      ;

   And there is nested, inner 'if-else' statement at the EXPECT_EQ() and this
   generates the warning. Fix it by enclosing the outmost if statement
   with braces.

Change-Id: I4fc835e667302154e4ec165e8611dfad616078ea
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 2b1add12bc76ee8af70562a33f3e94b8a005c00d)

5 months agopower: Elaborate log about waiting confirm lag 12/316912/1
Youngjae Cho [Wed, 27 Nov 2024 12:10:56 +0000 (21:10 +0900)]
power: Elaborate log about waiting confirm lag

Appended description of how much time was spent for waiting reply
from state transition watchers. And down the log level from error
to warning as it anyway proceeds the following transition step.

Change-Id: I0a0df1551d7123eeacc8247a3793c103ead1b80d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
6 months agotouchscreen: Replace TOUCHSENSITIVITY_GLOVE_MODE macro to hal_device_touchscreen_sens... 36/315636/1 accepted/tizen/9.0/unified/20241210.162001
Yunhee Seo [Wed, 4 Dec 2024 02:24:32 +0000 (11:24 +0900)]
touchscreen: Replace TOUCHSENSITIVITY_GLOVE_MODE macro to hal_device_touchscreen_sensitivity_state_e

At first, there is no need to use TOUCHSENSITIVITY_GLOVE_MODE macro.
This is supported as enum from hal-device-touchscreen module.
Since macros and enums with the same role are defined separately and used,
it should be removed.
Thus, macro usage is replaced by hal_device_touchscreen_sensitivity_state_e type.

Change-Id: Ia8da7a8f0ba0e9a62200ea6c1a8ef6a42ab4a41d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
6 months agoFix variable type mismatch issues 75/320875/5 accepted/tizen/9.0/unified/20241129.021423
Yunhee Seo [Mon, 25 Nov 2024 06:09:50 +0000 (15:09 +0900)]
Fix variable type mismatch issues

To resolve svace issues and compare value clearly, type converting is added.

Change-Id: Ic7987efc3ae3dd5deb95d677646c34e13fbaa325
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
6 months agotools: board: Modify integer parser from strtol to strtoll 51/320951/1
SangYoun Kwak [Mon, 25 Nov 2024 08:08:06 +0000 (17:08 +0900)]
tools: board: Modify integer parser from strtol to strtoll

Previously in the integer parsing code, the string is parsed using
strtol and the result is checked by comparing with INT_MAX and INT_MIN
to check it is in the "int" type range.

But this method can cause "always false" issue in the 32-bit environment
since the size of long(return type of strl) is same as int in the 32-bit
environment.

To solve this issue, strtol is replaced by strtoll, which returns long
long type that has always 64-bit size in the 32-bit and 64-bit
environment.

According to the change of type, a variable which will contain the
return value of strtoll is renamed.

Change-Id: Iae7df2f226369818d425ae27dd6a3d40f9c784fd
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
6 months agopower: Rename transition_id to wait_callback_id to use consistent name 55/320555/1 accepted/tizen/9.0/unified/20241121.045817
Chanwoo Choi [Sat, 16 Nov 2024 21:36:26 +0000 (06:36 +0900)]
power: Rename transition_id to wait_callback_id to use consistent name

capi-system-device has used 'wait_callback_id' and deviced has used
'transition_id' to indicate the same value. In order to remove the
confusion of between differnet name and same thing,
rename transition_id to wait_callback_id.

Change-Id: I0f1d4229a49cabede051af8e71e2a20054092b32
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 months agodisplay: Add support of loading display conf file from /etc/deviced/conf.d/ 86/319086/5 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.233659 accepted/tizen/unified/20241017.114737 accepted/tizen/unified/toolchain/20241022.122642 accepted/tizen/unified/toolchain/20241022.123047 accepted/tizen/unified/x/20241017.170408 accepted/tizen/unified/x/asan/20241022.113547 tizen_9.0_m2_release
Yunhee Seo [Tue, 15 Oct 2024 02:03:34 +0000 (11:03 +0900)]
display: Add support of loading display conf file from /etc/deviced/conf.d/

Before this, display.conf file was used only default config file from deviced.
However, display conf file should be handled according to plugin backend profile.
With this, display.conf /etc/deviced/conf.d/ can be loaded.
To use display.conf defined from plugin backend, this is necessary.

Also, as applying this, to test and check dpms type in headless image,
new test case is added.

Change-Id: I030ec8e77ea50e9082e26231d7cf7549fdac7466
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agodisplay: Add dbus method return value handling code 78/317678/1 accepted/tizen_unified_dev accepted/tizen/unified/20240924.005933 accepted/tizen/unified/dev/20240924.080624 accepted/tizen/unified/toolchain/20241004.102042 accepted/tizen/unified/x/20240923.124438 accepted/tizen/unified/x/asan/20241014.000444
Yunhee Seo [Fri, 13 Sep 2024 02:15:13 +0000 (11:15 +0900)]
display: Add dbus method return value handling code

During dbus method logic operation, function return value
goes to direct dbus method return value.
However, dbus method return value is different to
function return value in the logic.
If dbus method logic not fails, then it should return zero.

Change-Id: I2216cb2a0b1d4d5d26274ace20b4d6f2a24da777
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agodisplay: Support lockscreen enable/disable 58/317258/9 accepted/tizen/unified/20240912.084739 accepted/tizen/unified/dev/20240913.055524 accepted/tizen/unified/x/20240913.014907
Yunhee Seo [Tue, 3 Sep 2024 08:05:42 +0000 (17:05 +0900)]
display: Support lockscreen enable/disable

Added a feature that enables/disables the lockscreen logic according to the profile's configuration
because the lockscreen is not always a necessary function.

int display_config_get_lockscreen_disable(bool *lockscreen_disable);
To get lockscreen configuration info, above function is added.

Change-Id: Ie36bcb1ae5621ca69382fac55ecb900c743c0949
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agoSupport lcd on procedure in plugin backend side 57/317257/9
Yunhee Seo [Tue, 3 Sep 2024 01:57:04 +0000 (10:57 +0900)]
Support lcd on procedure in plugin backend side

lcd on procedure needs below logics.
 - power doze mode setting
 - broadcast lcd on process
 - setting brightness
 - setting pmstate vconf
 - start display devices

To support lcd on procedure, below resource attributes are added
and implemented in resource-display.

New attribute:
 - id: DEVICED_DISPLAY_ATTR_TUPLE2_BROADCAST_LCD_ON
 - type: SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_DISPLAY_ATTR_BOOL_BROADCASTED_FLAG
 - type: SYSCOMMON_RESMAN_DATA_TYPE_BOOLEAN
 - setter: O
 - getter: O

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_UPDATE_BRIGHTNESS
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_PM_STATE
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_DISPLAY_ATTR_TUPLE2_START_DEPENDENT_DEVICE
 - type: SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_POWER_ATTR_INT_DOZE_MODE
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

DEVICED_DISPLAY_ATTR_INT_TOUCH_EVENT_BLOCKED setter is newly added.

In lcd on procedure process, to set broadcast lcd on state flag and start display device
below function is added.

int display_panel_set_lcd_on_state_broadcasted(bool broadcasted);
int display_start_dependent_device_with_device_type(enum syscommon_deviced_display_dependent_device_type device_type,
 enum deviced_event reason);

Change-Id: Iaf863ad0ca285ab750720d70054fe0e972830258
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agodisplay: Add silent booting check logic during display initialization 94/316894/9
Yunhee Seo [Fri, 30 Aug 2024 05:09:09 +0000 (14:09 +0900)]
display: Add silent booting check logic during display initialization

There are times when the display brightness surges
while silent booting is in progress.
To avoid above situation, defensive code has been added
to display initialization.
To support that logic, below static function is added.

static bool is_on_silent_booting(void);

Change-Id: Iee062c84c6d82b5a9ffae4e3a99c58989989c118
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agopower: Remove extern variable silent_boot 93/316893/9
Yunhee Seo [Fri, 30 Aug 2024 04:46:42 +0000 (13:46 +0900)]
power: Remove extern variable silent_boot

silent_boot variable was used to figure out boot mode was silent boot or not.
However, it was used as extern which is not safe usage.
To improve code quality, that variable is removed and changed to static type
in the power-boot.
And then, below getter is added.

int power_boot_get_silent_boot(bool *silent_boot);

Change-Id: I3a0f2685df0ae3481e40df56f36316e9f54e7fdb
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agodisplay: Add new display attributes for display setup with dpms initialization 93/316793/5
Yunhee Seo [Mon, 26 Aug 2024 08:10:22 +0000 (17:10 +0900)]
display: Add new display attributes for display setup with dpms initialization

When the dpms initialization is done, display state is set to DISPLAY_STATE_ON.
And then, normal state timeout counting starts.
After normal state timeout, display state can be changed to other state.
Thus, dpms initialization notifying logic is added.
To support above description, below attributes implementation is added.

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_RESET_STATE_TIMEOUT
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_PM_CURRENT_STATE
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_TOUCHLED_ATTR_INT_STATE_TIMEOUT
 - type: SYSCOMMON_RESMAN_DATA_TYPE_UINT64_WITH_1_USER_DATA
 - setter: X
 - getter: O

Change-Id: I61083da9ff379dcb1ae613eb7c35d5a8347e30d3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
9 months agodisplay: Add the missing header file 54/316754/1 accepted/tizen/unified/20240828.082403 accepted/tizen/unified/dev/20240829.043838 accepted/tizen/unified/x/20240829.020411
Jaehoon Chung [Tue, 27 Aug 2024 22:16:05 +0000 (07:16 +0900)]
display: Add the missing header file

Add the missinge header file to fix a build warning/error.
It's occurring "implicit declaration of function".

Fixes: 9aac916921c6 ("display: Add detailed display state change log")
Change-Id: I7936200c8c7e594d46b00689393bf43e3fa4ba20
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
9 months agodisplay: Add detailed display state change log 92/316492/1 accepted/tizen/unified/20240827.163735 accepted/tizen/unified/dev/20240828.023754
Yunhee Seo [Thu, 22 Aug 2024 05:49:19 +0000 (14:49 +0900)]
display: Add detailed display state change log

When the display state changes, it was hard to know
which process requested state changing with only pid.
To provide more meaningful log information,
process name logging is added.

Change-Id: Ibcb7033efc4c966f0c152ee91dfaa68a4b27556a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
10 months agopower: Modify the code to keep code consistency 35/315935/3 accepted/tizen/unified/20240813.181625 accepted/tizen/unified/dev/20240819.095618 accepted/tizen/unified/x/20240814.051431
Yunhee Seo [Fri, 9 Aug 2024 11:44:28 +0000 (20:44 +0900)]
power: Modify the code to keep code consistency

To keep code quality and readability,
these modifications are added.
1. Remove unofficial abbreviations in function/variable name.
2. Change void return type function to return int type.
3. Add return value checking and debug message.

Change-Id: I2bd738db09beb10cf5a79ba7d95ce2deea399595
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
10 months agopower: Add handling code to safely manage power state waiting list 97/315897/3 accepted/tizen/unified/20240812.190108 accepted/tizen/unified/dev/20240813.035939 accepted/tizen/unified/x/20240813.112430
Yunhee Seo [Fri, 9 Aug 2024 05:45:44 +0000 (14:45 +0900)]
power: Add handling code to safely manage power state waiting list

While the power state is changing, power state change waiting list can be cleaned up.
However before cleaning up, if remove_change_state_wait() was called,
struct csw in the waiting list can be free twice.
To avoid double free problem, handling code is added.

Change-Id: Id4646b2656688c2f9e091033f7b6ab3e08c930fa
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
10 months agodisplay: Support dim brightness setting 65/315265/1 accepted/tizen/unified/20240731.010751 accepted/tizen/unified/dev/20240731.044705 accepted/tizen/unified/toolchain/20240812.133426 accepted/tizen/unified/x/20240731.090034 accepted/tizen/unified/x/asan/20240813.231909
Yunhee Seo [Mon, 29 Jul 2024 07:05:57 +0000 (16:05 +0900)]
display: Support dim brightness setting

The dim brightness setting feature had been supported before
but it was no longer available after ce471ec18f19bb184848f4c84e813b834ef4bdee commit.
Although there were descriptions and functions provided for setting dim brightness,
it's not right that it cannot be used, so it is restored.

Change-Id: I6b03d7c12b359a3d24ecd4305f904f97f80decd1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoAdd setter/getter tool for upgrade type 46/313646/2 accepted/tizen/unified/20240708.173155 accepted/tizen/unified/dev/20240709.043428 accepted/tizen/unified/x/20240708.014813
Mateusz Moscicki [Fri, 28 Jun 2024 14:16:34 +0000 (16:16 +0200)]
Add setter/getter tool for upgrade type

To make upgrade type settable and gettable, corresponding tools are
added:
 * device_board_get_upgrade_type
 * device_board_set_upgrade_type

Change-Id: Ie86d474e2e23d9d894cab49ae4c0efea74ec056a

11 months agodisplay: Fix missing condition for looping dpms_context 78/313578/1 accepted/tizen/unified/20240701.055750 accepted/tizen/unified/dev/20240702.054036 accepted/tizen/unified/x/20240701.102735
Youngjae Cho [Fri, 28 Jun 2024 05:24:03 +0000 (14:24 +0900)]
display: Fix missing condition for looping dpms_context

If (dpms_context == NULL) then, it iterates over the default context,
which might cause undefined behavior.

Change-Id: I222a8c798a332c3a93e89253bd4f586bbc4dcf08
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Make dpms checking follow dpms_context iteration 77/313577/1
Youngjae Cho [Fri, 28 Jun 2024 04:34:23 +0000 (13:34 +0900)]
display: Make dpms checking follow dpms_context iteration

Even dpms_client is available at the beginning of the wm_dpms_set_state(),
it could be finalized, before sending get/set request, by a pending event
that is going to destroy dpms_client. Therefore, it is more robust that
checking dpms after handling all pending requests.

The below crash happened:

Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x004aac62 in wm_dpms_set_state (on=3)
     at /usr/src/debug/deviced-10.0.0-1.arm/src/display/display-dpms.c:526
 526        tizen_dpms_manager_set_dpms(dpms_client->tz_dpms_mng,
                                dpms_client->wl_output, mode);
 [Current thread is 1 (LWP 478)]
 (gdb) p dpms_client
 $1 = (wl_glib_info *) 0x0

Change-Id: Ic0f191a64a46a1e834f85ce9d5d110804e4c2676
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agoAdd smack privilege as 'System::Tools' to device_board_* tools 78/313378/2
SangYoun Kwak [Tue, 25 Jun 2024 04:56:46 +0000 (13:56 +0900)]
Add smack privilege as 'System::Tools' to device_board_* tools

To set privilege and prohibit accesses to the device_board_* commands,
smack label 'System::Tools' is added.

Change-Id: I41a20162372a46fa238e2091053db972cdb01364
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
11 months agodisplay: Fix EOPNOTSUPP to ENOSYS 30/313330/1
Youngjae Cho [Mon, 24 Jun 2024 06:04:42 +0000 (15:04 +0900)]
display: Fix EOPNOTSUPP to ENOSYS

The error ENOTSUP and EOPNOTSUPP are both 95 so they cannot be
distinguished. Therefore, fixed the EOPNOTSUPP to ENOSYS.

 ENOSYS  38  Function not implemented

The deviced plugin-api has changed to return ENOSYS if there is
display plugin backend but it hasn't implemented an operation.

Change-Id: I838dd104fdc0cd7bb01f1567bfb51bfffe6c5139
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove display-plugin 26/313326/1
Youngjae Cho [Wed, 19 Jun 2024 04:14:15 +0000 (13:14 +0900)]
display: Remove display-plugin

The display plugin has been replaced with the libsyscommon plugin api
for the several previous patches. And finally, it is now totally
replaced so remove the empty display-plugin from the deviced core.

Change-Id: Ia3e78a7ac8a9aeda637efd7aaa556560da018493
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace proc_change_state() with plugin api 25/313325/1
Youngjae Cho [Wed, 19 Jun 2024 03:59:39 +0000 (12:59 +0900)]
display: Replace proc_change_state() with plugin api

Change-Id: I8c0887c50078a9904f0b04996bb6df773154355f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove plugin initialized display states 24/313324/1
Youngjae Cho [Wed, 19 Jun 2024 02:03:05 +0000 (11:03 +0900)]
display: Remove plugin initialized display states

The core operations has changed to only work on top of default states.
Only wearable is working with its own states but it can figure out
the states by its plugin functions internally regardless of the default
states. Likewise, the core operations are not using the plugin states
if it works in a default way. Therefore, as the deviced core states
and plugin states are totally working independently, the deviced core
has changed not to manage plugin states.

Change-Id: I3e08d77285bfb87a8be0925548b0987b3f78e2cd
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Pull out display config from display_plugin structure 23/313323/1
Youngjae Cho [Mon, 17 Jun 2024 11:49:56 +0000 (20:49 +0900)]
display: Pull out display config from display_plugin structure

The display configuration is managed by both the core and plugin. It is
initialized by the plugin first, and then overwritten by the core
config parser. Therefore, it has become a part of the core but work with
plugin api that passes plugin backend's predefined configurations.

Change-Id: I3395e72a2c96b6b4ffe0885dabd882219e372377
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Change system_wakeup_flag from plugin to misc function 22/313322/1
Youngjae Cho [Mon, 17 Jun 2024 11:21:07 +0000 (20:21 +0900)]
display: Change system_wakeup_flag from plugin to misc function

The system_wakeup_flag has nothing to do with plugin but, rather, a
runtime information that controlled by battery module. Therefore, it
is proper that the deviced core manages the value.

Change-Id: I62849c827aa688733da8689a37d1fb5c0ad22b37
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace auto brightness with plugin api 21/313321/1
Youngjae Cho [Mon, 17 Jun 2024 11:12:58 +0000 (20:12 +0900)]
display: Replace auto brightness with plugin api

The reset_autobrightness_min has removed and it is intended to be a
part of plugin implementation, .set_auto_brightness_min.

Change-Id: Ie5eeb1bab5a3a8b78a0f6e034dbf2b6b82708e87
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace powersaving mode with plugin api 20/313320/1
Youngjae Cho [Mon, 17 Jun 2024 09:09:46 +0000 (18:09 +0900)]
display: Replace powersaving mode with plugin api

Change-Id: I40ac2bd8f713369bcd0ac6d6b94d464efb2af705
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace backlight_ops with display plugin api 19/313319/1
Youngjae Cho [Mon, 17 Jun 2024 08:44:25 +0000 (17:44 +0900)]
display: Replace backlight_ops with display plugin api

Change-Id: I1e9471225707f63210898889f22014771555ebc0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Add omitted return value 47/313047/1 accepted/tizen/unified/20240618.195809 accepted/tizen/unified/dev/20240620.005708 accepted/tizen/unified/toolchain/20240624.121638 accepted/tizen/unified/x/20240619.013454 accepted/tizen/unified/x/asan/20240625.092815
Yunhee Seo [Tue, 18 Jun 2024 10:44:45 +0000 (19:44 +0900)]
display: Add omitted return value

If display fails loading hal backend, load_display_hal_backend should be returned
right away.
However, return code line was omitted from 6195ac94623f2c756fa3a52adc6fd0234d8e97b2 commit.
In the process of moving the code, it was accidentally omitted.

Change-Id: Idc28ee26c965f3269334939198d7fccd3d8cd6cd
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: mobile: display: Remove key-filter 91/312891/1 accepted/tizen/unified/20240618.060038 accepted/tizen/unified/x/20240618.074825
Yunhee Seo [Fri, 14 Jun 2024 08:06:54 +0000 (17:06 +0900)]
plugin: mobile: display: Remove key-filter

Remove key-filter file.
By completely moving the key-filter code to mobile profile plugin backend git,
it can be deleted.
Furthermore, these key manipulation logic is much closer to input module,
these logics are moved to mobile backend input module properly.

Change-Id: I06d1350b6f9f9446eafb05bac4b972aa1053f6f9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoled: Add touchled resource driver 90/312890/1
Yunhee Seo [Fri, 14 Jun 2024 07:27:31 +0000 (16:27 +0900)]
led: Add touchled resource driver

New attribute:
 - id: DEVICED_TOUCHLED_ATTR_INT_BACKLIGHT
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

There is touchled function usage case from plugin-backend side,
therefore touchled resource driver is newly added.
To control touchled key manipulation, above attribute is added.

Change-Id: Id8fa30d4424b3536fc0c510db5592b90931c0d96
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agodisplay: Add attributes related to display state manipulation 89/312889/1
Yunhee Seo [Fri, 14 Jun 2024 07:24:33 +0000 (16:24 +0900)]
display: Add attributes related to display state manipulation

New attribute:
 - id: DEVICED_DISPLAY_ATTR_LOCKSCREEN_BG_STATE
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: X
 - getter: O

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_LCDOFF_REASON
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_STATE_TRANSITION
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X

The corresponding attributes may be changed during the
display state refactoring process.
These are necessary for plugin backend separation.

Change-Id: I45675dae18af894cc6fb2ca80f590ea15ab138f1
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: mobile: display: Remove unused bezel wakeup 88/312888/1
Yunhee Seo [Mon, 10 Jun 2024 07:04:30 +0000 (16:04 +0900)]
plugin: mobile: display: Remove unused bezel wakeup

At first, bezel wakeup is added for wearable target from below commit.
78129922508e82a8304ef5b1add270e2ff93fb67
After that, this was copied to all plugins from below commit.
ce471ec18f19bb184848f4c84e813b834ef4bdee

Actually, bezel wakeup was for wearable target, and it was not
used properly from other plugins.
Because bezel wakeup is notified only in wearable plugin,
there was no code to notify bezel wakeup from deviced, since the
commit was added.
Thus, bezel wakeup is removed from mobile plugin.

Change-Id: I577a5888636ec090458590b9aa92c323d15b8913
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: mobile: display: Remove proc_change_state() 87/312887/1
Yunhee Seo [Fri, 7 Jun 2024 11:12:50 +0000 (20:12 +0900)]
plugin: mobile: display: Remove proc_change_state()

As removed unnecssary proximity dependency,
proc_change_state() can be removed from mobile plugin.

Change-Id: I7a492dfe9ee526df89cb9801f50b0b5bba1bcf82
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: mobile: display: Remove unused proximity getter/setter 86/312886/1
Yunhee Seo [Wed, 5 Jun 2024 07:08:38 +0000 (16:08 +0900)]
plugin: mobile: display: Remove unused proximity getter/setter

Since the addition of proximity getter/setter from commit I3ee82aafab34390d6907239c2ab6542540f3abf7,
proximity setter has never been used.
Because proximity setter is not used at all, getter also has become
meaningless.
Before moving the plugin mobile display code,
unused and meaningless code logic part is deleted.

Change-Id: Idff2c2a5adf3fd7bc8862447f5f5dd3512d0b396
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agodisplay: Fix plugin api error handling 69/312869/1
Youngjae Cho [Thu, 13 Jun 2024 06:32:17 +0000 (15:32 +0900)]
display: Fix plugin api error handling

The deviced plugin api has changed to return two special error case.
 1. -ENOTSUP
    : It specifies loading fail of plugin backend
 2. -EOPNOTSUPP
    : It succeeded backend loading but the loaded backend has no
      implemented operation.
Both cases take alternative fallback - the predefined default routine
by the deviced. Other nagative values are considered as error of
backend implementation itself so it won't take the default routine.

Change-Id: I854cb9ea5403e163a5acb425f5d98bb61d8c968e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace display on/off plugin call with plugin api 68/312868/1
Youngjae Cho [Thu, 13 Jun 2024 05:49:12 +0000 (14:49 +0900)]
display: Replace display on/off plugin call with plugin api

Change-Id: Ia845efa9ae0e557a51245487c12a2197ef5a52a9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Replace enum device_flags with deviced_event 67/312867/1
Youngjae Cho [Wed, 12 Jun 2024 02:21:39 +0000 (11:21 +0900)]
display: Replace enum device_flags with deviced_event

The enum device_flags comprised two kind of semantics, one is 'mode'
that controls devices in a specific way, and the other is 'event'
that used to be used as a reason by which an operation of the deviced
is triggered.

Throughout the several previous patches, all the 'mode' flags except
NORMAL_MODE has been removed. Therefore, flag becomes having no choice
but NORMAL_MODE for 'mode', so the NORMAL_MODE can be remove as well.

And the remaining 'event' related flags are replaced with enum
deviced_event that come from the libsyscommon. Currently, the previous
LCD_ON_BY_EVENT or LCD_OFF_BY_EVENT, which didn't specify a specific
event but just event, have been replaced with DEVICED_EVENT_UNKOWN.

Change-Id: Id9f267729ee8fddebde9ae19f8c263659534da61
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove enum TOUCH_SCREEN_OFF_MODE 66/312866/1
Youngjae Cho [Tue, 11 Jun 2024 11:02:23 +0000 (20:02 +0900)]
display: Remove enum TOUCH_SCREEN_OFF_MODE

All call for touchscreen_stop(TOUCH_SCREEN_OFF_MODE) have been replaced
with call touchscreen_set_state() directly, not via touchscreen_stop().

The display dbus method "StayTouchScreenOff" has been deprecated.
Instead, it can do the same thing that "Disable" method of touchscreen
module by disabling touchscreen.

Change-Id: Ic72cbdc6635afd691129d3256aa9a034b71cb2ae
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove enum LCD_PANEL_OFF_MODE 65/312865/1
Youngjae Cho [Tue, 11 Jun 2024 04:29:14 +0000 (13:29 +0900)]
display: Remove enum LCD_PANEL_OFF_MODE

No need to take care LCD_PANEL_OFF_MODE flag via parameter throughout
display on/off subroutines. Whenever it is required, just enquire
and get the value using display_panel_get_lcd_paneloff_mode().

Change-Id: Ibd987bb08a718f437b4cdeddc290d9e719593f42
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove setter for DEVICED_DISPLAY_ATTR_INT_DPMS_STATE 64/312864/1
Youngjae Cho [Tue, 11 Jun 2024 04:02:02 +0000 (13:02 +0900)]
display: Remove setter for DEVICED_DISPLAY_ATTR_INT_DPMS_STATE

The attribute setter is currently not being used. Moreover, controlling
DPMS from plugin should be prevented as it could ignore and bypass
internal state of the deviced. Only getter is allowed.

Change-Id: Ib473744960c6b67b9a3f657fc240354d098d4f38
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove ambient-mode(AOD) code 63/312863/1
Youngjae Cho [Mon, 10 Jun 2024 08:28:28 +0000 (17:28 +0900)]
display: Remove ambient-mode(AOD) code

Change-Id: Ia06d29e50c11b48b74bd544cedf699330bfb1301
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodevices: Remove enum CORE_LOGIC_MODE 62/312862/1
Youngjae Cho [Mon, 10 Jun 2024 07:11:24 +0000 (16:11 +0900)]
devices: Remove enum CORE_LOGIC_MODE

The CORE_LOGIC_MODE is no more than probing and then initializing, or
deinitializing a device. It can be handled by calling probe()/init()
or exit() of device_ops. Therefore, no need to do it within
device_ops->start()/stop() based on the parameter CORE_LOGIC_MODE.
Fix it to directly call probe/init/exit on receiving dbus request
for start/stop device. It is logically same as the previous.

Change-Id: I86285bd5c41a958030d176c32003c61770a72c36
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Add lockscreen attribute and replace existing plugin call 61/312861/1
Youngjae Cho [Wed, 5 Jun 2024 10:47:56 +0000 (19:47 +0900)]
display: Add lockscreen attribute and replace existing plugin call

The lockscreen is solely controlled by the deviced itself, not by any of
plugins. Therefore the lockscreen getter doesn't need to call plugin
api for asking lockscreen state. Rather, display resource driver should
manage the lockscreen state, offering it via resource-manager getter to
plugins.

Change-Id: I9b956294f8e577925044cc837e1279eb843b685d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Use plugin-api on detecting setting value update 60/312860/1
Youngjae Cho [Wed, 5 Jun 2024 06:55:19 +0000 (15:55 +0900)]
display: Use plugin-api on detecting setting value update

Plugin can now receive occurance of setting value change via plugin
interface operation, on_changed_setting_value(), so the plugin can
hook the event and handle it based on its own policy. If the plugin
haven't implemented the operation, deviced handle it in a default way.

Change-Id: I3bc4b3bd3fe35a78b2c29a9603f3040b103e0c99
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agodisplay: Remove unused plugin handle 59/312859/1
Youngjae Cho [Wed, 5 Jun 2024 04:39:10 +0000 (13:39 +0900)]
display: Remove unused plugin handle

Change-Id: I060ef5c9fe29da23865c9e2bbdffee75c56b4f19
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
11 months agosyscommon-plugin-test: Add plugin display module test code 57/312857/1
Yunhee Seo [Wed, 5 Jun 2024 01:01:24 +0000 (10:01 +0900)]
syscommon-plugin-test: Add plugin display module test code

To test plugin backend display functions, test code is added.

Change-Id: I4b9950df731974df42a44817b51e96d1a12d5ce0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agosyscommon-plugin-test: Add plugin battery module test code 56/312856/1
Yunhee Seo [Mon, 3 Jun 2024 10:11:14 +0000 (19:11 +0900)]
syscommon-plugin-test: Add plugin battery module test code

From the tizen 8.0 image, plugins could be separated into plugin-backend
through libsyscommon plugin api and interface implementation.
However, there was no place where the plugin backend module was installed and used,
so it was unable to test it.
Therefore, test code is added that can test the installed plugin backend
regardless of the type of plugin backend and feature support.
If there is a plugin backend module .so file, you can test the module function
with gtest unit.

Also, there are still many plugin functions that have not been separated,
but it will be helpful with this test code.

Change-Id: Iddf34a0074dfbe42a076f47636949a33217792d6
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: Remove battery module from mobile plugin 54/312854/1
Yunhee Seo [Fri, 31 May 2024 08:11:26 +0000 (17:11 +0900)]
plugin: Remove battery module from mobile plugin

The existing deviced plugin battery module was highly dependent on the battery inside the deviced(core)
and used the function, data structures directly, which effectively faded the
meaning of the plugin.

By completely moving the code to mobile profile plugin backend git and
removing the build dependency, it became possible to delete the
corresponding plugin's battery module.

Since there is no need for the remaining code to exist in the deviced git anymore,
battery module in mobile plugin is deleted.

Change-Id: I1b1d98ecc9434dd0891c8a9ebead870b2a9e3d4e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: battery: Replace battery function to syscommon resource driver call 53/312853/1
Yunhee Seo [Fri, 31 May 2024 04:02:59 +0000 (13:02 +0900)]
plugin: battery: Replace battery function to syscommon resource driver call

Before move plugin code to mobile plugin backend side, all functions
that depend on deviced must be replaced with syscommon resource driver function.
By removing the dependency, plugin code in deviced can be transferred to plugin backend.

Change-Id: I8b7e6c585ee400a10b54a9e00f51c1a9323b24bf
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agodisplay: Add attribute for setting display state with option 52/312852/1
Yunhee Seo [Thu, 30 May 2024 12:44:41 +0000 (21:44 +0900)]
display: Add attribute for setting display state with option

New attribute:
 - id: DEVICED_DISPLAY_ATTR_TUPLE2_CURRENT_STATE_WITH_OPTION
 - type: SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64
 - setter: O
 - getter: X
 - 1st param: enum deviced_event
 - 2nd param: enum syscommon_deviced_display_state

New attribute:
 - id: DEVICED_DISPLAY_ATTR_TUPLE4_LOCK_WITH_OPTION
 - type: SYSCOMMON_RESMAN_DATA_TYPE_4_UINT64
 - setter: O
 - getter: X
 - 1st param: enum deviced_event
 - 2nd param: enum syscommon_deviced_display_state
 - 3rd param: display state flag (Macro starts with DEVICED_DISPLAY_STATE_*)
 - 4th param: timeout

New attribute:
 - id: DEVICED_DISPLAY_ATTR_TUPLE3_UNLOCK_WITH_OPTION
 - type: SYSCOMMON_RESMAN_DATA_TYPE_3_UINT64
 - setter: O
 - getter: X
 - 1st param: enum deviced_event
 - 2nd param: enum syscommon_deviced_display_state
 - 3rd param: display lock flag (Macro starts with DEVICED_LOCK_*)

When the display state or display lock changing, some options are needed like below
- time for locking or display state changing, triggered pid, lcd state, etc.
To support above function, new attributes are added.

Change-Id: Ifd2ef9ef33a0a3197d3ef5eb35a3e8a73c512844
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agobattery: Add attribute for handling abnormal battery health 51/312851/1
Yunhee Seo [Thu, 30 May 2024 07:37:32 +0000 (16:37 +0900)]
battery: Add attribute for handling abnormal battery health

New attribute:
 - id: DEVICED_BATTERY_ATTR_BOOL_DO_NOT_DISTURB
 - type: SYSCOMMON_RESMAN_DATA_TYPE_BOOLEAN
 - setter: X
 - getter: O

New attribute:
 - id: DEVICED_BATTERY_ATTR_INT_LOW_BATTERY_POPUP
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: X
 - 1st param: enum syscommon_deviced_battery_option_type

In order to handle abnormal battery health status, above battery attributes are needed.
To support above attribute getter/setter,
enum battery_option_type is replaced by enum syscommon_deviced_battery_option_type from libsyscommon.

Change-Id: I604e478e6c530dc55f1f287196cf31f2da024762
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agobattery: Add attribute getter for battery health status 50/312850/1
Yunhee Seo [Wed, 29 May 2024 01:08:28 +0000 (10:08 +0900)]
battery: Add attribute getter for battery health status

New attribute:
 - id: DEVICED_BATTERY_ATTR_INT_STATUS_HEALTH
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: X
 - getter: O

New attribute:
 - id: DEVICED_BATTERY_ATTR_STRING_STATUS_HEALTH
 - type: SYSCOMMON_RESMAN_DATA_TYPE_STRING
 - setter: X
 - getter: O

To support above attributes getter, below functions are added.
- int power_supply_get_battery_status_health(int *battery_health);
- int power_supply_get_battery_status_health_string(char **battery_health_s);

In below description, "core" means deviced battery module side.

Before deviding mobile plugin battery module, battery resource driver is needed.
Because struct battery_status was used directly receiving and using the address
of the structure in the core battery module.
However, above method of used is very dependent on the deviced
and is not a desirable method, struct pointer should be removed from plugin side.
Through battery resource driver, plugin can use core side battery attributes without dependency.
In order to add these attributes, new file resource-battery.c is added.
As applying this, enumeration for health_type is moved to libsyscommon
for common usage between plugins and core side.

Change-Id: Id7a897564a5b32c45a05f9056434a75fd27cf59c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoplugin: mobile: battery: Remove check_power_supply_noti() from mobile plugin 49/312849/1
Yunhee Seo [Thu, 23 May 2024 06:41:44 +0000 (15:41 +0900)]
plugin: mobile: battery: Remove check_power_supply_noti() from mobile plugin

check_power_supply_noti() decides whether to notify battery full or not.
Previously, while separating the plugin,
the deletion part was inevitably reflected late due to the work sequence.
However, since the plugin-backend/deviced-mobile separation worked well,
and there is no need for it to exist in deviced project any longer,
deleting it is appropriate.

However, since this function exists in the wearable, function pointer initialization is only deleted from the mobile plugin.
And that part is replaced with a syscommon_plugin_deviced_battery_is_possible_to_notify_battery_full().
It calls plugin-backend/deviced-mobile function.

In order to delete the dependency on mobile plugins, this deletion is necessary.

Change-Id: I3edfef59f3c42285c50b603fdbd9b8b068f22902
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months agoAdd display.conf installation 29/312729/1 accepted/tizen/unified/20240618.010127 accepted/tizen/unified/x/20240618.033404
Yunhee Seo [Thu, 13 Jun 2024 08:32:47 +0000 (17:32 +0900)]
Add display.conf installation

As iot-headed profile was deleted, there was no default display configuration file installed.
In order to support basic display configuration in the headed profile,
this is necessary.

Change-Id: I09763d01b2a981539e91849006fbedbe209b49f7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months agoAdd setter/getter tool for upgrade state 67/312267/1 accepted/tizen/unified/20240614.084923 accepted/tizen/unified/x/20240614.160531
SangYoun Kwak [Wed, 5 Jun 2024 07:48:33 +0000 (16:48 +0900)]
Add setter/getter tool for upgrade state

To make upgrade state settable and gettable, corresponding tools are
added:
 * device_board_get_upgrade_state
 * device_board_set_upgrade_state

Since the names "upgrade status" and "upgrade state" are similar,
to distinguish them, "upgrade status" is renamed as
"upgrade progress status".

Change-Id: Ia25aac24c1c48e375f152b1a8d999ecc1b95ed0a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agobattery: Relocate remove_health_popup() from mobile plugin 52/311852/1
Yunhee Seo [Wed, 29 May 2024 03:55:57 +0000 (12:55 +0900)]
battery: Relocate remove_health_popup() from mobile plugin

*In this description, "core" refers to the deviced module below src.

Move function remove_health_popup from mobile plugin to core battery module.

When the battery health status is abnormal, core battery module reuqests launching popup.
The location where it requests to add or remove pop-ups is different.
Actually, battery health management responsibility should be moved to core battery module.
Because overall battery health is manged in core battery moudle not mobile plugin.
Also, remove_health_popup() is used only power-supply in core battery module.

As explained above, it can be seen that shotgun surgery and feature envy code smells
from the remove_health_popup().

Delete the function from the mobile plguin battery module and move it to
the deviced core battery module.

Change-Id: I8ec91780e2b36cf4dee158b126ed94ed24da4371
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
12 months agodisplay: Add getter for lock count and signal on count changed 39/311639/1
Youngjae Cho [Thu, 23 May 2024 02:38:20 +0000 (11:38 +0900)]
display: Add getter for lock count and signal on count changed

The dbus method "PmlockGetLockCount" has been added to get lock count.
And the dbus signal "PowerLockCountChanged" has also been added for
broadcasting on every display lock/unlock. The existing method
"PmlockGetLockState" and signal "PowerLockCountChanged" only say in
'locked' or 'unlocked', however, the "PmLockGetLockCount" and
"PowerLockCountChanged" respond in number.

Change-Id: Ia5aeedd0693ffc0142d3695fcab864d84fd6ad42
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
13 months agodisplay: Add exclusive dim timeout 67/309867/5
Youngjae Cho [Wed, 17 Apr 2024 12:03:55 +0000 (21:03 +0900)]
display: Add exclusive dim timeout

Timeout for dim had always been derived from screen timeout in a ratio
LCD_DIM_TIMEOUT, which is 30% of total screen timeout, naturally in
turn, the remaining 70% is given to normal timeout.

Introduced a new timeout, exclusive dim timeout, that fixes dim timeout
by itself. It is -1 by default, meaning disabled. If it is nonnegative
value, dim timeout is fixed to the value regardless of the screen timeout.
In such case, as dim timeout doesn't share screen timeout, normal timeout
consumes the entire screen timeout as a result.

The exclusive dim timeout is controlled by vconf 'db/setting/timeout_dim'
and it takes time in second.

For example,
 1. db/setting/lcd_backlight_normal = 15
    db/setting/timeout_dim = -1
     => Normal(10.5s) + Dim(4.5s)
    : Work as before. The screen timeout is splitted into 7:3,
      normal state consumes 10.5s and dim state 4.5s.

 2. db/setting/lcd_backlight_normal = 15
    db/setting/timeout_dim = 5
     => Normal(15s) + Dim(5s)
    : The exclusive dim timeout is 5s. The screen timeout, 15s, is not
      given to dim state. Therefore normal state solely consumes the
      entire 15s. After consuming up its 15s, it changes state to dim
      and the dim starts consuming its exclusive timeout, 5s.

 3. db/setting/lcd_backlight_normal = 15
    db/setting/timeout_dim = 0
     => Normal(15s) + Dim(0s)
    : Same as above except that the exclusive dim timeout is 0s.
      It effectively skips dim state.

Change-Id: Id345c7a8cae21c3dd56208185109ee738dccd909
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
13 months agoextcon: Change the variable name in hal_device_external_connection_info_s structure 34/310434/1
Yunhee Seo [Mon, 29 Apr 2024 02:49:38 +0000 (11:49 +0900)]
extcon: Change the variable name in hal_device_external_connection_info_s structure

As name variable changed to device_type in hal_device_external_connection_info_s structure,
also deviced usage code is changed.
"name" -> "device_type".

Change-Id: I383bc695e4274ecbbfb3a05d4778ef66d4368ede
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoexternal_conneciton: Replace macro external connection device type to hal_device_exte... 60/310160/4
Yunhee Seo [Tue, 23 Apr 2024 08:07:02 +0000 (17:07 +0900)]
external_conneciton: Replace macro external connection device type to hal_device_external_connection_device_type_e

External connection type is used from hal-backend and platform side.
Thus duplicated macro definitions are unnecessary in deviced.
As external connection device type macros are replaced by hal_device_external_connection_device_type_e,
duplicated macro is removed.
Existing macros are changed to above enum type and it can be get by
hal_device_external_connection_get_device_name() funcs.

Change-Id: Id49823af3c4ecebd7985407af41d144a0b905acf
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Replace macro power source definitions to hal_device_battery_power_source_type_e 04/310104/7
Yunhee Seo [Mon, 22 Apr 2024 11:55:57 +0000 (20:55 +0900)]
battery: Replace macro power source definitions to hal_device_battery_power_source_type_e

As Power source type macros are replaced by hal_device_battery_power_source_type_e,
definition usage logic also changed.
To get hal_device_battery_power_source_type_e string,
hal_device_battery_power_get_name_of_power_source_type_e is used.

Change-Id: I281d61756019ffb2c11e4e6cca87d8591fd19215
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agotouchscreen: Apply hal-api-device-touchscreen module HAL ABI versioning 18/310018/1
Yunhee Seo [Fri, 19 Apr 2024 07:30:24 +0000 (16:30 +0900)]
touchscreen: Apply hal-api-device-touchscreen module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-touchscreen module,
inclusion path and data definition is changed.

Change-Id: Ic106b8874728d4c2964707d5f5b7e00ec8bc3f4d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agopower: Apply hal-api-device-power module HAL ABI versioning 15/310015/1
Yunhee Seo [Fri, 19 Apr 2024 06:34:29 +0000 (15:34 +0900)]
power: Apply hal-api-device-power module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-power module,
data definition is changed in native API style.

Change-Id: I85890513217a52c926d81fe2c540743c02220bb6
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoled: Apply hal-api-device-led module HAL ABI versioning 06/310006/1
Yunhee Seo [Fri, 19 Apr 2024 05:54:38 +0000 (14:54 +0900)]
led: Apply hal-api-device-led module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-led module,
inclusion path is changed.

Change-Id: Ia6f10aa76bc9954c67da338a57b5ba8cfb10671b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agothermal: Apply hal-api-device-thermal module HAL ABI versioning 92/309992/1
Yunhee Seo [Fri, 19 Apr 2024 04:22:42 +0000 (13:22 +0900)]
thermal: Apply hal-api-device-thermal module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-thermal module,
inclusion path is changed.

Change-Id: I60c87223145a258dda7736f41b52d1aedb81ccef
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoir: Apply hal-api-device-ir module HAL ABI versioning 64/309964/2
Yunhee Seo [Thu, 18 Apr 2024 10:49:01 +0000 (19:49 +0900)]
ir: Apply hal-api-device-ir module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-ir module,
inclusion path is changed.

Change-Id: I13117bac311baa5a37a8c202d9c2f5c5ee2a07ab
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoextcon: Apply hal-api-device-external_connection module HAL ABI versioning 46/309946/1
Yunhee Seo [Thu, 18 Apr 2024 08:26:48 +0000 (17:26 +0900)]
extcon: Apply hal-api-device-external_connection module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-external_connection module,
inclusion path and data types are changed.

Change-Id: I542492ceb514eba94ba7b7bfe3a5b38d00888a41
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobezel: Apply hal-api-device-bezel module HAL ABI versioning 45/309945/1
Yunhee Seo [Thu, 18 Apr 2024 06:16:22 +0000 (15:16 +0900)]
bezel: Apply hal-api-device-bezel module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-bezel module,
inclusion path and data types are changed.

Change-Id: I8098b7fca2b71137ba134bcc9b49884aab88a2f7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agobattery: Apply hal-api-device-battery module HAL ABI versioning 44/309744/1
Yunhee Seo [Tue, 16 Apr 2024 07:27:30 +0000 (16:27 +0900)]
battery: Apply hal-api-device-battery module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-battery module,
inclusion path and data types are changed.

Change-Id: Iae9acfbee1bc1c5cf54a3e8f9a60f54638e7dbfd
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Apply hal-api-device-board module HAL ABI versioning 65/309365/1
Yunhee Seo [Tue, 9 Apr 2024 06:50:07 +0000 (15:50 +0900)]
board: Apply hal-api-device-board module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-board module,
inclusion path is changed.

Change-Id: I4d5379f55eaa6ef225040019a552d7fa5158e8a9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoChange hal-api-device module header file inclusion path 63/309263/2
Yunhee Seo [Mon, 8 Apr 2024 05:06:40 +0000 (14:06 +0900)]
Change hal-api-device module header file inclusion path

As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.

Change-Id: I4b0f8ad5c3630be545d43bdb2808b017feaaaeba
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Apply hal-api-device-display module HAL ABI versioning 09/308909/1
Yunhee Seo [Tue, 2 Apr 2024 12:38:38 +0000 (21:38 +0900)]
display: Apply hal-api-device-display module HAL ABI versioning

As HAL ABI versioning is applied to hal-api-device-display module,
enum structure is chaned to native API style from hal-api-device.

1. As hal module file name is changed, include path is changed.
2. Replace enum type and value definitions to avoid build and behavior issues.

Change-Id: Ie882b459ce574b804747d23fe6e2679e2dab7c8a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoAdd plugins to deviced ISU configuration 73/308073/1 accepted/tizen/unified/20240321.160008 accepted/tizen/unified/x/20240326.073714
Adam Michalski [Fri, 15 Mar 2024 11:12:47 +0000 (12:12 +0100)]
Add plugins to deviced ISU configuration

Additionally it adds rndis.service to ISU configuration.

Change-Id: Iba93315f929bf68b96df2e51d8918f26e3ffd827

16 months agopower: Remove duplicate operation 04/304604/1 accepted/tizen/unified/20240125.112702 accepted/tizen/unified/toolchain/20240311.065538 accepted/tizen/unified/x/20240205.064119
youngjae [Thu, 18 May 2023 02:52:13 +0000 (11:52 +0900)]
power: Remove duplicate operation

Change-Id: I00ebd2f5883dc4aec26146cdfd99e66caebaa221
Signed-off-by: youngjae <y0.cho@samsung.com>
17 months agodisplay: Add pmlock type and power lock type conversion 51/303951/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240109.155345 accepted/tizen/unified/riscv/20240110.014519
Yunhee Seo [Mon, 8 Jan 2024 08:18:13 +0000 (17:18 +0900)]
display: Add pmlock type and power lock type conversion

When the emit power lock state signal, it was omitted pmlock and power lock conversion from deviced.
For accurate signal emitting, this is necessary.

Change-Id: I59dc9eab4001812d86e76b4cc325ab3f8c9ba777
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
18 months agoFixing 100% CPU load after first mouse move 81/302181/1 accepted/tizen/unified/20231213.162130 accepted/tizen/unified/riscv/20231214.010020
Daniil Ruban [Fri, 1 Dec 2023 12:16:22 +0000 (13:16 +0100)]
Fixing 100% CPU load after first mouse move

The issue could be found in `input_callback`. Due to not proper
initialization of `input_event_handler_list` `input_callback` just
exits before read the incoming `libinput` event (ie call `libinput_dispatch`).
So these events are collected and lead to memeory/cpu-load leak.
Because the same event will try to call the callback while it will not be
'dispatched'

Change-Id: I3ad336faba40e88caaba988c1e9c0efdc8906823
Signed-off-by: Daniil Ruban <intx82@gmail.com>
19 months agobattery: Remove low battery state notifying 18/301218/1 accepted/tizen/unified/20231122.172543
Yunhee Seo [Tue, 17 Oct 2023 07:40:41 +0000 (16:40 +0900)]
battery: Remove low battery state notifying

Below dbus method is removed from commit 55a6ef08adcc1e75439d31cbdd9d4dce72fabe7d.
METHOD_LOW_NOTI_ON          "BatteryLowNotiOn"
METHOD_LOW_NOTI_UPDATE      "BatteryLowNotiUpdate"
METHOD_LOW_NOTI_OFF         "BatteryLowNotiOff"
METHOD_CRITICAL_NOTI_ON     "BatteryCriticalNotiOn"
METHOD_CRITICAL_NOTI_UPDATE "BatteryCriticalNotiUpdate"
METHOD_CRITICAL_NOTI_OFF    "BatteryCriticalNotiOff"

After removed that dbus methods from system-popup, deviced code was not removed.
It is calling functions that does not exist.
Thus, meaningless dbus method calls are removed.

Change-Id: I8a1de226ca9e644e0786d8140d1013a7173dc77c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
19 months agobattery: Remove update_ovp() from plugins 17/301217/1
Yunhee Seo [Tue, 17 Oct 2023 06:42:54 +0000 (15:42 +0900)]
battery: Remove update_ovp() from plugins

update_ovp() is plugin policy function and it is called
when the battery health state changed to HEALTH_OVP.
However, there is no handling codes for battery health OVP state.
1. There is no subscription code and callback for DEVICED_NOTIFIER_BATTERY_OVP
2. update_ovp() only changes meaningless display state without policy.
Thus, meaningless update_ovp() logic is removed from plugins and replaced by syscommon plugin function.

Change-Id: I0130611e24a201199b4a4f11a986f074b699112c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
19 months agobattery: Move changed_battery_cf() from plugin to core 16/301216/1
Yunhee Seo [Wed, 6 Sep 2023 07:36:49 +0000 (16:36 +0900)]
battery: Move changed_battery_cf() from plugin to core

changed_battery_cf() was used to notify with system popup
when the battery is disconnected.
Notifying battery connection status is a general function.
Thus, move changed_battery_cf() to the core battery module
and name is replaced by inform_changed_battery_connection().

Change-Id: I17ccd437be55551f8501606dbe50ddf4461d688d
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
19 months agopower: Add setter for controlling doze source 96/299996/8 accepted/tizen/unified/20231115.024830
Youngjae Cho [Fri, 13 Oct 2023 09:10:51 +0000 (18:10 +0900)]
power: Add setter for controlling doze source

 Doze is going to replace the event-lock, that is, short-living power
lock. The purpose of doze is for keeping user applications in sleep
while the underneath system is awake, doing something for a moment. In
other words, it can be utilized for short wakeup without notifying it
to the whole applications, especially for jobs related to the real-time
clock. The system stays awake when there is at least a doze source.
 Currently, only two type of doze sources are allowed, power key and
bluetooth key. Those key presses should measure their time lapse with
real-time clock for testing longkey so the system must be awake at
that moment.

Change-Id: I91bdf11e34d18c170deb5d2c4a6a67e7e9565371
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
19 months agotests: Suppress deprecation warning of usbhost 06/301006/1
Youngjae Cho [Tue, 7 Nov 2023 03:56:38 +0000 (12:56 +0900)]
tests: Suppress deprecation warning of usbhost

It suppresses warning:
usb-host-ffs-test-daemon/descs_gen.c:43:9: warning:
 'usb_functionfs_descs_head' is deprecated [-Wdeprecated-declarations]

As of the 3.14, the struct has been deprecated.

Change-Id: I90c2061c810029ba866b703d3eba7727eb993035
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
19 months agocore: Add resource-core 23/299923/7
Youngjae Cho [Wed, 11 Oct 2023 10:57:15 +0000 (19:57 +0900)]
core: Add resource-core

It has only one attribute, DEVICED_CORE_ATTR_INT_DELAYED_INIT_DONE,
which denotes delayed_init_done. It will replace device-notifier of
DEVICED_NOTIFIER_DELAYED_INIT with resource-manager.

Change-Id: Ifb60bd20cc36704db16460460a24475cc739f6de
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
19 months agopower: Add setter for DEVICED_POWER_ATTR_INT_VITAL_MODE 22/299922/6
Youngjae Cho [Thu, 12 Oct 2023 02:30:09 +0000 (11:30 +0900)]
power: Add setter for DEVICED_POWER_ATTR_INT_VITAL_MODE

Instead of notitfying DEVICED_NOTIFIER_VITAL_STATE, it directly sets
power attribute DEVICED_POWER_ATTR_INT_VITAL_MODE to change vital state.

Change-Id: I9ab5ff6101f38fb3cba3be2606306b46e5d0dce6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
19 months agodisplay: Fix display actor getter/setter correctly 48/300048/3
Youngjae Cho [Mon, 16 Oct 2023 06:24:47 +0000 (15:24 +0900)]
display: Fix display actor getter/setter correctly

Getter for DEVICED_DISPLAY_ATTR_UINT64_ACTOR_CAPABILITY
 is now correctly returns capability.
Setter for DEVICED_DISPLAY_ATTR_TUPLE3_ACTOR_CAPABILITY
 is now correctly allocates actor->id.

Change-Id: I67773d32f154b7e499c18fd29de91f3e90054dbc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
19 months agousb-host: Filter out abnormal devpath 71/300771/1 accepted/tizen/unified/20231107.172852
Youngjae Cho [Tue, 31 Oct 2023 02:21:33 +0000 (11:21 +0900)]
usb-host: Filter out abnormal devpath

Sometimes the devpath gets empty string. It is not sure, but the deviced
seems to get blocked in such case, reading the parent's product/serial
node. It leads watchdog timeout, and the deviced gets SIGABRT from the
systemd. It is not clear that the empty devpath results it though, add
guard clauses for filtering out such an abnormal devpath.

 (gdb) bt
 #0  __libc_read (nbytes=4097, buf=0xaba70f28, fd=-1415114968)
     at ../sysdeps/unix/sysv/linux/read.c:26

 #1  __libc_read (fd=fd@entry=28, buf=buf@entry=0xaba70f28,
     nbytes=nbytes@entry=4097) at ../sysdeps/unix/sysv/linux/read.c:24

 #2  0xf76289a2 in read (__nbytes=4097, __buf=0xaba70f28, __fd=28)
     at /usr/include/bits/unistd.h:44

 #3  read_full_virtual_file (filename=<optimized out>, ret_contents=0xffd180ec,
     ret_size=0xffd180f4) at ../src/basic/fileio.c:371

 #4  0xf7626608 in sd_device_get_sysattr_value (device=0xaba084f8,
     sysattr=0xaaefe36c "product", _value=0xffd181b0)
     at ../src/libsystemd/sd-device/sd-device.c:1789

 #5  0xf761c92e in udev_device_get_sysattr_value (
     udev_device=udev_device@entry=0xaba2c060, sysattr=<optimized out>)
     at ../src/libudev/libudev-device.c:741

 #6  0xaaeec55c in add_usbhost_list (dev=dev@entry=0xab9fc4e0,
     devpath=devpath@entry=0xaba3d984 "")
     at /usr/src/debug/deviced-10.0.0-1.arm/src/usb-host/usb-host.c:236

Change-Id: Ib1fec597f632ce705706be05cd1f233226a0de32
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
21 months agoconf: org.tizen.system/deviced.conf: Add dbus policy for input interface 44/298744/1 accepted/tizen/8.0/unified/20231005.093737 accepted/tizen/unified/20230914.100408 tizen_8.0_m2_release
Chanwoo Choi [Wed, 13 Sep 2023 05:45:57 +0000 (14:45 +0900)]
conf: org.tizen.system/deviced.conf: Add dbus policy for input interface

Add dbus policy of org.tizen.system.deviced.input
to allow user to use input interface.

Change-Id: I1135724bfe01f21ac1d33b35033efa3256d10eda
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
21 months agodisplay: power: Remove _GET_/_SET_ from attribute name 87/298587/1 accepted/tizen/unified/20230913.091608
Youngjae Cho [Mon, 11 Sep 2023 05:29:46 +0000 (14:29 +0900)]
display: power: Remove _GET_/_SET_ from attribute name

Change-Id: I95120bbde33c91c2506b10601e1c690e41947037
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
21 months agodisplay: power: Fix attribute type of multiple data 86/298586/1
Youngjae Cho [Wed, 6 Sep 2023 08:00:33 +0000 (17:00 +0900)]
display: power: Fix attribute type of multiple data

SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64
 -> SYSCOMMON_RESMAN_DATA_TYPE_2_UINT64

SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64_UINT64
 -> SYSCOMMON_RESMAN_DATA_TYPE_3_UINT64

SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64_UINT64_UINT64
 -> SYSCOMMON_RESMAN_DATA_TYPE_4_UINT64

Change-Id: Idf402a6d7a0415e83575d018de728d429c3d325f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
21 months agopackaging: Remove deviced-isu package requirement 31/298431/1 accepted/tizen/unified/20230908.185258
Chanwoo Choi [Thu, 7 Sep 2023 01:47:13 +0000 (10:47 +0900)]
packaging: Remove deviced-isu package requirement

deviced-isu package should be required in builing-blocks
to be included in snapshot image.

Change-Id: Ie6e86f0841aefb0cf0e83497b0ef625f864098c6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
21 months agoFix ISU deviced.service 84/296584/6 accepted/tizen/unified/20230907.055340
Mateusz Moscicki [Mon, 31 Jul 2023 12:59:26 +0000 (14:59 +0200)]
Fix ISU deviced.service

Deviced cannot be run in the sandbox (in a different mount namespace)
because for USB gadget purposes it mounts FunctionFS, which is that case
is not visible outside this sandbox.

Change-Id: I761d72573d884827f1fbc742883a0e26b3312706

21 months agoconf: Remove unused headless configuration 03/297903/1
Chanwoo Choi [Mon, 28 Aug 2023 09:19:55 +0000 (18:19 +0900)]
conf: Remove unused headless configuration

Change-Id: Ib9dc254d73cd4c22fdcef61bd1e2ed13034792af
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>