Hyotaek Shim [Tue, 8 Oct 2019 10:05:49 +0000 (19:05 +0900)]
Remove unused code regarding /usr/bin/save_blenv
Change-Id: If4418c367927abe2edef46afedb4831797eef154
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 7 Oct 2019 05:47:29 +0000 (14:47 +0900)]
Fix ASAN build errors
[ 288s] CMakeFiles/deviced.dir/src/battery/lowbat-handler.c.o:(.bss+0x140): multiple definition of `old_battery'
[ 288s] CMakeFiles/deviced.dir/src/battery/battery-time.c.o:(.bss+0x200): first defined here
[ 288s] CMakeFiles/deviced.dir/src/battery/lowbat-handler.c.o: In function `lowbat_initialized':
[ 288s] /home/abuild/rpmbuild/BUILD/deviced-5.5.0/src/battery/lowbat-handler.c:102: multiple definition of `battery'
[ 288s] CMakeFiles/deviced.dir/src/battery/battery-time.c.o:/home/abuild/rpmbuild/BUILD/deviced-5.5.0/src/battery/battery-time.c:363: first defined here
Change-Id: Ibf76f7265dfc1bf41c2b8e72de3dd6ed888ab7fc
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
INSUN PYO [Mon, 30 Sep 2019 06:24:59 +0000 (15:24 +0900)]
Support USB tethering
To enable USB tethering, you must run the following two commands after configuring the USB endpoint.
1. /sbin/ifconfig usb0 192.168.129.3 up
2. /Sbin/route add -net 192.168.129.0 netmask 255.255.255.0 dev usb0
These commands are not directly executed by deviced, but are delegated to rndis.service.
The reason is to use the already implemented structure (sdbd.service and mtp-response.service).
The patch has been split into deviced and libdeivce-node.
The rndis.service is in deviced, and the code to run rndis.service is in libdevice-node.
Connected patch: "Support USB tethering" commit on libdevice-node.
Change-Id: I9fdc8424c94ee1f7e29a9a2cc37958d24373d74c
Hyotaek Shim [Mon, 30 Sep 2019 12:14:09 +0000 (21:14 +0900)]
Do not make caution of pmlock_expired for normal applications
Change-Id: Id12492ee7d56a367318a590f4c0dc957c84f5c46
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 19 Sep 2019 11:57:01 +0000 (20:57 +0900)]
Fix library dependency in plugin modules
Change-Id: Iaa5c932f025ab9e45bf8ada653a5e5d6819e6a4b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
sanghyeok.oh [Thu, 19 Sep 2019 06:30:09 +0000 (15:30 +0900)]
fix bug of macro ADD_SOURCE
Change-Id: If68cd575a30886d75678edf82992c4e647d0c1e3
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Thu, 19 Sep 2019 02:06:22 +0000 (11:06 +0900)]
Modify TV display configurations
Change-Id: I9164660ca9c9e698855d4bd3fc1f53cc511d07e9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 18 Sep 2019 09:42:40 +0000 (18:42 +0900)]
Do not enter S_SLEEP on emulator environment
Change-Id: I9a0fba246cdb8403d03a16578b2c64efe5a8a9c1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 18 Sep 2019 09:33:28 +0000 (18:33 +0900)]
Unmount rw partitions even for emulator environment
Change-Id: Ie777afa9c3b8d9b69080f9bd340e85f24021a909
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 18 Sep 2019 02:41:42 +0000 (11:41 +0900)]
Fix SleepSupport not to step into default_action(S_SLEEP)
Change-Id: I5d08b01bc2444c0985d474ed6f647e1496a7ad68
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Youngjae Cho [Mon, 16 Sep 2019 09:09:57 +0000 (18:09 +0900)]
Delete duplicated call for lcd_on_procedure()
Change-Id: Ice42021b7accf261ec840cc977008ef565ad73fc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Hyotaek Shim [Mon, 16 Sep 2019 03:10:08 +0000 (12:10 +0900)]
Fix SleepSupport
Change-Id: Ic44b710acb3fe4a19238933c0b32e67bbca13387
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Youngjae Cho [Mon, 9 Sep 2019 05:02:04 +0000 (14:02 +0900)]
Add ultrapowersaving module
Change-Id: I65f7000fcd955197ce793b45b800e99161a8859d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
INSUN PYO [Tue, 10 Sep 2019 07:29:04 +0000 (16:29 +0900)]
Delete duplicate logs
Change-Id: Ic53c99ff3225a1d2a15a2f34a5d9e32d8e84db0d
Hyotaek Shim [Tue, 10 Sep 2019 01:27:41 +0000 (10:27 +0900)]
Fix add_device() not to remove added devices
Change-Id: I7d6dbd9e240311b09fe251d492c11cb830c0eaef
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Youngjae Cho [Wed, 4 Sep 2019 12:16:36 +0000 (21:16 +0900)]
Add HBM, LBM module
Change-Id: I64a3090092f622f879d2c754e71b5354682936c6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Hyotaek Shim [Mon, 9 Sep 2019 02:36:01 +0000 (11:36 +0900)]
Minor fix to add SleepSupport=no for TV profile
Change-Id: If8ec6b89f95de701778fca751cca28a2996eae64
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Fri, 6 Sep 2019 04:15:49 +0000 (13:15 +0900)]
Increase ALWAYS_ON_TIMEOUT from 1 hour to 100 hours
Change-Id: I453debda0b4b1b344e0ca491ae0dea43bb089ac5
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 9 Sep 2019 02:04:28 +0000 (11:04 +0900)]
Add SleepSupport=no for TV profile
Change-Id: I3a637a43ce0aba64b50093b24d4e8a13a7b91f33
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Thu, 5 Sep 2019 12:25:51 +0000 (21:25 +0900)]
Add SleepSupport field in display.conf
Change-Id: I86f09c9fcfe0e1da0ab798242777c8fc5469c702
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
INSUN PYO [Tue, 3 Sep 2019 06:14:36 +0000 (15:14 +0900)]
usb-host-test: / remove at end of path CONFIGFS_PATH
mount_check does not work properly with / at the end of path.
Change-Id: I77700ff4074ce48b047851f7f5f5026ed20ee092
sanghyeok.oh [Tue, 3 Sep 2019 05:17:21 +0000 (14:17 +0900)]
coverity fix
Change-Id: Ic355e6fb4419394a443e995875cd818850a4a2c5
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
INSUN PYO [Mon, 2 Sep 2019 06:30:48 +0000 (15:30 +0900)]
usb-host-test: wait for /sys/kernel/config to mount after modprobe usb_f_fs
Workaround: "modprobe usb_f_fs" doesn't guarantee that /sys/kernel/config is mounted.
So, deviced must wait for /sys/kernel/config to be mounted.
Change-Id: Ibf047e2261b786b57dd63f1f831936e8312567f1
Baumann [Fri, 30 Aug 2019 13:50:30 +0000 (15:50 +0200)]
Restrict signal policy
Change-Id: I2864bd37fe36e58207d04ffd23ea1de22fd59556
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Fri, 30 Aug 2019 01:56:27 +0000 (10:56 +0900)]
Add Dimming=no to disable dim in wearable target
Change-Id: Ia848a6c20008fcd681785d808ef70bd8015ff552
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 23 Aug 2019 08:28:08 +0000 (17:28 +0900)]
Apply MCD display
Change-Id: I3ee82aafab34390d6907239c2ab6542540f3abf7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Youngjae Cho [Mon, 26 Aug 2019 05:39:11 +0000 (14:39 +0900)]
Add critical-log module
Change-Id: Ic719ce9f2156bdaebedb5cda60643e7462dce792
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Hyotaek Shim [Tue, 27 Aug 2019 01:26:27 +0000 (10:26 +0900)]
Safe umount an sdcard partition (/opt/media/SDCardA1)
Change-Id: I7a27f311e1da52a5e8930854ec9fa22f00fbb443
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Yunmi Ha [Mon, 26 Aug 2019 10:58:09 +0000 (19:58 +0900)]
Fix svace issue
- check return value before refer
Change-Id: I085162d37bc94d5df858454323a142bce3c5f0cd
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
sanghyeok.oh [Fri, 16 Aug 2019 01:56:36 +0000 (10:56 +0900)]
dbus: modified to use renamed api
change 'dbus_handle_broadcast_dbus_signal' to 'dbus_handle_emit_dbus_signal'
Change-Id: If35e9bc2bb52c15585a57a8a012be3bedadd79ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Wed, 14 Aug 2019 08:22:50 +0000 (17:22 +0900)]
dbus: modified to use revised api
Change-Id: I781eb867a01f460ff9022a3ac59497469b621e47
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Mon, 12 Aug 2019 05:01:06 +0000 (14:01 +0900)]
Remove Booting_Done signal broadcasted by deviced
- Booting_Done is broadcasted by systemd
Change-Id: If0607321f3bbe140915744b2283958361d29ea77
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Mon, 12 Aug 2019 03:17:10 +0000 (12:17 +0900)]
dbus: allow GetAll method call for g_dbus_proxy.
g_dbus_proxy_new_*() function generate dbus properties related method
call.
Without allow rule, It makes dbus policy error.
Deviced doesn't have any dbus properties.
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag is recommended to create g_dbus_proxy for deviced.
Change-Id: I095d3df2711c5ef7bf06fc90c5e54d60e4532ffd
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Fri, 9 Aug 2019 07:17:12 +0000 (16:17 +0900)]
Remove vconf enum for VCONFKEY_SYSMAN_POWER_OFF_POPUP
- VCONFKEY_SYSMAN_POWER_OFF_POPUP is removed from VCONFKEY_SYSMAN_POWER_OFF_STATUS
- So, remove related code
Change-Id: I22ce64bf59fba048a969b0599961e829ebc1fd03
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 25 Jul 2019 09:11:00 +0000 (18:11 +0900)]
Fix battery module
Change-Id: I29a241fad703080b55d02d5bc7267e7a0832e719
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Youngjae Cho [Thu, 1 Aug 2019 07:52:55 +0000 (16:52 +0900)]
Add exception handle, fix log format specifier
Change-Id: I0f3f230501ba46c345dcd20d2b737fbb5722dfa1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Youngjae Cho [Tue, 30 Jul 2019 01:18:37 +0000 (10:18 +0900)]
Add a board info module
Change-Id: I89309dec1f198a5fbac3e4fbbbee484bcb6f5bf2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
lokilee73 [Tue, 30 Jul 2019 07:17:48 +0000 (16:17 +0900)]
Remove power off popup from power off type
Change-Id: I16ed1f64ba7a26340975796071f1736bd6470ba9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 29 Jul 2019 09:09:06 +0000 (18:09 +0900)]
Change log level for failed AOD mode to avoid confusion
Change-Id: I3647f7db0a07c3d29219ecef7f9d1a5899dde5cd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 30 May 2019 08:40:53 +0000 (17:40 +0900)]
Apply new algorithm for battery health
When battery health is bad such as high, low or ovp, we have to alarm users.
Expecially, in case of wearable device, it can hurt users by heat.
So, to protect it, apply a new algorithm to warn users periodically.
A new concept about bad bttery health:
1. Launch popup when battery.health is HEALTH_LOW or HEALTH_HIGH
2. Keep LCD_NORMAL for 10 seconds
3. Set relaunch timer to 3.6 seconds, When lcd state is LCD_OFF
4. Set lcd state to LCD_NORMAL
5. go to 1 step
newly added functions for it
- update_health_pm_status(): LCD OFF and unlock LCD_DIM
- change_health_popup_timer(): set health_poup_timer
- health_popup_timer_init(): initialize health_popup_timer
- launch_health_popup(): launch popup in case of HEALTH_HIGH and HEALTH_LOW
do_not_disturb()
- apply a new function to check if it is in do_not_disturb mode
- remove memory/shealth/sleep/do_not_disturb because it is not used anymore
battery_pm_change_internal()
- apply a new function to check battery_do_not_disturb()
reorganize update_health(), update_ovp()
display_changed()
- change to return current state, when input is NULL
- add launch popup in case of HEALTH_LOW and HEALTH_HIGH
check_abnormal_status()
- change name from check_battery_status(), because it only deals with abnormal status
- modify to refer to old_battery
Change-Id: I328588e8805f8b4a2790036cbd2a8c8cbc6a7831
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 19 Jul 2019 02:26:03 +0000 (11:26 +0900)]
Change strcmp to strcasecmp to detect lower case and upper case as well
Change-Id: Ib0bd7e475ea5046e628000c84e499e9d87b6b5c0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 16 Jul 2019 05:20:35 +0000 (14:20 +0900)]
Add exception code for tz_dpms_mng
If tz_dpms_mng is NULL, it means deviced cannot use internal APIs supported by enlightenment.
So, if it is NULL, we have to disconnect interface with dpms
Change-Id: If8b78c96301c3b45b95d08a1bc5fafe90c1088ec
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
INSUN PYO [Mon, 8 Jul 2019 11:26:40 +0000 (20:26 +0900)]
Delete meaningless configuration
Change-Id: Ifb04e88ce3b75fe4aa3f379af3532c7f0f4ec513
Seung-Woo Kim [Tue, 9 Jul 2019 09:23:59 +0000 (18:23 +0900)]
usb-host-test: ignore failure module load/unload when it is built-in
Even though dummy_hcd and usb_f_fs are kernel built-in module,
module load failure blocks usb-host-test. Just ignore the failure
of module load/unload when it is built-in.
Change-Id: I3bd7084cf2ce4b5806d272662ecd16f7b97cc11c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Fri, 5 Jul 2019 01:46:34 +0000 (10:46 +0900)]
Apply async for dpms
change communication method with dpms, from sync to async.
Change-Id: I50894dc5b2b3420d0fb9335e298601a400eb120a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 8 Jul 2019 11:11:20 +0000 (20:11 +0900)]
Fix memory leak
Change-Id: Ie34f039aeab698ba33f8edb9611a82b22ffc6de6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Inkyun Kil [Fri, 5 Jul 2019 05:35:35 +0000 (14:35 +0900)]
Add omitted dependency (zlib)
Change-Id: I4b4ec163a271a2da0909dd9e379b016962710367
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
lokilee73 [Thu, 4 Jul 2019 06:30:28 +0000 (15:30 +0900)]
Fix error while loading display.so
ex) Failed to open module: /usr/lib/deviced/display.so: undefined symbol: lcd_direct_control
Change-Id: I2f9ddc746fea3170bdaeb8faad10233595323733
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 2 Jul 2019 12:57:11 +0000 (21:57 +0900)]
Apply changes for ambient mode
1. add ambient_lcdoff_signal_handler for signal from clock-viewer
2. change broadcasted signal from integer to string
ex) 0, 1 -> ALPMOff, ALPMOn
3. move ambient_check_invalid_state to del_state_cond
4. add lcd_direct_control for lcd control
Change-Id: Ice5f37124ad90f49ea21b618b99dade6901b8686
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 27 Jun 2019 11:50:32 +0000 (20:50 +0900)]
Change function names and add lcd_on_procedure for changed ambient mode
1. change function names for unification
ex) start_clock -> ambient_start_clock
end_clock -> ambient_end_clock
2. add lcd_on_procedure for changed ambient mode
Change-Id: I740ea105e41ef1199e40a0f9db70b3ba675df848
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
INSUN PYO [Fri, 28 Jun 2019 01:47:45 +0000 (10:47 +0900)]
Add information about the relationship between unit dependencies
Change-Id: Ia6f196c854933e5323ef6e7f4011541bd42494c1
lokilee73 [Thu, 27 Jun 2019 04:48:23 +0000 (13:48 +0900)]
Add protection code to prevent crash
If there are not HAL for display_dev->get_state, crash occurs.
So, add protection code for it.
Change-Id: Ibe14f9dfa049dfbe3fd7f7cac1ad4b0cfc608ecf
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
INSUN PYO [Tue, 25 Jun 2019 08:35:00 +0000 (17:35 +0900)]
Fix build warning
Change-Id: Ieb07f2399a87bba41c1f519791cb7172aa8f7764
Hyotaek Shim [Tue, 25 Jun 2019 02:51:39 +0000 (11:51 +0900)]
Add display(dpms) reply handling and retry
Change-Id: I2a1c8dd3646c6b215b1c95c3fb53e5cf07561136
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Tue, 25 Jun 2019 08:11:24 +0000 (17:11 +0900)]
Change dpms_get_state to use HAL for lcd get state
Change-Id: I465f01f4e8b2f4119fc8b2828ea2a909305d4bd2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 30 May 2019 12:13:52 +0000 (21:13 +0900)]
Add battery_health_changed to keep dim in case of bad battery health
LCD dim has to be kept for bad battery health like HEALTH_LOW, HEALTH_HIGH, HEALTH_OVP.
Battery_health_changed adds DIMSTAY_FLAG to pm_status_flag.
It protects LCD change from dim to LCD_OFF by request of other applications or daemons.
ex) lockstate, changestate in dbus-send
Change-Id: I544259e07eb36967df11c1d709508651c214f079
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 20 Jun 2019 02:46:34 +0000 (11:46 +0900)]
Add display_staydim_check for commonly used code
Change-Id: Ib3a5f23b2a93f48eafecb9fe5f1f7a43f19f6bf2
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Hyotaek Shim [Mon, 17 Jun 2019 04:33:31 +0000 (13:33 +0900)]
Temporarily allow org.tizen.system.deviced.Board in dbus policy
Change-Id: I5ce697624c93a03bc8ae9af5184ec2456c21ee7a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
lokilee73 [Fri, 14 Jun 2019 10:35:24 +0000 (19:35 +0900)]
Initialize dpms_connected in disconnect_interface_with_dpms to protect crash
Display can be controlled by devicectl command.
ex) devicectl display stop/start
After disconnect_interface_with_dpms is called by devicectl command,
LCD_ON can be requested via dbus-send.
At this time, dpms related functions and variables are initialized.
So, crash can occur.
Change-Id: I9fdbc0c27e612bbdc9d11309f2a0be6102112d66
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 11 Jun 2019 09:11:14 +0000 (18:11 +0900)]
Update battery.health_s in check_health_status
battery.health_s is not synchronized with battery.health.
So, update battery.health_s in check_health_status to synchronize them.
Change-Id: I779b1c91e202198be62ef858d2fa774a067a2c7d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Mon, 27 May 2019 06:41:21 +0000 (15:41 +0900)]
dbus-policy: modified to use default deny - allow signal
Change-Id: Ic9eeb5a7df8b35dacad0d2a8488efc249cd12104
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
lokilee73 [Wed, 22 May 2019 09:23:29 +0000 (18:23 +0900)]
Move same files in each profile to display folder
Change-Id: I8dac3442da66e23dfb3ce53b925c2af45bb8395d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 17 May 2019 07:55:06 +0000 (16:55 +0900)]
Change lcd control method from dbus-send to using internal APIs supported by dpms
Change-Id: I69e62ebbc8083a40fc383d2c2f36a63d7c975ebe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 14 May 2019 12:29:07 +0000 (21:29 +0900)]
Fix segment fault in control_handler and get_control_handler
There are segment fault because of argc.
Buffer size of argv is 2 or 3, but it can exceed limitation by argc.
So, change conditions as below.
1. Check conditions and return -EINAL when it's not satisfied
ex) if argc is 3 in dbus_control_handler
if argc is 2 in dbus_get_control_handler
2. Remove argc check in control_handler and get_control_handler,
because it's wrong
Change-Id: I22c4c89d59deeeb5181dd7787ed9ca60ea2af50d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 14 May 2019 05:15:15 +0000 (14:15 +0900)]
Fix signature mis-match in expired_deliver_result
Expected signature is 'i', but returned value is 'si'.
So, fix it.
Change-Id: I9e476983a7bef55dcc94fd8bd1fc83b98563bbcd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
sanghyeok.oh [Fri, 10 May 2019 11:39:01 +0000 (20:39 +0900)]
usbhost: dbus: modified to reply error type message if failed
gdbus method handler should reply g_variant with valid signature or error type message.
Change-Id: I7acf504685fd37db343ad756e06b5446f426c264
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Mon, 13 May 2019 08:53:01 +0000 (08:53 +0000)]
Revert "Fix dbus error by no reply timeout"
This reverts commit
5d18bc167445fd3f238ff13421963bbd4db393bd.
Change-Id: Ieb797fecd0230dea2d4558dd7ea629fdfded2ccb
lokilee73 [Mon, 13 May 2019 02:16:51 +0000 (11:16 +0900)]
Fix dbus error by no reply timeout
There is a dbus error, when dbus_lockTimeoutExpired is called.
So, change it to reply.
Change-Id: Ica0dda733d5b8e8da6fa45cc6328a6a1a2f5cd60
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 10 May 2019 05:20:03 +0000 (14:20 +0900)]
Fix invalid return value of dbus
Return value in dbus_locktimeout_expired has to be integer.
So, fix it.
Change-Id: Ie34853948852bca28f87bf0c984c59ea07a86fdd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 9 May 2019 08:00:27 +0000 (17:00 +0900)]
Add low_bat_old to nofify when low_bat changes
Currently, DEVICE_NOTIFIER_LOWBAT is notified periodically.
So, add low_bat_old to notify when low_bat is changed.
Change-Id: I70b1730a993f4f1783e20c719970223901b752b4
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 9 May 2019 05:57:01 +0000 (14:57 +0900)]
Change function name
dbus_get_charge_level is used to get vconf value of
VCONFKEY_SYSMAN_BATTERY_STATUS_LOW.
It's not intuitive. So, change it.
Change-Id: Ieb62b6fcd9baabbb7a746782f2146bc397d80432
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 9 May 2019 03:14:29 +0000 (12:14 +0900)]
Move vconf setting for capacity from lowbat_process to process_power_supply
Lowbat_process has to deal with low battery related parameters.
It's better to set capcity related vconf in process_power_supply.
Change-Id: I46d3feb977824e90bc32f74050382637af8b63d6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 9 May 2019 02:17:07 +0000 (11:17 +0900)]
Remove unused function print_lowbat_state
Change-Id: I43419bc75a0f3b7d2cc06592dce3fabb0585459b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 8 May 2019 08:53:51 +0000 (17:53 +0900)]
Add protection code and insert a log for broadcasting same signal and status
Change-Id: I67dd7f9f0660bc432cc3cc193328c46fb1d132e1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 3 May 2019 08:28:15 +0000 (17:28 +0900)]
Change power_supply_status_init
Add battery_changed in power_supply_status_init,
because previous code is too complicated.
Battery_changed can replace it.
Change-Id: Id06d3b9d9db391040b5fe176e421e1c322b92aea
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 3 May 2019 02:53:45 +0000 (11:53 +0900)]
Change battery_state to prevent duplicated work
Usage of battery_state was to print battery information.
But change it to prevent duplicated work in battery_changed.
Battery related information will be printed in process_power_supply.
Change-Id: I313fd6c2ecad348b7ce228b20592b09ab1f9c09d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 2 May 2019 11:59:25 +0000 (20:59 +0900)]
Add variable ret for dbus_handle_broadcast_dbus_signal_var
eturned value of dbus_handle_broadcast_dbus_signal_var is integer.
So, add ret to print error log when it fails.
Change-Id: I6bc57894bed68fdeedc92a19a2de9e7b090e6874
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Thu, 2 May 2019 05:18:09 +0000 (14:18 +0900)]
Change condition to return and notifying input in health_timer_cb
1. Change condition to take actions in case of HEALTH_LOW and HEALTH_HIGH
2. Fix a bug to take over battery.health with an input instead of value
Change-Id: Ia491a08e7184b60c788276a51dee0d1aa67aac80
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 29 Apr 2019 11:01:54 +0000 (20:01 +0900)]
Unify ovp_type and temp_type to health_type
and add temperature in battery_status
1. Ovp_type and temp type is a kind of battery health_type.
So, unify ovp_type and temp_type to health_type
2. Remove temp in battery_status.
Because it is unified to health_type.
Instead, add temperature for value in celsius.
Change-Id: Ie595c4154530f7a187de7d25481562689170764e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Mon, 29 Apr 2019 06:40:27 +0000 (15:40 +0900)]
Modify check_power_supply_noti to refer to blockmode_wearable only
Below vconf is not used anymore.
ex) memory/shealth/sleep/do_not_disturb
So, change check_power_supply_noti to refer to db/setting/blockmode_wearable only.
Basically, battery full notification policy is different according to profiles.
- Wearable : refers to vconf value called blockmode_wearable
ex) db/setting/blockmode_wearable
if it's true, notification is blocked,
false, notification is allowed.
- iot, tv : don't care
- mobile : not decided yet, so apply default value as tv and iot
We can keep the policy by setting default value of blockmode_wearable to false.
It can be changed via setting menu.
And Setting menu for blockmode_wearable is only available on wearable profile.
Change-Id: I981a31e70cba59ccd544f6fce8a784de601f339d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Fri, 26 Apr 2019 05:34:05 +0000 (14:34 +0900)]
Fix misused function of g_timeout_add_seconds
Input value of g_timeout_add_seconds() should be integer.
But the input is float in some cases.
So, change g_timeout_add_seconds to g_timeout_add on this cases.
Change-Id: I95b843b46e13c078398f39bac374f7faa5d03917
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Wed, 24 Apr 2019 09:56:03 +0000 (18:56 +0900)]
Remove power off related code in lowbat_popup
power off by low battery is executed without popup.
So, power off related code in lowbat_popup is useless.
Change-Id: Ia2443aa3ea8e2a3b964286c085234921cb1cd0b4
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 23 Apr 2019 10:41:09 +0000 (19:41 +0900)]
Remove useless scenario
If current battery percentage is power off level(0),
we don't have to consider other scenario.
ex) realoff -> normal
realoff -> warning
realoff -> critical
realoff -> poweroff
realoff -> realoff
Because target will execute powering off immediately.
Change-Id: I7e75d16a8b75edbc357a7024981ff72e3cbea8db
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
lokilee73 [Tue, 23 Apr 2019 08:14:16 +0000 (17:14 +0900)]
Remove popup and timer before powering off
1. Remove popup before powering off
Low and critical popups are shown beforehand according to battery level.
So, to show popup before powering off is duplicated action.
2. Remove poweroff timer
The purpose of power off timer is to have time to show popup before powering off.
But we don't need it any more.
Morever, popup can be shown or not shown by remained battery capacity.
It can confuse users.
Change-Id: I8cc67999cfe7be56e4c882012b4be29800cd4159
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
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>