Merge lp:~andreas-pokorny/unity-system-compositor/fix-1514059-and-keep-display-on-for-key-presses into lp:unity-system-compositor
Proposed by
Andreas Pokorny
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Alexandros Frantzis | ||||||||||||
Approved revision: | 257 | ||||||||||||
Merged at revision: | 262 | ||||||||||||
Proposed branch: | lp:~andreas-pokorny/unity-system-compositor/fix-1514059-and-keep-display-on-for-key-presses | ||||||||||||
Merge into: | lp:unity-system-compositor | ||||||||||||
Diff against target: |
162 lines (+81/-14) 2 files modified
src/screen_event_handler.cpp (+20/-10) tests/unit-tests/test_screen_event_handler.cpp (+61/-4) |
||||||||||||
To merge this branch: | bzr merge lp:~andreas-pokorny/unity-system-compositor/fix-1514059-and-keep-display-on-for-key-presses | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandros Frantzis (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+276925@code.launchpad.net |
Commit message
Change keyboard handling to scan codes.
Additionally relevant for ubuntu-pd: use none-phone keys to keep display on
Description of the change
USC always used the key code to identify the power key instead of the scan code. That worked up to now because input reader had a hard coded key map. It is more robust to just test for the scan code.
This has been discovered during qa tests on usc with the new libinput library.
Additionally while looking at the problem it seems that the inactivity timers are not reset for non-phone keys.
To post a comment you must log in.
FAILED: Continuous integration, rev:257 jenkins. qa.ubuntu. com/job/ unity-system- compositor- ci/299/ jenkins. qa.ubuntu. com/job/ unity-system- compositor- wily-amd64- ci/87/console jenkins. qa.ubuntu. com/job/ unity-system- compositor- wily-armhf- ci/87/console jenkins. qa.ubuntu. com/job/ unity-system- compositor- wily-i386- ci/87/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/299/ rebuild
http://