Skip to content

Commit

Permalink
Unblank display when shutting down/rebooting from act dead or user mode
Browse files Browse the repository at this point in the history
Previously display was blanked when shutting down from act dead. As there
is now shutdown animation also for act dead, that is no longer desirable.

Unblanking the display makes the animation visible even if the shutdown
or reboot happened from display off state without user interaction.
  • Loading branch information
spiiroin committed Jun 19, 2014
1 parent 2468e67 commit 1511bc2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions modetransition.c
Expand Up @@ -174,15 +174,20 @@ static void system_state_trigger(gconstpointer data)
break;
}

/* If we're shutting down/rebooting from acting dead,
* blank the screen
*/
if (old_system_state == MCE_STATE_ACTDEAD) {
/* If we're shutting down/rebooting from actdead or
* user mode, ui side will do shutdown animation.
* Unblank the screen to make it visible. */
switch( old_system_state ) {
case MCE_STATE_USER:
case MCE_STATE_ACTDEAD:
execute_datapipe(&display_state_req_pipe,
GINT_TO_POINTER(MCE_DISPLAY_LPM_OFF),
GINT_TO_POINTER(MCE_DISPLAY_ON),
USE_INDATA, CACHE_INDATA);
}
break;

default:
break;
}
break;

case MCE_STATE_ACTDEAD:
Expand Down

0 comments on commit 1511bc2

Please sign in to comment.