Merge lp:~mterry/unity-system-compositor/wake-screen-on-press into lp:unity-system-compositor
Status: | Merged |
---|---|
Approved by: | Alan Griffiths |
Approved revision: | 210 |
Merged at revision: | 216 |
Proposed branch: | lp:~mterry/unity-system-compositor/wake-screen-on-press |
Merge into: | lp:unity-system-compositor |
Diff against target: |
246 lines (+44/-22) 8 files modified
src/mir_screen.cpp (+2/-5) src/mir_screen.h (+1/-1) src/screen.h (+1/-1) src/screen_event_handler.cpp (+16/-2) src/screen_event_handler.h (+1/-0) tests/integration-tests/test_unity_screen_service.cpp (+1/-1) tests/unit-tests/test_mir_screen.cpp (+8/-5) tests/unit-tests/test_screen_event_handler.cpp (+14/-7) |
To merge this branch: | bzr merge lp:~mterry/unity-system-compositor/wake-screen-on-press |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alan Griffiths | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+257181@code.launchpad.net |
Commit message
Wake screen immediately upon a power button press, not its release.
Description of the change
Wake screen immediately upon a power button press, not its release.
This is a break out fix noticed in bug 1446298.
Android turns on the screen immediately upon receiving a press (and turns it off upon receiving a release like we do). This makes it feel snappier and seems like the correct thing to do (what are we waiting for anyway?).
So I've made USC turn the screen on if the display is off when the power is pressed. I've also removed a method that is no longer used (since we are never in a position where we simply toggle the screen anymore -- we always know a specific target state).
I only tested this patch on vivid's USC (not trunk's). Some files changed names and such, but the code was the same. It was faster than before (didn't wait a full long-press time), but still surprisingly non-immediate. Why would that be?
FAILED: Continuous integration, rev:208 jenkins. qa.ubuntu. com/job/ unity-system- compositor- ci/206/ jenkins. qa.ubuntu. com/job/ unity-system- compositor- vivid-amd64- ci/43/console jenkins. qa.ubuntu. com/job/ unity-system- compositor- vivid-armhf- ci/43/console jenkins. qa.ubuntu. com/job/ unity-system- compositor- vivid-i386- ci/18/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- system- compositor- ci/206/ rebuild
http://