devicectl: add suspend/resume command 79/286079/2 accepted/tizen/unified/20230103.054905
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 27 Dec 2022 08:25:51 +0000 (17:25 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 2 Jan 2023 01:19:23 +0000 (10:19 +0900)
commit4d0daf18b56643cfaeb81f7ca777135726340398
tree541fe466f8b265c07c323a0ac553920ca1ad8460
parent470680f23c1c37d375238c43c7f7821977350814
devicectl: add suspend/resume command

Usage: devicectl power suspend|resume reason(int)
 #) devicectl power suspend 12345
 #) devicectl power resume 2000

The value reason can be an any integer and the devicectl doesn't test
it is valid reason or not. Therefore some listeners of suspend/resume
event might malfunction as they receive a wierd reason.

Change-Id: I62c66e0a8034f9884fd006404991330902ecca21
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power-dbus.c
tools/devicectl/devicectl.c