Merge lp:~albaguirre/unity-system-compositor/add-power-off-delay-option into lp:unity-system-compositor
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michael Terry | ||||
Approved revision: | 116 | ||||
Merged at revision: | 116 | ||||
Proposed branch: | lp:~albaguirre/unity-system-compositor/add-power-off-delay-option | ||||
Merge into: | lp:unity-system-compositor | ||||
Diff against target: |
191 lines (+80/-31) 3 files modified
src/dbus_screen.cpp (+60/-28) src/dbus_screen.h (+12/-1) src/system_compositor.cpp (+8/-2) |
||||
To merge this branch: | bzr merge lp:~albaguirre/unity-system-compositor/add-power-off-delay-option | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+208281@code.launchpad.net |
Commit message
Add an optional delay when powering off screen.
Add an option (power-off-delay, defaulted to 0) to delay stopping the compositor and powering off the screen to allow the shell to present a shutdown animation; without delay, the shell and-or greeter will get blocked while trying to render such animation; this is due to the compositor stopping as USC receives the power state change before the shell.
This is mostly a workaround as ideally, the greeter and-or shell should coordinate when to shutdown the screen after they are given a chance to possibly show a shutdown animation.
fixes: lp: #1233564
Description of the change
Add an optional delay when powering off screen.
Add an option (power-off-delay, defaulted to 0) to delay stopping the compositor and powering off the screen to allow the shell to present a shutdown animation; without delay, the shell and-or greeter will get blocked while trying to render such animation; this is due to the compositor stopping as USC receives the power state change before the shell.
This is mostly a workaround as ideally, the greeter and-or shell should coordinate when to shutdown the screen after they are given a chance to possibly show a shutdown animation.
fixes: lp: #1233564
PASSED: Continuous integration, rev:116 jenkins. qa.ubuntu. com/job/ unity-system- compositor- ci/81/ jenkins. qa.ubuntu. com/job/ unity-system- compositor- trusty- amd64-ci/ 33 jenkins. qa.ubuntu. com/job/ unity-system- compositor- trusty- armhf-ci/ 33
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- system- compositor- ci/81/rebuild
http://