diff options
author | Aseda Aboagye <aaboagye@google.com> | 2016-12-01 14:33:01 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-20 22:40:32 -0800 |
commit | 2b54aa9a9b061117021eff22385c9de474ab090b (patch) | |
tree | e3c3b6c9605ea16d1cf79c513bca3c6e4198ae44 /power | |
parent | 36093bee5f12f83500798d8beb2b3e6a3bd25972 (diff) | |
download | chrome-ec-2b54aa9a9b061117021eff22385c9de474ab090b.tar.gz |
CHERRY-PICK: motion_lid: Add more reliability measurements.
Previously in motion lid, we only considered the lid angle as unreliable
when the hinge is too closely aligned with the direction of gravity.
However, there are other cases where the lid angle can be unreliable.
For example, when the device is being shaken and is under acceleration
that's not solely due to gravity.
This commit adds some more checks for a reliable lid angle measurement.
- Checking if the device is significant motion by checking the
deviation of the magnitudes of the base and lid vectors.
- Making sure that the calculated angles agree with the current state
of the lid switch.
BUG=chrome-os-partner:59480
BUG=chrome-os-partner:59203
BRANCH=gru,cyan,glados,oak
TEST=Flash kevin; use ectool motionsense lid_angle and monitor the
instantaneous lid angle. Verify that unreliable is reported for cases
where the device is under significant motion.
TEST=Flash kevin; use evtest to monitor the tablet mode switch. Verify
that tablet mode switch is much more robust.
Change-Id: I4bd9e818e617b056364cce2e46385e743a7522d4
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/430344
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'power')
0 files changed, 0 insertions, 0 deletions