Merge lp:~mfrey/powerd/filter-proximity into lp:powerd

Proposed by Michael Frey
Status: Rejected
Rejected by: Ricardo Salveti
Proposed branch: lp:~mfrey/powerd/filter-proximity
Merge into: lp:powerd
Diff against target: 15 lines (+6/-0)
1 file modified
src/powerd-sensors.cpp (+6/-0)
To merge this branch: bzr merge lp:~mfrey/powerd/filter-proximity
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Ricardo Salveti (community) Needs Fixing
Review via email: mp+237338@code.launchpad.net

Commit message

Filter out first proximity event as it sometimes contains the incorrect sensor state.

Description of the change

Filter out first proximity event as it sometimes contains the incorrect sensor state.
Fixes bugs #1378012 and #1378043

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) :
review: Needs Fixing
lp:~mfrey/powerd/filter-proximity updated
144. By Michael Frey

Change warn to debug output

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

While testing I noticed that if I start a call with something covering up the proximity sensor, the screen will never be off, which might be a side effect of this change.

I wonder if it might be better to work instead fixing the sensor for this hardware specifically, for it to always give a valid value when doing the first read. I know bug #1378043 is actually a side effect of doing the screen handling on powerd and not as part of the phone stack (if the screen gets off before the call starts, the phone will lock itself).

review: Needs Fixing
lp:~mfrey/powerd/filter-proximity updated
145. By Michael Frey

Delay enable of prox sensor rather than filter

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp:~mfrey/powerd/filter-proximity updated
146. By Michael Frey

reduce the delay to .5 sec

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
lp:~mfrey/powerd/filter-proximity updated
147. By Michael Frey

bump delay

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Unmerged revisions

147. By Michael Frey

bump delay

146. By Michael Frey

reduce the delay to .5 sec

145. By Michael Frey

Delay enable of prox sensor rather than filter

144. By Michael Frey

Change warn to debug output

143. By Michael Frey <michael@michael-MacBookAir>

Filter out first proximity event to aviod incorrect reading

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/powerd-sensors.cpp'
2--- src/powerd-sensors.cpp 2014-06-13 15:56:20 +0000
3+++ src/powerd-sensors.cpp 2014-10-09 13:51:53 +0000
4@@ -48,6 +48,12 @@
5
6 void powerd_sensors_proximity_enable(void)
7 {
8+ /*
9+ *Delay the start of the prox sensor
10+ *as starting too fast causes unwanted
11+ *behavior like locking the screen while starting a call
12+ */
13+ usleep(850000);
14 ua_sensors_proximity_enable(prox_sensor);
15 }
16

Subscribers

People subscribed via source and target branches