platform/core/system/plugin/deviced-headless.git
7 months agodisplay: Add display.conf for headless profile 85/319085/2 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.234519 accepted/tizen/unified/20241017.114743 accepted/tizen/unified/toolchain/20241022.122726 accepted/tizen/unified/toolchain/20241022.123122 accepted/tizen/unified/x/20241017.170423 accepted/tizen/unified/x/asan/20241022.113614 tizen_9.0_m2_release
Yunhee Seo [Tue, 15 Oct 2024 02:12:30 +0000 (11:12 +0900)]
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 <yuni.seo@samsung.com>
13 months agodeviced-input: Add a handling case for memory allocation failure 35/310435/2 accepted/tizen_unified_dev accepted/tizen/unified/20240502.105909 accepted/tizen/unified/dev/20240620.000236 accepted/tizen/unified/toolchain/20240507.011900 accepted/tizen/unified/x/20240503.091210 accepted/tizen/unified/x/asan/20240625.093052
Yunhee Seo [Mon, 29 Apr 2024 02:11:55 +0000 (11:11 +0900)]
deviced-input: Add a handling case for memory allocation failure

While parsing input event conf file, memory callocaion can fails.
However, free handling code was omitted in the allocation failed case.
To prevent memory leak, this is necessary.

Change-Id: I658cba460e487f66fa861c42803b05090d268ba7
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoinput: Add mapping table for converting keycode string into value 03/309603/1 accepted/tizen/unified/20240424.162644 accepted/tizen/unified/x/20240425.051151
Yunhee Seo [Fri, 12 Apr 2024 10:37:17 +0000 (19:37 +0900)]
input: Add mapping table for converting keycode string into value

Intuitively, to use the keycode of key/button definitions provided by
linux/input.h, deviced provides key_infos array.

key/button information is treated as a string and a number pair in key_infos array.
Those information will be handled in GHashTable.
While input.conf file is parsed, below structure is used
to pass GHashTable pointer.
struct input_parse_event_action {
struct input_event_unit *ieu;
GHashTable *hash_table_key_infos;
};

Rather than defining the keycode by itself, it is clearly unified into
the key/button definitions defined in linux/input.h
By doing this, the definition of keycode will not be changed or
their meanings mixed up.

Thus, existing below config definition will not be supported.
ex) keycode=power
    keycode=bluetooth

It should be defined like below.
ex) keycode=KEY_POWER
    keycode=KEY_BLUETOOTH

Detailed explanation is added to input conf file.
Also, please refer key_infos array or definitions in linux/input.h

Change-Id: I845c38046cfbd90596633e74e5e82e74340e1849
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
15 months agoRemove deprecated abi_version 36/307936/1 accepted/tizen/unified/20240318.071342 accepted/tizen/unified/x/20240319.055650
Chanwoo Choi [Thu, 14 Mar 2024 10:48:01 +0000 (19:48 +0900)]
Remove deprecated abi_version

Change-Id: Ie8ea057ab6417058a4b579a79ac0e2be435b471b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
21 months agoinput: Remove _GET_/_SET_ from attribute name 29/298629/1 accepted/tizen/8.0/unified/20231005.093830 accepted/tizen/unified/20230913.091615 tizen_8.0_m2_release
Youngjae Cho [Tue, 12 Sep 2023 02:19:10 +0000 (11:19 +0900)]
input: Remove _GET_/_SET_ from attribute name

Change-Id: Id9166369f3c2de81c7a5c9b4145ef35d1b98826c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
21 months agoinput: Fix strndup() size 43/297943/4 accepted/tizen_unified_riscv accepted/tizen/unified/riscv/20230829.104547
Youngjae Cho [Tue, 29 Aug 2023 04:14:08 +0000 (13:14 +0900)]
input: Fix strndup() size

The gcc-13 blame that the size of strndup() could exceed the source
size 64. Fix it to be confined to the source size.

Change-Id: I4eb3ce030ad5ed949d0175f7ea00229cc1419f82
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
21 months agoinput: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend 15/297415/4 accepted/tizen/unified/20230821.162249
Chanwoo Choi [Fri, 18 Aug 2023 02:31:16 +0000 (11:31 +0900)]
input: Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend

Add SYSCOMMON_PLUGIN_MODULE_DEVICED_INPUT plugin-backend
for headless profile.

[Detailed description]
- package name :system-plugin-backend-deviced-headless-*.rpm
- files in package as following:
├── etc
│   └── deviced
│       ├── input.conf
│       └── power.conf
└── usr
    ├── bin
    │   └── rndis.sh
    ├── lib
    │   └── systemd
    │       └── system
    │           └── rndis.service
    ├── lib64
    │   └── system
    │       └── plugin
    │           └── libplugin-backend-deviced-input.so
    └── share
        └── licenses
            └── system-plugin-backend-deviced-headless
                └── LICENSE.Apache-2.0

Change-Id: If7f8d589e6b8693c2685d3a1d418b67111ca9a04
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2 years agoInitial empty repository
Tizen Infrastructure [Thu, 20 Apr 2023 02:35:08 +0000 (02:35 +0000)]
Initial empty repository