Prohibit turning on display when display has been detached 82/226882/3
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 6 Mar 2020 05:50:16 +0000 (14:50 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 12 Mar 2020 05:03:36 +0000 (05:03 +0000)
commit32a6e47d137a00c2a8b037b23ef4387f2ebecb23
treeb0f4bce764ded7f1a8b0820a9667052eb3ed7836
parentd033e4c2947bcf2bf4c1f3ca66e549ecfe882cc2
Prohibit turning on display when display has been detached

Kernel set lcd_power node to 5 when display is detached. If the node's
value is 5, deviced should ignore lcd on request. To this end, add
return statement at the point that can be the entry of the LCDON
procedure. Below are the functions that can be a beginning of LCDON.
 - __pm_change_internal
 - default_trans
 - default_action
 - lcd_on_direct
 - lcd_on_procedure
 - dbus_changestatebyreason
 - dbus_changestate
 - dbus_customlcdon
 - switch_on_lcd

Change-Id: Ibee6139dede213dbcde715c928a2df64c3757324
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/wearable/display/core.c
plugins/wearable/display/device-interface.c
plugins/wearable/display/key-filter.c
src/display/device-interface.h
src/display/display-dbus.c
src/display/poll.c