Merge lp:~albaguirre/powerd/workaround-buggy-prox-sensors into lp:powerd

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alberto Aguirre
Approved revision: 175
Merged at revision: 175
Proposed branch: lp:~albaguirre/powerd/workaround-buggy-prox-sensors
Merge into: lp:powerd
Diff against target: 14 lines (+5/-0)
1 file modified
src/powerd-sensors.cpp (+5/-0)
To merge this branch: bzr merge lp:~albaguirre/powerd/workaround-buggy-prox-sensors
Reviewer Review Type Date Requested Status
Kevin DuBois (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+266335@code.launchpad.net

Commit message

Workaround some proximity sensors not sending their initial state.

Assume those sensors start in the FAR state.

Description of the change

Workaround some proximity sensors not sending their initial state.

Assume those sensors start in the FAR state.

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
Kevin DuBois (kdub) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/powerd-sensors.cpp'
--- src/powerd-sensors.cpp 2014-06-13 15:56:20 +0000
+++ src/powerd-sensors.cpp 2015-07-29 23:54:34 +0000
@@ -48,6 +48,11 @@
4848
49void powerd_sensors_proximity_enable(void)49void powerd_sensors_proximity_enable(void)
50{50{
51 //FIXME: Some proximity sensors do not
52 //send an initial event when enabled and nothing is close
53 //Perhaps this should be called on a timeout instead
54 powerd_proximity_event(FALSE);
55
51 ua_sensors_proximity_enable(prox_sensor);56 ua_sensors_proximity_enable(prox_sensor);
52}57}
5358

Subscribers

People subscribed via source and target branches