Merge lp:~albaguirre/unity-system-compositor/fix-1343919 into lp:unity-system-compositor
Status: | Merged |
---|---|
Approved by: | kevin gunn |
Approved revision: | 159 |
Merged at revision: | 159 |
Proposed branch: | lp:~albaguirre/unity-system-compositor/fix-1343919 |
Merge into: | lp:unity-system-compositor |
Diff against target: |
71 lines (+22/-5) 2 files modified
src/powerd_mediator.cpp (+21/-5) src/powerd_mediator.h (+1/-0) |
To merge this branch: | bzr merge lp:~albaguirre/unity-system-compositor/fix-1343919 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandros Frantzis (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Unity System Compositor Development Team | Pending | ||
Review via email: mp+227645@code.launchpad.net |
Commit message
Attempt to sync up sys state when powerd is already up (LP: #1343919)
Description of the change
Attempt to sync up sys state when powerd is already up (LP: #1343919)
powerd does not expose a system state query api - as a workaround the PowerdMediator constructor can issue a request for active state if the powerd interface is already up, but doesn't wait for the state change, it assumes it will be active at some point (if not already active).
There is a potential small race between powerd signaling the system to fully come out of suspend and turning the screen on so powering the screen may fail ((I have not seen this behavior so far however). In any case a press of the power key should bring the screen back up, as the powerd state and PowerdMediator will now be sync'd up.
PASSED: Continuous integration, rev:159 jenkins. qa.ubuntu. com/job/ unity-system- compositor- ci/136/ jenkins. qa.ubuntu. com/job/ unity-system- compositor- utopic- amd64-ci/ 32 jenkins. qa.ubuntu. com/job/ unity-system- compositor- utopic- armhf-ci/ 32
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- system- compositor- ci/136/ rebuild
http://