Skip to content

Commit

Permalink
[dsme] Do not take shutdown actions on shutdown notification. JB#41302
Browse files Browse the repository at this point in the history
If user attaches a charger after battery empty shutdown notification,
the device stays powered up but touch input is disabled until the
device is rebooted.

Instead of treating notifications about imminent shutdown as actual
shutdown from which there is no return, just turn the display on to
allow the user better chance of seeing the notification.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Apr 10, 2018
1 parent 86111f2 commit 3fac7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mce-dsme.c
Expand Up @@ -758,7 +758,7 @@ mce_dsme_dbus_thermal_shutdown_cb(DBusMessage *const msg)
(void)msg;

mce_log(LL_WARN, "Received thermal shutdown notification");
mce_dsme_set_shutting_down(true);
mce_datapipe_request_display_state(MCE_DISPLAY_ON);

return TRUE;
}
Expand All @@ -775,7 +775,7 @@ mce_dsme_dbus_battery_empty_shutdown_cb(DBusMessage *const msg)
(void)msg;

mce_log(LL_WARN, "Received battery empty shutdown notification");
mce_dsme_set_shutting_down(true);
mce_datapipe_request_display_state(MCE_DISPLAY_ON);

return TRUE;
}
Expand Down

0 comments on commit 3fac7ed

Please sign in to comment.