lokilee73 [Tue, 23 Apr 2019 02:57:16 +0000 (11:57 +0900)]
Fix a bug on conditon of sending an event to libeventsystem
The condition to send EVT_VAL_BATTERY_LEVEL_FULL is wrong,
Because bat_percent cannot exceed 100.
So, change conditon as below.
ex) bat_percent >= 100 && battery.charge_full : EVT_VAL_BATTERY_LEVEL_FULL
bat_percent >= 100 : EVT_VAL_BATTERY_LEVEL_HIGH
Change-Id: I4aa408811fb4353d4c1f9251045fb056f8bac687
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 18 Apr 2019 08:36:37 +0000 (17:36 +0900)]
Fix unreachable code error on usb-host policy
Change-Id: Ia56cf7cbdc9087d38efcaed873ad9e5abadb2afc
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 18 Apr 2019 06:13:46 +0000 (15:13 +0900)]
Change kmod_module_remove_module with remove_module
kmod_module_remove_module doesn't remove all modules that have dependency.
So, change it with remove_module to remove all related modules.
Change-Id: I58048977d60159ba04bc2dc2398e776988179019
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 16 Apr 2019 05:18:10 +0000 (14:18 +0900)]
Fix LCDAlwaysOn and powerkey behaviors
Do not affect powerkey behaviors even when LCDAlwaysOn is 'yes' in display.conf.
Mobile
- LCD on/off by short pressed powerkey
- Popup by long pressed powerkey
Wearable
- Menu by short pressed powerkey
- Popup by long pressed powerkey
TV, Iot
- Powering off by short or long pressed powerkey
Change-Id: Ic80a31638a65ed8187d83e2e0e66d7d2f78655bd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Tue, 16 Apr 2019 11:04:05 +0000 (20:04 +0900)]
Change load_module function
usb_f_fs can have dependency according to targets.
So, when it is loaded, we have to consider to load related modules as well.
ex) libcomposite.ko has to be loaded with usb_f_fs in RPI3
Change-Id: I6864de55461bfe5041642fe6787e536e5487889a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 10 Apr 2019 11:08:13 +0000 (20:08 +0900)]
Add error logs for vconf_get_int and vconf_set_int
Change-Id: I0f3031575659f93a941a1c592bca9a6a9409caac
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Yunmi Ha [Wed, 10 Apr 2019 08:27:47 +0000 (17:27 +0900)]
Change libgdbus library name to libsyscommon.
Call common check_system_boot_finished function, instaed of local implement.
Change-Id: Iafec48599499be4263e9e6383e8bdfc21ded0e87
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Hyotaek Shim [Wed, 10 Apr 2019 01:24:09 +0000 (01:24 +0000)]
Merge "Fix during_poweroff check" into tizen
Hyotaek Shim [Tue, 9 Apr 2019 11:03:57 +0000 (20:03 +0900)]
Set VCONFKEY_SYSMAN_POWER_OFF_STATUS once during poweroff/reboot
Change-Id: I7f8601f47417b4ffd3e322e3a964b44f709cb94a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 9 Apr 2019 11:16:48 +0000 (20:16 +0900)]
Fix during_poweroff check
Change-Id: Ib65d46406d032d6aac15ff4702910911c723c6a6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 9 Apr 2019 05:54:21 +0000 (14:54 +0900)]
Fix poweroff/reboot sequence
Change-Id: I493f59b5a4c33a679aa2f4b8d88d8cbe764498be
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Fri, 5 Apr 2019 08:22:17 +0000 (17:22 +0900)]
Add image effect for display
Change-Id: I9de4dec681193b93b18e5d98289dd5ab35a25837
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 2 Apr 2019 05:24:47 +0000 (14:24 +0900)]
Add dbus path and interface for Coreapps
Change-Id: I9ca144e84bb2024a30c7fb41a5daa541edfb971a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 1 Apr 2019 10:49:17 +0000 (19:49 +0900)]
Add a new function to control touchscreen while swimming
Change-Id: I3e4426cbec7e0b9b5ee6c57a204a22be6499148a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Fri, 29 Mar 2019 01:32:36 +0000 (10:32 +0900)]
Rename booting_finished() to check_booting_finished()
Change-Id: If101de088b807c042db8442bf707512192af17ba
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 25 Mar 2019 10:14:52 +0000 (19:14 +0900)]
Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()
Change-Id: I603c83be2e504010da735a9ec428db401fae0d1d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 22 Mar 2019 11:23:33 +0000 (20:23 +0900)]
Rename systemd_start_unit_sync() to systemd_start_unit_wait_started()
Change-Id: I904b86beb3a4cf34bcb66fae1aec01cf74bef8ac
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 22 Mar 2019 06:14:14 +0000 (15:14 +0900)]
Remove unused #define value(MAX_RETRY)
Change-Id: Ib392ec4b59c8096e63cd31212211529202545080
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Tue, 19 Mar 2019 06:42:54 +0000 (15:42 +0900)]
Remove dbus method, ChangedCooldownMode for cooldown
Deviced don't have to receive cooldown related signals or dbus methods.
It only supports dbus methods for siop.
Change-Id: Ief92af6776c325fb41b111c117ee45df7b0e4f0e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
INSUN PYO [Thu, 14 Mar 2019 08:08:43 +0000 (17:08 +0900)]
Refactoring: remove unnecessary local variable
Change-Id: I1d2f9dc7a6ed147e24261c20f2a0b6478820a276
lokilee73 [Fri, 15 Mar 2019 01:49:42 +0000 (10:49 +0900)]
Reorganize cool-down structure
Cool-down algorithm is changed as below.
1. Cool-down is changed from broadcasting signal to sending dbus method.
2. Deviced don't have to request pop-ups to system-servant.
Because SIOP or PASS will do it according to it's own scenarios.
Change-Id: I8cf6c949911533c77620dd38087836b4eaaf36f8
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Thu, 14 Mar 2019 10:29:07 +0000 (19:29 +0900)]
coverity fix
Change-Id: I20c613f763a46473d0ed3eb4f12bf8d6cc014e98
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Yunmi Ha [Wed, 6 Mar 2019 06:06:52 +0000 (15:06 +0900)]
Support plugin module.
Deviced will load "/usr/lib/deviced/*.so".
If someone wants to add their own device,
make plugin with DEVICE_PRIORITY_HIGH and place it in the lib folder.
Change-Id: I58b95b55a4c297c93b4f1e5bb17c9927d8d5d3c4
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
sanghyeok.oh [Mon, 11 Mar 2019 05:56:27 +0000 (14:56 +0900)]
power: re-enable exit option
Change-Id: I7aca911ea44c1e896c06d504e888cf1544363afa
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 5 Mar 2019 12:04:20 +0000 (21:04 +0900)]
svace: power-shutdown: fix leak
Change-Id: Ieadd4f8a25c78775877847a065d811d4d83a5314
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 5 Mar 2019 11:28:42 +0000 (20:28 +0900)]
power: change to case-sensitive name
Change-Id: I98b61040294f367a96674b7b02e2bf68fb8cc115
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Wed, 27 Feb 2019 02:31:45 +0000 (11:31 +0900)]
power: remove duplicated dbus methods
Change-Id: Ib4b1b94559cf702a1f6823414a5379861146cb8e
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Wed, 27 Feb 2019 23:16:03 +0000 (08:16 +0900)]
auto-test: battery: fix bug
Change-Id: Iea6d5dd82f705585b0ffd1d4c9f279148fdae287
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Thu, 28 Feb 2019 10:20:58 +0000 (19:20 +0900)]
Fix build warnings
Change-Id: I99e12cc644daeaf8d3d9debeec8815d1e35a26d7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Thu, 28 Feb 2019 07:32:56 +0000 (16:32 +0900)]
Fix display plugin build
Change-Id: Ie685d3a9fa2037fae96e2468e21abb039f9edbc1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Wed, 27 Feb 2019 11:52:55 +0000 (20:52 +0900)]
To give permission to 3rd party
If there is no permission for 3rd party, Dbus request by temperature API can be failed
Change-Id: I48cae55a1331020c4291be4ce683da2abb039246
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Wed, 27 Feb 2019 01:03:56 +0000 (10:03 +0900)]
power: cleanup
Change-Id: I10a9f006d08535f9c5d8eba77d3e073733e6c180
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Tue, 26 Feb 2019 08:59:01 +0000 (17:59 +0900)]
Add bezel for wearable target
Change-Id: Iee31a5a0d8b37feb8cd162caadd8ee73fc931968
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Yunmi Ha [Tue, 26 Feb 2019 09:40:07 +0000 (18:40 +0900)]
Restore permission of source files.
Change-Id: I02a1c1324215a0e0d887c3c8434b22607e05e38f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Fri, 22 Feb 2019 09:31:58 +0000 (18:31 +0900)]
Apply consistent log messages.
1. First letter to uppercase.
2. Period at the end.
3. Rearrange parameters.
Change-Id: I957a3e820eb713128add0a787270f9c0cc083031
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Fri, 22 Feb 2019 06:21:39 +0000 (15:21 +0900)]
Apply consistent log messages.
1. First letter to uppercase.
2. Period at the end.
3. Rearrange parameters.
Change-Id: Ic28e18d4f09a2b3a89517db25498c7b8c191a61f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Thu, 21 Feb 2019 08:13:50 +0000 (17:13 +0900)]
Apply consistent log messages.
1. First letter to uppercase.
2. Period at the end.
3. Rearrange parameters.
Change-Id: I187a357a5b7670dd62e5e1d84883e0df75b4063a
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Yunmi Ha [Wed, 20 Feb 2019 05:51:07 +0000 (14:51 +0900)]
Apply consistent log messages.
1. First letter to uppercase.
2. Period at the end.
3. Rearrange parameters.
Change-Id: I8d037b3c7001ad9a41262a30f47cdf05332949d1
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
sanghyeok.oh [Wed, 20 Feb 2019 02:35:27 +0000 (11:35 +0900)]
coverity: fix SIGSEGV warning
Change-Id: I401b65eda545123127659fe557565827c4369482
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Karol Lewandowski [Mon, 18 Feb 2019 12:18:20 +0000 (13:18 +0100)]
shutdown: Ensure messages are printed as fast as possible
Change-Id: I568816d81b357592f279638404292b7c299e10f9
Karol Lewandowski [Fri, 15 Feb 2019 15:27:07 +0000 (16:27 +0100)]
power: Introduce 'exit' reboot option
This option will cause system to perform complete shutdown
without final 'reboot' syscall. Such feature was requested
by test team.
Test by calling:
dbus-send --system --print-reply --dest=org.tizen.system.deviced --type=method_call /Org/Tizen/System/DeviceD/Reboot org.tizen.system.deviced.reboot.reboot string:exit int32:0
The system will execute shutdown sequence but most processes
will remain running (eg. when tested on odroid, the shell from
which command was invoked was not terminated).
To confirm it works see thatt PID1 binary is replaced by systemd-shutdown:
root@localhost:~# ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 8.3 0.1 3828 2164 ? Ss 00:37 0:06 /usr/lib/systemd/systemd-shutdown exit --log-level 6 --log-target kmsg --log-color --exit-code 0
Change-Id: I91112c535c80713f2d35081edeaa7c0e1d772c3b
Karol Lewandowski [Thu, 14 Feb 2019 15:47:00 +0000 (16:47 +0100)]
power: Remove erronous DIRECT poweroff type
Commit
51849e1cad ("power: Rework handling of repeated poweroff/reboot
request") mistakenly introduced POWEROFF type. Before that commit
"DIRECT" type was used to mean POWEROFF.
This commit reverts to original behaviour, dropping DIRECT type
for all new uses but retains constant for compatiblity.
Change-Id: I4ddd5fa7fe45dd54bd9a597ed36b989b93a2f3f8
lokilee73 [Thu, 27 Dec 2018 11:42:01 +0000 (20:42 +0900)]
Add dbus_get_temperature for method, GetTemperature
Change-Id: I732241d0d3c57deba03e0beaf6caf949ddf7009f
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Mon, 14 Jan 2019 23:35:12 +0000 (08:35 +0900)]
dbus: systemd: change api - start/stop systemd unit
move systemd related dbus api to libgdbus(libsyscommon)
Change-Id: I6ae0c125dc5293fbc38df7ca3a0ba7cde12a8f38
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Fri, 8 Feb 2019 02:02:25 +0000 (11:02 +0900)]
Apply device_notify_once()
Change-Id: Ic56422e699bd3b1bae9174d31b271c40c7c5e907
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 8 Feb 2019 01:55:58 +0000 (01:55 +0000)]
Revert "Do not unnecessarily check booting-done"
This reverts commit
53256c665e90251b688e277d6ea8673476d317cf.
Change-Id: Ic9ddcec6a9b7a2e7832901d296e3eb6d4a9b99d3
lokilee73 [Thu, 7 Feb 2019 09:51:25 +0000 (18:51 +0900)]
Add notifier_device_ops for late or no booting done signal
Systemd can't confirm booting done signal in valid time.
So, add notifier_device_ops to broadcast booting done siganl after 30 seconds,
if there is no booting done signal in it.
Change-Id: I535f8a848239b75fcd8e92f1ff13cd8ce895868a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Thu, 7 Feb 2019 09:40:59 +0000 (18:40 +0900)]
Do not unnecessarily check booting-done
Change-Id: I5680777ac0b907a6a8e394d1659e0e5b48d1192f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 7 Feb 2019 09:18:15 +0000 (18:18 +0900)]
Add device_notify_once() to avoid multiple invocation
Change-Id: I355dbe2d937e5ebdc5ffa8c59228763900e34568
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 1 Feb 2019 08:32:24 +0000 (17:32 +0900)]
Fix deviced-shutdown installation
The location should be /usr/lib/systemd/deviced-shutdown (for both 32-bit and 64-bit build)
Change-Id: Ic31de51f4b2f848d2602f1dbc42d34283cc0f624
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 1 Feb 2019 08:13:56 +0000 (17:13 +0900)]
Plugin Architecture - for device module adaptation
Change-Id: I5aef481d44b13c9cd3f8529cc04596d56a683f1c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Fri, 1 Feb 2019 04:54:32 +0000 (13:54 +0900)]
Add dump module to get debug infomation for devices
When dump signal is received, dump logs are saved under /var/log/deviced.log
Change-Id: Idde9ce3bb02430e5373dbd953134e8e4acf46616
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Fri, 1 Feb 2019 02:15:50 +0000 (11:15 +0900)]
Coverity: 'handle' going out of scope
Change-Id: Ib055cb0f12fd23d6c9750ef977b76c3d166203f8
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 31 Jan 2019 11:21:30 +0000 (20:21 +0900)]
Remove unused edbus-handler
Change-Id: I5a95dc4c181ca2c22793264f98198340cd0cfb40
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 31 Jan 2019 08:01:24 +0000 (17:01 +0900)]
Fix 64-bit build errors, /lib64/systemd/
Change-Id: I7170c14e46cdd8ccbbcfcede18232bb10a62c8e9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 31 Jan 2019 02:58:47 +0000 (11:58 +0900)]
Version 5.5.0
Change-Id: I5bfa2097c864342fccd20c0660524a0c35ac5580
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Karol Lewandowski [Thu, 10 Jan 2019 00:17:22 +0000 (00:17 +0000)]
power: Add deviced-shutdown
This commit provides special binary that is going to handle
Tizen system shutdown.
This utility is called by systemd, not deviced.
The final shutdown scheme is going to look like following:
1. deviced receivies request to shutdown/reboot the system,
- preparation is performed (send signals, etc)
- operation start is marked in /run/
- hardcoded actions are started
- depending on shutdown type following is performed:
+ direct shutdown: system is rebooted immidietly (end of flow)
+ other: dbus request to systemd is sent
2. systemd receives the "poweroff" request
- supported requests are Reboot, PowerOff & Halt
- systemd (pid1) replaces it's own process with shutdown binary
(execve("/usr/lib/systemd/systemd-shutdown"))
- shutdown binary is provided by deviced package by alternatives
mechanism
# ls -l systemd-shutdown
systemd-shutdown -> /etc/alternatives/systemd-shutdown
# ls -l /etc/alternatives/systemd-shutdown
/etc/alternatives/systemd-shutdown -> /usr/lib/systemd/deviced-shutdown
(alternatives allow both systemd and deviced to "provide" same
binary, with deviced having higher priority being selected as
the one to use)
3. /usr/lib/systemd/systemd-shutdown becomes pid1
- original systemd1 manager is no longer available, meaning no restart,
watchdog, socket/path/etc activation is handled.
- depending on systemd-provided params it performs reboot or poweroff
Change-Id: I46b4d0f375a1a6e7fc3e1d74b0530d7ec73ccb12
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Karol Lewandowski [Thu, 10 Jan 2019 00:11:44 +0000 (00:11 +0000)]
power: Rework handling of repeated poweroff/reboot request
This commit generalizes "repeated poweroff/reboot" code path
to use same state variables as dbus requests (poweroff_opt var).
Additionally, multiple constructs are simplified.
Change-Id: I989c7fdbf021da0d69d9062507a05fd8692846a5
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Wed, 30 Jan 2019 02:16:26 +0000 (11:16 +0900)]
Remove extcon_count.c and extcon_count.h
Because they have dependency with products
Change-Id: I1fe49f9b0089f85ad09d4d7c21e5c609195be7eb
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 18 Jan 2019 02:47:46 +0000 (11:47 +0900)]
Change the way to make display.conf
To make display.conf by using 'cat' can add duplicated contents in it.
So, change the way by file replacement
Change-Id: I69215787e89012ac8183899cea16b4215c73d65b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 17 Jan 2019 09:02:44 +0000 (18:02 +0900)]
Fix integer overflow in extcon_count.c
Change-Id: I83ac1617238aa664f1c5c6d1cff0c6945f5b1940
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 10 Jan 2019 12:08:51 +0000 (21:08 +0900)]
Apply conf file and change thermal structure
Firstly, thermal value depends on hardware.
So, we have to apply different temp table for each targets.
Secondly, change the name on temp table as products.
ex) Critical -> Limt
Danger -> Shutdown
Lastly, change condition in thermal_get_temp_enum
Change-Id: If25be071e000dfaa1d5e68d205538cd2332d1d9b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 9 Jan 2019 02:22:49 +0000 (11:22 +0900)]
dbus: modify to use send with reply
change dbus function to fix errors in media and battery
Change-Id: I4d91ad3419dab43c74d72fd58d767c5fdbe91d21
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Thu, 3 Jan 2019 10:23:51 +0000 (19:23 +0900)]
sensitivity: merge sensitivity
Change-Id: I3a6e0336d699f9a006cbe47fa920603e33d2d956
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Thu, 27 Dec 2018 01:42:47 +0000 (10:42 +0900)]
Remove executable flag from non-executable files
Change-Id: I6b848799d6a5f568350becac14c3d85c10b6b3e9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 26 Dec 2018 11:21:24 +0000 (20:21 +0900)]
Fix build error
Change-Id: I8de7b15bdc3b921e2bb8e09e60e7a128deb3d198
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 12 Dec 2018 10:29:30 +0000 (19:29 +0900)]
Change thermal algorithm to get temp value from device HAL
Needed action is triggered by below table
ex) Action Table
--------------------------------------------------
Current Previous Action
--------------------------------------------------
NORMAL NORMAL X
WARNING ReleaseAction
CRITICAL ReleaseAction
DANGER X
--------------------------------------------------
WARNING NORMAL WarningAction
WARNING X
CRITICAL WarningAction
DANGER X
--------------------------------------------------
CRITICAL NORMAL LimitAction
WARNING LimitAction
CRITICAL X
DANGER X
--------------------------------------
DANGER NORMAL ShutdownAction
WARNING ShutdownAction
CRITICAL ShutdownAction
DANGER X
--------------------------------------------------
Change-Id: Id8bd9737f9c648d1ed131dc22c3d8de3ba1b58a0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 20 Dec 2018 04:40:58 +0000 (13:40 +0900)]
Fix incorrect changes for build errors
Change-Id: I22b86b4e8efe2449c05bdc1a03edb771845161ac
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 14 Dec 2018 01:35:36 +0000 (10:35 +0900)]
Fix left build errors for aarch64
Change-Id: Iba78b2d02d12b291b09c192f333b09e1c84abcff
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 7 Dec 2018 05:27:11 +0000 (14:27 +0900)]
Fix build errors
Change-Id: Idb1ad4f63f9571531201469b95ecab01c4f923e6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Karol Lewandowski [Tue, 27 Nov 2018 13:16:33 +0000 (14:16 +0100)]
power: disable_coredump_handler: Fix error condition correctly
fd could be zero as well and it's not an error condition. Fix
the check to only test write() return value.
Change-Id: I92932f7fa2368d88fc2210f35f35521ba51161c2
Karol Lewandowski [Tue, 27 Nov 2018 09:32:42 +0000 (10:32 +0100)]
Disable coredump handler for the shutdown period
Change-Id: I2e83e006ce0c360616154c68f4871ee221427389
lokilee73 [Fri, 23 Nov 2018 02:17:50 +0000 (11:17 +0900)]
Remove commented-out code and fix violations of coding standard
Change-Id: I410fb5ffcdc789cdc579e431c77f99b71d5b0b82
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Thu, 22 Nov 2018 05:34:59 +0000 (05:34 +0000)]
Merge "Unify extcon_get_count() and extcon_set_count() to extcon_update_count()" into tizen
Hyotaek Shim [Wed, 21 Nov 2018 11:08:27 +0000 (20:08 +0900)]
Reorganize poweroff/restart functions
Change-Id: I4cfd934bbc44ecf02369987e78a6471b39fed57a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 22 Nov 2018 03:19:56 +0000 (12:19 +0900)]
Unify extcon_get_count() and extcon_set_count() to extcon_update_count()
Change-Id: Ie25017889cbd005c12b3c5177ddc38c64dd28153
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 16 Nov 2018 05:31:51 +0000 (14:31 +0900)]
Rename status of external connectors with prefix extcon_
ex) external devices
cradle, earjack, hdmi, usb, usb-host
Change-Id: I0eea6a932bcca6d10bddccfaa3a8a60114fbcd8b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 13 Nov 2018 07:12:34 +0000 (16:12 +0900)]
To apply depense code for double usb-host-test start or stop
Change-Id: I070bbf23e7c84551536f9a74f9d46894c03b2932
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
(cherry picked from commit
e01b84a77b941a84369619f053d7dbe693f88a2e)
lokilee73 [Wed, 31 Oct 2018 11:27:32 +0000 (20:27 +0900)]
Fix a display item in auto test
Set brightness to 0
-> return error because it is the same with DIM
Change-Id: Id964312b5791b4230bdd507b7e563cf10a30a561
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 31 Oct 2018 09:08:50 +0000 (18:08 +0900)]
Fix bugs that are related with display for auto_test
Display item in auto test fails.
1. Set/Get brightness
2. Set/Get maxbrightness
-> add LCD NORMAL on dbus parameter
3. Set brightness to 0
-> return error because it is the same with DIM
Change-Id: Ifb20f923e7a38d9c7b57c57fb0b469915be68b38
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 10:41:08 +0000 (19:41 +0900)]
Minor fix - remove unnecessary extern declaration
extern struct display_plugin disp_plgn;
Change-Id: Iac5802261347e5ade06d160daffdd402f6ece631
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 08:33:54 +0000 (17:33 +0900)]
Integrate config-enable-display-timer rpm into mobile profile, and fix conf files
Change-Id: I31f7cc6eb5577e92d1668eb43a45779cf0b6f929
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 08:27:09 +0000 (17:27 +0900)]
Plugin architecture - IoT profile
Change-Id: I524ab65b1ec77f472249d86c2c6611cdb30412f1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 03:04:36 +0000 (12:04 +0900)]
Plugin architecture - TV profile
Change-Id: Ib4d7eea6ccc78eb4cd1bdc803f32a8006524a1f9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 31 Oct 2018 02:31:09 +0000 (11:31 +0900)]
Plugin architecture - wearable profile
Change-Id: I4f05b4da3f3067878b07779870013b1d0ea24731
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Tue, 30 Oct 2018 12:50:36 +0000 (21:50 +0900)]
Plugin architecture - mobile profile
Change-Id: I65811fb7958cb4865c5e5c616953ca9267bbfd76
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Mon, 29 Oct 2018 05:35:35 +0000 (14:35 +0900)]
Change usb sequence to broadcast usb state after setting vconf value
Change-Id: Ifbbbc70b160e3a351a484d633c3b955ecb6d98d0
Paweł Szewczyk [Tue, 27 Feb 2018 16:16:29 +0000 (17:16 +0100)]
usb: Remove usb-operation
Starting and stopping usb operation is specific to the implementation.
This responsibility is moved to USB HAL.
Change-Id: I8a729a1343d27dc04e5a5611c9fd6ccdf394d4a4
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Paweł Szewczyk [Mon, 1 Oct 2018 09:37:27 +0000 (11:37 +0200)]
usb-host-test: disable unit start rate limiting in ffs daemon
The usb-host-ffs-test-daemon is, by design, an on-demand daemon. It is
restarted by each test case.
The test cases, however, are run very fast in big series, triggering
unit restart limiting mechanism in systemd and entering it into failure
state.
To prevent this from happening, this commit disables the limiting.
Change-Id: I6b107442cea14015df9ab8d01ce23382b51fd872
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
pr.jung [Mon, 1 Oct 2018 04:27:44 +0000 (13:27 +0900)]
Remove svace error
Change-Id: I25e34b89a92fbe495ddc8f00e3daca3f4ac35cbb
Signed-off-by: pr.jung <pr.jung@samsung.com>
lokilee73 [Tue, 18 Sep 2018 07:38:14 +0000 (16:38 +0900)]
Add two function to support multi leds.
1. dbus_multi_led_control : to control leds
2. dbus_getnumofleds : to get the number of leds
Change-Id: I1b2101c4532b266416a88f5f5bf5ad67dea6fd73
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
pr.jung [Mon, 17 Sep 2018 02:46:48 +0000 (11:46 +0900)]
Remove build warnings
Change-Id: I67bfaf29299825a9b8df19acd969a903af9e5dbc
Signed-off-by: pr.jung <pr.jung@samsung.com>
sanghyeok.oh [Thu, 6 Sep 2018 11:31:02 +0000 (20:31 +0900)]
dbus: replace iter_loop with iter_next
In case of g_variant_iter_loop,
in spite of it reaches end of iteration, trying to assign 0(or null) to param.
If array(with size - g_variant_iter_n_children(iter);) is used as param, it will causes segfault.
So change iter_loop to iter_next.
iter_next don't trying to assign value to param when it reaches end of iteration.
it just return FALSE
Change-Id: I11668d7ff6ee9ad71b62e829921dfd640469e5d7
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 14 Aug 2018 05:03:22 +0000 (14:03 +0900)]
dbus: remove inappropriate usage of gdbus proxy
Change-Id: Ief812a5cf282fb2113e18fea7e5dde19c52b8ba1
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Mon, 13 Aug 2018 12:11:22 +0000 (21:11 +0900)]
Fix devices_init procedure to prevent starting dev before probing
Change-Id: I3fac32e208cd6412e0646bbf9c047b2730e9eed9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
sanghyeok.oh [Thu, 9 Aug 2018 01:06:39 +0000 (10:06 +0900)]
coverity fix
Change-Id: I8f26ba62367c6087350dfca570e7cf3e1a584fc6
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Fri, 27 Jul 2018 06:23:27 +0000 (15:23 +0900)]
coverity fix
Change-Id: I5c3518dcb897fa95f49fcb7dd34b5ce8ae5bc232
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Thu, 26 Jul 2018 02:01:04 +0000 (11:01 +0900)]
Remove X related code
Display server was already changed to Wayland.
So, X related code is removed.
Change-Id: Id9d8ebe174e6eb98230a42310ba1b7daa6b89bf2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Wed, 25 Jul 2018 07:58:46 +0000 (16:58 +0900)]
Minor fixes on poweroff functions
Change-Id: I9edb6c0692cbcb86b0abe63673a8ef5faa95a111
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Wed, 25 Jul 2018 02:36:38 +0000 (11:36 +0900)]
Remove delay time for power off animation
Time for power off animation is guanranteed by resourced.
Change-Id: I7bd70ca3c31f66d20a918a838e5d4ab11e484dfe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>