Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[display] Reset blanking timers on compositor start/stop. Fixes JB#47904
Whenever either compositor or lipstick service startup is detected,
a display unblank is scheduled within mce. If display is already on,
these requests end up being ignored and leaves previously programmed
dimming / blanking timers active - which then can cause display to
blank unexpectedly e.g. during bootup.

Make sure dimming / blanking timers are reprogrammed whenever either
compositor or lipstick service availability on D-Bus changes.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Feb 4, 2020
1 parent 979fe83 commit 62b7d07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/display.c
Expand Up @@ -8029,6 +8029,9 @@ static void mdy_datapipe_compositor_service_state_cb(gconstpointer aptr)
else
mdy_topmost_window_forget_pid_query();

/* In any case, reprogram blanking timers */
mdy_blanking_rethink_timers(true);

EXIT:
return;
}
Expand Down Expand Up @@ -8056,6 +8059,9 @@ static void mdy_datapipe_lipstick_service_state_cb(gconstpointer aptr)

mdy_blanking_rethink_afterboot_delay();

/* In any case, reprogram blanking timers */
mdy_blanking_rethink_timers(true);

EXIT:
return;
}
Expand Down

0 comments on commit 62b7d07

Please sign in to comment.