Taeyoung Kim [Mon, 28 Dec 2015 04:18:35 +0000 (20:18 -0800)]
Merge "extcon: remove return value in the function whose return type is void" into tizen
Taeyoung Kim [Mon, 28 Dec 2015 04:18:30 +0000 (20:18 -0800)]
Merge "common: fix unreachable codes" into tizen
Taeyoung Kim [Thu, 24 Dec 2015 05:24:22 +0000 (14:24 +0900)]
extcon: remove return value in the function whose return type is void
- This is a bug, and warning message is occurred during build
Change-Id: I7976393cf2f48561eccdf125d4d80651ef6258e9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Thu, 24 Dec 2015 05:10:06 +0000 (21:10 -0800)]
Merge "block: Add and Broadcast signal before unmount device" into tizen
Taeyoung Kim [Thu, 24 Dec 2015 04:51:17 +0000 (13:51 +0900)]
common: fix unreachable codes
- Unreachable codes are not used and thus
they should be fixed
Change-Id: I87f3498967a404394aef1e7ab861ba8d2cc38c2d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Wed, 23 Dec 2015 07:32:18 +0000 (16:32 +0900)]
block: Add and Broadcast signal before unmount device
Change-Id: I24212935911a17a7ff78df6b49873c87005191a8
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Wed, 23 Dec 2015 07:14:14 +0000 (16:14 +0900)]
display: add config file for TV profile
- 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>
Taeyoung Kim [Wed, 23 Dec 2015 02:42:52 +0000 (18:42 -0800)]
Merge "Fix minor error" into tizen
Taeyoung Kim [Tue, 22 Dec 2015 10:48:32 +0000 (02:48 -0800)]
Merge "display: support display module even if display HAL is not supported" into tizen
pr.jung [Tue, 22 Dec 2015 09:18:15 +0000 (18:18 +0900)]
Fix minor error
- fd can be negative value in error case.
- Need to break in switch case.
Change-Id: I06a33b80f0f028d5854adb5208c9242bc504d942
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Mon, 21 Dec 2015 08:27:24 +0000 (17:27 +0900)]
display: support display module even if display HAL is not supported
- Display HAL cannot be supported at TV profile. Thus error handling
is fixed to normal operation
Change-Id: I20437784dc6680c6492befc01834c2aa6582c410
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 17 Dec 2015 11:42:42 +0000 (20:42 +0900)]
extcon: HAL is applied
- TM1 target does not use extcon subsystem of kernel.
It uses switch subsystem its own. This is not the
standard, and thus HAL is required
Change-Id: Ie1351ef24cf66885cab3a84abdd25766ae9f48a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 17 Dec 2015 01:27:04 +0000 (10:27 +0900)]
usb: enable mtp for TM1 target.
- mtp gadget should be enabled to use mtp services.
- mtp-responder will communicate with host PC and show
the contents in the target
Change-Id: I33912cdf31326f67961d51b6ab69393324c9ebce
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Tue, 15 Dec 2015 07:30:32 +0000 (23:30 -0800)]
Merge "deviced: Change dependency of zbooting-done.service." into tizen
pr.jung [Mon, 14 Dec 2015 05:32:23 +0000 (14:32 +0900)]
deviced: Change dependency of zbooting-done.service.
Because zbooting-done.service sends booting-done signal too early,
deviced couldn't receive booting-done signal.
So this commit changes the dependency of zbooting-done.service
Change-Id: I59246a92eed09656a2477f3cffb4d8d91f06eb13
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Fri, 4 Dec 2015 12:20:50 +0000 (21:20 +0900)]
touchscreen: add touchscreen module to manage touch input
- If display is turned on, touchscreen should be enabled.
And if display is turned off, touchscreen should be disabled.
to reduce power consumption. Thus touchscreen module is added.
Change-Id: Iff2cad4294ecb5aba1e2ce656b9b2a596af52191
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 9 Dec 2015 02:10:41 +0000 (11:10 +0900)]
usbhost: enable usb host module for mobile and TV profile
- Mobile and TV targets support usb host devices and thus
deviced should support usb host module.
Change-Id: Ib76e8a85bd41a29e5d8a09a97bdd988d7a983268
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 4 Dec 2015 08:15:16 +0000 (00:15 -0800)]
Merge "block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath" into tizen
Taeyoung Kim [Fri, 4 Dec 2015 08:15:09 +0000 (00:15 -0800)]
Merge "display: remove brightness popup operation" into tizen
pr.jung [Fri, 4 Dec 2015 07:43:14 +0000 (16:43 +0900)]
block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath
There is a case that syspath include SCSI_PATH,
so now deviced is changed to compare with devnode.
Change-Id: I2dc7a9621cf6ee8a0bfba144ce8b56ea228a60ac
Signed-off-by: pr.jung <pr.jung@samsung.com>
Taeyoung Kim [Fri, 4 Dec 2015 01:53:30 +0000 (10:53 +0900)]
display: remove brightness popup operation
- Brightness popup is not supported with Tizen 3.0.
Thus the codes related with communication with
the popup is removed
Change-Id: I224c56b9511a473aec593bc5c5962ab39d4eefdb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
taeyoung [Fri, 27 Nov 2015 04:38:31 +0000 (13:38 +0900)]
display: change sensor api to capi-system-sensor
- sensor api is deprecated. New sensor api is
capi-system-sensor
Change-Id: I9c074b2bade4312c96766204ac04400137c17ef5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 26 Nov 2015 13:05:36 +0000 (22:05 +0900)]
battery: add charge_status property
- charge_status is used for send system event. If charge_status
is same as previous status, system event is not delivered.
- In addition, application related codes are fixed to launch popup.
Change-Id: I0ba02703c25eed91db4198f1ef7da2c8df7ec4cd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 13:37:40 +0000 (22:37 +0900)]
power: remove unnecessary methods and add operations which should be run during power off
- The poweroff popup can be launched only powerkey longpress. Thus
the dbus method for launching popup is removed.
- Systemd journal is disabled not to remain garbage backup files
- eventsystem is used to notify power off situation
Change-Id: Icec995eec8858c8ef0b94fedbfaf56f0dee97d3e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 12:16:47 +0000 (21:16 +0900)]
earjack: send system event when earjack state is chagned
- eventsystem is common event delivery api from Tizen 2.4
Change-Id: I711883b7d18b11f8ec6af1ad45e153766114c0c8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 05:14:03 +0000 (14:14 +0900)]
common: remove unused codes
- predefine_act_plugin module is not used anymore
Change-Id: Id10287f43e2448b71302533fee6fe6bcf0a3bcc1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 02:59:43 +0000 (11:59 +0900)]
proc: remove not used operations
- VIP process is handled by resourced
- Battery related operations are not the public operations
- Thus they are removed from deviced
Change-Id: If9cf6e326b54acbd5d651534e2de5a8793b00561
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 02:32:09 +0000 (11:32 +0900)]
systemd: add dbus method calls for systemd related operation
- start and stop services are available by dbus method
Change-Id: I979c262643c85f4c92f0e6bc6d4d5eea73295973
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Nov 2015 02:09:14 +0000 (11:09 +0900)]
storage: monitor storage size available
- If storage size available is not enough to use,
warning message is shown to user
Change-Id: Ibfea8a29b18ccda7e228a1e0c8e81bb6512936ee
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 25 Nov 2015 10:11:06 +0000 (02:11 -0800)]
Merge "telephony: add tethering and flightmode handlers" into tizen
pr.jung [Fri, 20 Nov 2015 07:47:11 +0000 (16:47 +0900)]
haptic: Remove strerror, readdir usecase which are not thread-safe.
Change-Id: I99e6577fbb1ef095ad5437ca0ceeabb15b3918d4
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Fri, 20 Nov 2015 07:16:54 +0000 (16:16 +0900)]
haptic: Add function to vibrate with buffers and device handle.
- Add function to vibrate with buffers beside vibrating monotone which is already existed.
- Add device_handle.
Change-Id: I575ff6710bf3f13b2c34a898d4ec04d11495c6a1
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Mon, 23 Nov 2015 05:50:49 +0000 (14:50 +0900)]
telephony: add tethering and flightmode handlers
- tethering and flightmode should be handled for change or
restrict services for that situation.
Change-Id: Iaa5cb4a07328a16ddb6172d49b2a0eb262ce4b4a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 23 Nov 2015 07:09:10 +0000 (23:09 -0800)]
Merge "usb: enable sdb at booting time" into tizen
taeyoung [Mon, 23 Nov 2015 07:02:57 +0000 (16:02 +0900)]
usb: enable sdb at booting time
- Currently, udev rule is used to detect usb cable and
to enable sdb. However, usb cable is connected during booting,
udevd cannot receive the kernel uevent and sdb cannot
be enabled before re-connecting the usb cable. Thus
sdb is enabled during booting time.
Change-Id: I0c1bf4bb8fdc2bbf07df1b2f6fc4ba0973a64cab
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 23 Nov 2015 02:31:25 +0000 (11:31 +0900)]
tzip: enable tzip with mobile and wearable profile.
- tzip is used for installing apps without unzipping
zip files. The zip file is just mounted to a certain
directory.
Change-Id: I605bdaa888540a1d25f0dc48765e1d05be3f9f9e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 20 Nov 2015 08:57:09 +0000 (17:57 +0900)]
usb: enable sdb using udev rule
- UDC(USB Device Controller) is enabled only if usb gadget
is enabled with connected usb cable. Thus udev rule
detects usb cable connection and enables usb gadget
- TM1 target uses switch subsystem. Thus the udev rule
is related with switch subsystem.
Change-Id: Ib75620f5a9b8ea97c98a6928f59322cfe9f4edf1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 20 Nov 2015 07:39:25 +0000 (16:39 +0900)]
tzip: disable tzip until libfuse is enabled
- Currently, deviced cannot be launched since libfuse is not installed
in deviced. Thus tzip is disabled for a moment
Change-Id: I0bc8a3809eb9763d0cdf689016e4f0d4b53ceb44
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 19 Nov 2015 14:08:20 +0000 (23:08 +0900)]
usb: fix build break issue in case that sdb_prestart option is off
- All of service files are added to /usr/lib/systemd/system.
Thus unpacked file breaks build if sdb_prestart option is off.
- The issue is fixed by installing all service files always.
Change-Id: I66bd3e29192f844a6d3714929ff424253dc66622
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 19 Nov 2015 03:55:27 +0000 (12:55 +0900)]
usb: enable sdb before launching deviced
- sdb should be enabled even if deviced is not available
for debugging. Thus sdb-prestart.service is added
Change-Id: Icb73619d13eae267698332257f86041978911800
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:21:02 +0000 (22:21 -0800)]
Merge "apps: call dbus methods to launch applications" into tizen
taeyoung [Tue, 10 Nov 2015 11:15:34 +0000 (20:15 +0900)]
apps: call dbus methods to launch applications
- dbus methods are used to launch applications. This makes
that deviced does not have dependency of AUL and app-manager.
Change-Id: I617d5fbe0cdf6897a942c701f4be3d82f828cc1e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 10 Nov 2015 09:44:55 +0000 (18:44 +0900)]
tzip: add tzip module
- tzip is used to improve performance of big size package installation.
- tzip mounts zip file as a file system not to unzip which requires more time.
Change-Id: I9088aec672bad89b5e9b76cd5e01591e3943fe84
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 4 Nov 2015 05:16:57 +0000 (14:16 +0900)]
udev: add dbus methods for registering uevent handler
Change-Id: I4717cf3daed409c947813ce1dc7d7784397ccba0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 3 Nov 2015 13:53:55 +0000 (22:53 +0900)]
list: change g_list_remove_link to g_list_delete_link
- g_list_remove_link() just removes the link. Thus the node removed should be freed.
- g_list_delete_link() removes the link and frees the node.
- This change fixs a memory leak issue.
Change-Id: I7f8f1b759d90bb71e54f9b062ae4c0f7564a25d4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 3 Nov 2015 03:11:59 +0000 (12:11 +0900)]
power off: change fuser option -S to -s
- -S means printing syslog. -s means silent operation.
- When -S option is used, syslogd can occur blocking issue.
Thus -S is changed to -s
Change-Id: I6f664739b552411e1baf70069c565817a3beaaa4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 2 Nov 2015 13:32:07 +0000 (22:32 +0900)]
common: add git ignore
Change-Id: I075d94b15c64620f7cc81a036a33206c394d107c
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 2 Nov 2015 11:25:48 +0000 (20:25 +0900)]
block: add signal to contain state information
- state information:
= unmounted forcely
= file system broken
= empty file system
= not supported file system
= mounted read-only manner
Change-Id: I1c074e57a9449e83d8993ed3a46e821de3c66e17
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 2 Nov 2015 09:25:35 +0000 (18:25 +0900)]
block: add "format" and "get_device_list" dbus methods
- format method is used for formatting block devices
- get_device_list method is used for getting block device list
Change-Id: I5e364c217c194b8840ff44bb8cfd49b1d8efb6d3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 2 Nov 2015 06:42:19 +0000 (15:42 +0900)]
block: change operations using a thread per a device
- Previously, threads are used to mount/format devices,
and main thread is used for unmounting devices. This occurs
sync issues between operations on one device.
- Now one thread per one device is made for the operations
and operations for one device are handled by a queue
in the device object. Thus the sync issues are removed
Change-Id: Ie5e5f33b57b9fb2e4e1cee165f29d49a35a07052
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 26 Oct 2015 14:02:18 +0000 (23:02 +0900)]
display: add dbus methods for custom and current brightness
- Custom brightness: app defined brightness
- Current brightness: Just current brightness
Change-Id: Ic51a94a7a8020ff344672fb355968c9872f8c8ac
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 22 Oct 2015 06:06:21 +0000 (23:06 -0700)]
Merge "Hardware locked SD Card is not mounted as read only. This patch allows read only mount of external storage. (even if the device is hardware locked.)" into tizen
Kunhoon Baik [Sat, 17 Oct 2015 05:57:27 +0000 (14:57 +0900)]
Modification by centeralized memory key initialization
According to patch : https://review.tizen.org/gerrit/#/c/49646/,
For buxton memory-init key, Vconf script does not update existing memory-init keys any more
Thus, this patch removes unnecessary duplicated code for initializing memory-init keys.
Change-Id: I27f20009a7482a28a64facf53afcb31a24d01c4a
pr.jung [Thu, 15 Oct 2015 09:33:45 +0000 (18:33 +0900)]
Fix security configuration file. Allow send dbus call and check in special case
Change-Id: Ieca49e6f60f8cd4f8a3078a12341709185c491cf
Signed-off-by: pr.jung <pr.jung@samsung.com>
e.talipov [Tue, 13 Oct 2015 02:58:09 +0000 (11:58 +0900)]
Hardware locked SD Card is not mounted as read only.
This patch allows read only mount of external storage.
(even if the device is hardware locked.)
Change-Id: I412396dfe722820544d3637206757bf97ecb8d4b
Signed-off-by: Elmurod Talipov <e.talipov@samsung.com>
taeyoung [Mon, 21 Sep 2015 11:10:32 +0000 (20:10 +0900)]
block: update mmc vconf value
- Some apis of libstorage are used the mmv vconf key
to know the change of the mmc card. Thus the vconf key
is changed for the compatibility
Change-Id: I5f129259b71cdc5f783bec70a9397f99d0ce72c4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 11 Sep 2015 07:56:44 +0000 (00:56 -0700)]
Merge "Apply dbus-cynara rule for deviced" into tizen
pr.jung [Fri, 11 Sep 2015 04:11:14 +0000 (13:11 +0900)]
Apply dbus-cynara rule for deviced
dbus method call which has privilege only allowed
Change-Id: I85e7056d6097130db8ab56ddd91f2a21f38d4e13
Signed-off-by: pr.jung <pr.jung@samsung.com>
Kunhoon Baik [Thu, 10 Sep 2015 04:24:43 +0000 (13:24 +0900)]
block: in case of mmc device's primary, use static directory for libstorage library
: the libstorage library provide static path like "/usr/storage/sdcard"
Change-Id: I7f196ced789584c457b4bfb6a567caff84bfc9d7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Wed, 9 Sep 2015 08:32:15 +0000 (17:32 +0900)]
display: fix display timeout error
The internal index for vconf key start from number 0.
Thus, data can be 0
Change-Id: I6f68ae97d66cf62263176b067db874db7566b351
pr.jung [Fri, 4 Sep 2015 03:05:43 +0000 (12:05 +0900)]
Fix checking effect_handle issue and build script.
Before, it didn't check whethere it is null or not, now it checks.
Before checking architecture on spec file has some problem, so it build as emulator.
So now it checkes whether it has emulator option on or not.
Change-Id: If086212e8071adea36611bb7037660782c7af3b3
Signed-off-by: pr.jung <pr.jung@samsung.com>
Jiyoung Yun [Thu, 13 Aug 2015 11:23:04 +0000 (20:23 +0900)]
deviced: Add dbus-glib dependency temporarily
Currently libdeviced still use dbus-glib api.
But it is deprecated so remove it asap.
To solve build break issue, a temporary patch is added.
Change-Id: I859e6fa276c048996c8e988c62265af3a08a1673
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 28 Jul 2015 05:22:26 +0000 (14:22 +0900)]
display: Update display state vconf key whenever display state is changed
The display api in capi-system-device depends on display state vconf key.
So it should be updated whenever display state is changed
to notify others changing events.
Change-Id: I52084fbd51da92af2313c2aa130c98bff777a004
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 27 Jul 2015 12:12:35 +0000 (21:12 +0900)]
led: Do not use touchled function directly
Some profile does not support touchled.
In this case, if other module use touchled api, it fails to build.
So use device structure wrapper function.
Change-Id: Ifff5d57099aacbb948faa49202c099bb18e37286
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 27 Jul 2015 12:12:04 +0000 (21:12 +0900)]
deviced: Add gio-2.0 dependency
Change-Id: I934f6e207fcb97ba919b496f265e7264fcf52c0d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 27 Jul 2015 08:08:46 +0000 (17:08 +0900)]
devicectl: Add dbusname and devicelist function()
These functions will support to get whole dbus name and device list in deviced.
And do not use sync call to request save log and dump mode events.
Change-Id: I51966c0717750b29ce9523ee3f9c95ff57a9bafc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 23 Jul 2015 12:34:05 +0000 (21:34 +0900)]
deviced: Do not enter the low battery and auto brightness state on emul.
The initial value of battery capacity gets from device node on the first boot.
Do not change an auto brightness mode when sim is inserted.
It's a specific mobile product concept.
Change-Id: I731d8a1ca3c4daf3bd8b282e1bd476ed721010e7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 21 Jul 2015 01:10:07 +0000 (10:10 +0900)]
deviced: Remove build warnings and do not use thread unsafey functions
Thread unsafety functions:
readdir, strerror
Keep the kernel's checkpatch.pl guideline.
Remove build warnings and unused codes.
Change-Id: I79d2442d77531c6ff9e4c6decc862019e7b3e4a4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 20 Jul 2015 07:30:00 +0000 (16:30 +0900)]
block: Remove build warnings
Change-Id: I65b71a1ec8c3c2df168a3d81e752a3e175224dce
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 20 Jul 2015 07:03:02 +0000 (16:03 +0900)]
block: Add a pipe for block to connect with main loop and thread
Separate signal broadcast and dbus request from mount/format logics in thread.
So deviced does not invoke dbus method call in thread anywhere.
Change-Id: I6798dc85772a0bb22925a73e03a50b08f4169958
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 17 Jul 2015 10:16:02 +0000 (19:16 +0900)]
battery: Merge Tizen 2.4 source code into tizen branch
Add TimeToFull and TimeToEmpty of battery functions
Do not enter the suspend state during lanuching poweroff popup
Segmenting lowbat scenarios
Support to notify a status of battery health
Change-Id: I0fe04b062ec1a1f88eda286d1a366d1c75dd9722
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 17 Jul 2015 07:53:56 +0000 (16:53 +0900)]
battery: Separate power-supply logic from lowbat file
Lowbat logic only controls lowbat scenarios
and power-supply logic will update battery status by using uevent.
Other files fixed some codes which are not matched with coding convention rules.
Change-Id: Ic298bf1df9f4dc06774be5d3020de21e401f020d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 16 Jul 2015 12:34:24 +0000 (21:34 +0900)]
deviced: Add cmake macro to add source file and install conf file
It will be useful for deviced developers to manage source code and conf file.
ADD_SOURCE macro will contain whole source code in a specificed directory
except for other profile's files.
INSTALL_CONF macro will install a proper conf file as per profile.
Change-Id: I57bcc7c3f423f8564dcb92f2ad5a19d808b7a957
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 10 Jul 2015 03:11:59 +0000 (12:11 +0900)]
deviced: Change the boot order of zbooting-done.service
The booting done event will invoke after launching display manager service.
Currently, booting done event is too fast for deviced not to detect it.
System regards a booting done timing as being ready of display manager.
Change-Id: I254f5b31cb63b82c1fe89c70011138c5e6b01ff6
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 10:49:07 +0000 (19:49 +0900)]
block: Separate variable code from logic
Add function for generating mount path.
Change-Id: Ib06942b3e452682c25dffba920e592684c8c96e8
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 10:05:32 +0000 (19:05 +0900)]
block: Do not use thread unsafe or deprecated system functions
usleep() is replaced by nanosleep(). (man usleep(7))
readdir() is replaced by readdir_r(). (man readdir(7))
Do not use strerror().
Change-Id: I198e51f3ae5fcc7679fcee508969e27b3c3b91fa
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 09:58:17 +0000 (18:58 +0900)]
block: Change the unmount option when sdcard removed
When other processes still access a sdcard data during removed it,
deviced will send a sigterm and sigkill to the process
to unmount it successfully.
Change-Id: I858046019902e7ae7840868cf9c22c610a35f816
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 09:57:05 +0000 (18:57 +0900)]
block: Add block configuration for multimount option
Currently, deviced does not support multi mount in mmc devices.
So we turn off a multi mount option by using block configuration file.
Change-Id: Ia2eb51cab54e3004d8a43baf0cda0c26f39512c9
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 09:52:16 +0000 (18:52 +0900)]
block: Change the function name of block ops
To enhance the readability of struct block_dev_ops.
Change-Id: I84e552666a4ec65c1ccee9e3b876c7d9bdd9ab15
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 9 Jul 2015 09:49:55 +0000 (18:49 +0900)]
block: add getter for block device list
Change-Id: I6d9d4ea74bed33f497c64161e28711e17f182c6a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Jiyoung Yun [Tue, 2 Jun 2015 03:53:13 +0000 (12:53 +0900)]
led: Support touch led using new led HAL
The existing touch led code is moved to src/led/touch-key.c file.
And it works using new led HAL library.
The details:
https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0
Change-Id: I8d744ac5f46c7c4844c9beec95d988835c9e1693
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 1 Jun 2015 06:11:58 +0000 (15:11 +0900)]
deviced: Remove default target dependency in zbooting-done.service
Default target requires the graphical target.
So it makes a circular target dependency.
Besides each service file don't need to care about the dependency among targets.
Change-Id: I5dd97ae9ae0f313ceb49ea1acebb3962391bd52d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 1 Jun 2015 05:38:34 +0000 (14:38 +0900)]
battery: Removed insuspend charging support logic
Deviced has supported not to enter the power suspend state
if insuspend charging support value is false.
Some devices could not notify battery events to user space themselves in suspend.
So we used to use a speicific node like insuspend_charging_support
to share if this device could raise their events automatically
between deviced and device.
But now, tizen kernel always support charging manager for holding each events
in suspend state. So deviced don't need to provide this logics.
Change-Id: I5854e66f0025897d850c0ebccdc250d9432686c2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 1 Jun 2015 05:17:49 +0000 (14:17 +0900)]
usb: Do not go to suspend state while running usb device
When usb device is connected,
deviced does not go to suspend state for supporting usb operation.
Change-Id: I4cc0baf785c208aa41ce7733d6bec09a748b8886
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 1 Jun 2015 02:26:05 +0000 (11:26 +0900)]
display: Apply dpms get method call in wayland profile
Enlightenment provides a getter api for the current dpms state.
Deviced uses the api instead of internal value.
Change-Id: Ib9a401eeabbd5216a1c17b7d84d896deeb2f9324
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 29 May 2015 12:38:02 +0000 (21:38 +0900)]
display: Do not control LIBINPUT_EVENT_DEVICE_ADDED event
Change-Id: Ia969a985e4b8a40c52fc4e0d366b71d646173d77
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 29 May 2015 10:42:31 +0000 (19:42 +0900)]
block: Add device changed signal
/Org/Tizen/System/DeviceD/Block/Devices/[devnode]
Interfaces
org.tizen.system.deviced.Block
methods
Mount ("s" mount point)
Unmount ("i" unmount option) /* 0 : Normal, 1 : Force */
signals
DeviceChanged ("issssssisii"
block type, /* 0 : scsi, 1 : mmc */
devnode,
syspath,
fs_usgae,
fs_type,
fs_version,
fs_uuid_enc,
readonly, /* 0 : rw, 1 : ro */
mount_point,
state, /* 0 : unmount, 1 : mount */
primary) /* 0 : false, 1 : true */
Change-Id: I6ea8d7abd9d806a9b1e64e13fc011df3a710493f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 28 May 2015 07:59:04 +0000 (16:59 +0900)]
block: Add new dbus signal for broadcasting added or removed object
When object is added or removed,
BlockManager interface will broadcast those signal.
Application can receive the event and
register the dbus signal for each object by using new object path.
Object path
/Org/Tizen/System/DeviceD/Block/Manager
Interfaces
org.tizen.system.deviced.BlockManager
signals
ObjectAdded ("s" Object path)
ObjectRemoved ("s" Object path)
Change-Id: I756d2234ab421c86e04c588f1c9e94e89432c6c4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 06:08:10 +0000 (15:08 +0900)]
block: Add block manager and block devices dbus object
Block module's dbus structure:
* /Org/Tizen/System/DeviceD/Block/Manager
- org.tizen.system.deviced.BlockManager
- ShowDeviceList ()
* /Org/Tizen/System/DeviceD/Block/Devices/[devnode]
- org.tizen.system.deviced.Block
- Mount (IN s mount_point, OUT i result)
- Unmount (IN i option, OUT i result)
Each block device provides a specific dbus object and
it is connected with a block interface which supports to mount and unmount.
Block manager is for managing whole block devices.
The existing Block object and interface is changed to block manager's.
Change-Id: Iea3c98c6bfaf92da9d5f23cbadcd72bcf0180ca5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:39:43 +0000 (14:39 +0900)]
block: Add primary flags in block data
MMC should be known which block is a primary device.
A primary device means that it is the first partition in each device.
Change-Id: Ie83f829d0c3470b26fd0cf2169b242e2f5b89e86
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:32:24 +0000 (14:32 +0900)]
block: Add format operation
When user request to format a specific block device,
it will format the device and update the related information.
The uuid is always updated by formatting.
Change-Id: I35eb468e53204e2d833b59ef71a7f6a5cd0a006c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Tue, 26 May 2015 05:17:31 +0000 (14:17 +0900)]
block: Support to handle individual scenario btw mmc and usb storage.
Add struct block_dev_ops for device operation sets
for supporting to handle individual scenario btw mmc and usb storage.
MMC and usb storage can have each other scenario
when block device is added or removed.
In this case, block_dev_ops is useful.
Change the struct mmc_fs_ops to struct block_fs_ops.
Change-Id: I9bdba58d6ded1b355ea526a02083c06a149abf26
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 20 May 2015 05:44:55 +0000 (14:44 +0900)]
extcon: Do not hdmi lock when hdmi cable is not initialized
Change-Id: Id86a7a4965cb4504f0eda2071e8b8e78e78f3908
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 11 May 2015 04:35:51 +0000 (13:35 +0900)]
display: Fix segfualt issue when display stop and re-start
When display stop, display_dev is released.
But it does not allocate when display restart, so add it.
Change-Id: I2e2c25ce67ef7a7c26db4e890008d382980faadd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:12:37 +0000 (14:12 +0900)]
power: Add power method call
This method is linked to device_power_reboot() in capi-system-device module.
It is a Tizen 2.3.1 public API.
Other method call is for internal modules, not public.
Change-Id: I195487cd6315a57da019fc52e98b7000d929e53f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:07:23 +0000 (14:07 +0900)]
deviced: Add GetBrightnessForCamera method in torch led module
GetBrightnessForCamera is for camera library.
Currently they do not have a daemon for camera,
but they need to get camera brightness value without led priv.
So security team and mmfw team guys agreed to add temporarily method.
It's a temporary solution on Tizen 2.4 and will be removed asap.
Change-Id: I2f0b1c95c2fcb4535efb0958a32ce93f8f509d01
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Fri, 22 May 2015 05:02:47 +0000 (14:02 +0900)]
deviced: Add changed flash state method
Whenever who requests to turn on and off flash device,
deviced will broadcast 'ChangeFlashState' dbus signal.
Change-Id: Ic07f3568d804753b84972cf4f2a4e2cfee4af4b4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Thu, 7 May 2015 10:10:59 +0000 (19:10 +0900)]
display: Support dpms control on wayland
Deviced does not use display HAL to control dpms anymore.
Instead it control the power of display automatically
with build configuration.
It also supports to control display in wayland using dbus signal.
Change-Id: I691a3bb450ff734ceafd559c07e281dc18aee78c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Wed, 6 May 2015 10:13:30 +0000 (19:13 +0900)]
display: Update device-interface code more simple
Do not use deprecated OAL functions (device_set/get_property)
instead it accesses /sys/power/* nodes directly.
And remove the unnecessary x-lcd-on.c file and PMSys structure.
Change-Id: I37495125589f7e9d9880e333416d1bfea7e2fa1c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Jiyoung Yun [Mon, 4 May 2015 07:37:14 +0000 (16:37 +0900)]
display: Change the default lcd timeout time to 30s (30000s->30s)
Only mobile profile will need this operation.
We should redesign how to manage other profile by one code.
Change-Id: Ib6ab0256ed0692e3ea0f0e949fffd12fd4247315
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>