Merge lp:~chunsang/powerd/shorten-autobrightness-debouce into lp:powerd

Proposed by Chunsang Jeong on 2016-03-14
Status: Needs review
Proposed branch: lp:~chunsang/powerd/shorten-autobrightness-debouce
Merge into: lp:powerd
Diff against target: 12 lines (+1/-1)
1 file modified
src/autobrightness.c (+1/-1)
To merge this branch: bzr merge lp:~chunsang/powerd/shorten-autobrightness-debouce
Reviewer Review Type Date Requested Status
Pat McGowan (community) 2016-03-21 Approve on 2016-03-21
Ubuntu Phablet Team 2016-03-14 Pending
Review via email: mp+288878@code.launchpad.net

Description of the change

Shorten autobrightness debounce time to get faster brightness change response from 4 sec to 1sec,

Tested with arale, krillin, frieza and turbo that it worked well up to 1 sec, and verified that light sensors from the devices are quick to be settled down less than 1 sec.

To post a comment you must log in.
Pat McGowan (pat-mcgowan) :
review: Approve

Unmerged revisions

185. By Chunsang Jeong on 2016-03-14

Shorten autobrightness debounce time to get faster brightness change response

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/autobrightness.c'
2--- src/autobrightness.c 2013-09-12 14:33:56 +0000
3+++ src/autobrightness.c 2016-03-14 02:16:16 +0000
4@@ -81,7 +81,7 @@
5 #define SMOOTHING_FACTOR_SLOW 2000.0f
6 #define SMOOTHING_FACTOR_FAST 200.0f
7 #define HYSTERESIS_FACTOR 0.10f
8-#define DEBOUNCE_MS 4000
9+#define DEBOUNCE_MS 1000
10
11 enum ab_state {
12 AB_STATE_DISABLED,

Subscribers

People subscribed via source and target branches