Mir's Android Input implementation has wake-locks stubbed out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Invalid
|
Medium
|
Daniel van Vugt |
Bug Description
Correct use of wake locks is very important to keeping responsiveness high, and the kernel awake when you need it (e.g. processing input events). Unfortunately in Mir we seem to have stubbed out this functionality, which will hurt our input latency:
grep -ir 'wake_lock' 3rd_party/
3rd_party/
3rd_party/
I can understand why -- because wake locks in the form Android has them do not exist outside of Android kernels. Mainline kernels use something different. But using nothing at all is bad for performance.
Related branches
- Alberto Aguirre (community): Disapprove
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
-
Diff: 173 lines (+133/-3)3 files modified3rd_party/android-input/android/CMakeLists.txt (+6/-0)
3rd_party/android-input/android/frameworks/base/services/input/EventHub.cpp (+2/-3)
3rd_party/android-input/android/hardware/libhardware_legacy/power/power.c (+125/-0)
- Cemil Azizoglu (community): Needs Resubmitting
- Andreas Pokorny (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
- Alan Griffiths: Needs Information
-
Diff: 58 lines (+28/-6)2 files modifiedsrc/client/input/android/android_input_receiver.cpp (+5/-6)
tests/unit-tests/client/input/test_android_input_receiver.cpp (+23/-0)
Changed in mir: | |
status: | Fix Committed → Triaged |
importance: | Undecided → Medium |
Changed in mir: | |
status: | Triaged → In Progress |
assignee: | nobody → Daniel van Vugt (vanvugt) |
milestone: | none → 0.14.0 |
Changed in mir: | |
status: | In Progress → Invalid |
Changed in mir: | |
milestone: | 0.14.0 → none |
The implementation on Android seems pretty simple:
https:/ /android. googlesource. com/platform/ hardware/ libhardware_ legacy/ +/master/ power/power. c
Exported via libhardware?