Closed
Bug 904544
Opened 11 years ago
Closed 11 years ago
hold wakelock to make sure input devices event can be handle before suspend
Categories
(Core Graveyard :: Widget: Gonk, defect)
Tracking
(blocking-b2g:hd+, firefox26 unaffected, firefox27 unaffected, b2g18 wontfix, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed, b2g-v1.2 unaffected)
Tracking | Status | |
---|---|---|
firefox26 | --- | unaffected |
firefox27 | --- | unaffected |
b2g18 | --- | wontfix |
b2g18-v1.0.0 | --- | wontfix |
b2g18-v1.0.1 | --- | wontfix |
b2g-v1.1hd | --- | fixed |
b2g-v1.2 | --- | unaffected |
People
(Reporter: viralwang, Assigned: viralwang)
References
Details
Attachments
(1 file, 1 obsolete file)
There's one case that we may not handle the input event in time:
when we keep pressing power key continually, we can not make sure what status the device is.
When device is in suspend process and power key event comes after "Freezing user space processes", InputReader will not have chance to handle the power key immediately.
The power key can only process when device exit suspend, it could be long time after power key actually pressed.
The solution here is to sync the latest EventHub.cpp to add wakelock when event reported, it will make sure the InputReader can get event before suspend.
Attachment #789510 -
Flags: review?(mwu)
Comment 1•11 years ago
|
||
Does bug 908797 do what you need? There's a EVIOCSSUSPENDBLOCK in there. If so, please dup to that bug.
Updated•11 years ago
|
Component: General → Widget: Gonk
Product: Boot2Gecko → Core
Comment 2•11 years ago
|
||
Though, if we need this for helix, I can review this as a 1.1hd only patch, since bug 908797 is too much to backport for helix.
Updated•11 years ago
|
blocking-b2g: --- → hd?
Comment 3•11 years ago
|
||
Michael, can you help to review this patch? We'll likely need it for helix.
Do you feel it'll be required for leo as well or can we do without this on leo?
My understanding was that it's not a device specific bug.
Flags: needinfo?(mwu)
Comment 4•11 years ago
|
||
I'll review it as a 1.1hd only patch. This is a subset of the work being done for bug 908797.
I don't know if leo will need it.
Flags: needinfo?(mwu)
Comment 5•11 years ago
|
||
Comment on attachment 789510 [details] [diff] [review]
add wakelock in EventHub.cpp to make sure the input events can process before suspend
r=me *only* for 1.1hd. Do not land on master/1.2.
Attachment #789510 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 6•11 years ago
|
||
modify the comment of patch for landing, hd only.
Attachment #789510 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Please land on hd only since master will use bug 908797 for tracking.
Whiteboard: [checkin-needed]
Comment 8•11 years ago
|
||
Comment 10•11 years ago
|
||
And I can't read, sorry. Note that this can't land on v1.1hd until it has hd+ blocking status anyway, so please hold off on requesting checkin until then.
Backed out.
https://hg.mozilla.org/integration/b2g-inbound/rev/507d464fd1f1
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-b2g18:
--- → wontfix
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → fixed
status-b2g-v1.2:
--- → unaffected
status-firefox26:
--- → unaffected
status-firefox27:
--- → unaffected
Keywords: checkin-needed
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → mozilla18
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•