Detect accelerometer automatically

Bug #1701226 reported by Jerry Kao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Checkbox
High
Gene Li

Bug Description

Checkbox has a test case input/accelerometer_verify to check if system has accelerometer by tester manually.

plugin: manual
category_id: 2013.com.canonical.plainbox::input
id: input/accelerometer_verify
estimated_duration: 30.0
_description:
 PURPOSE:
     Manual detection of accelerometer.
 STEPS:
     1. Look at the specifications for your system.
 VERIFICATION:
     Is this system supposed to have an accelerometer?

In reality, we did not have specifications and usually check "No" then skip accelerometer test.

Checkbox should able to check udev to know accelerometer existence. Here is a example on reven2-3.

$ udevadm info --export-db | less

E: NAME="Acer BMA150 accelerometer"
E: PHYS="wmi/input1"
E: PRODUCT=19/0/0/0
E: PROP=0
E: SUBSYSTEM=input
E: TAGS=:seat:
E: USEC_INITIALIZED=6258255

u@Raven2-3:/proc/bus/input$ less devices

N: Name="Acer BMA150 accelerometer"
P: Phys=wmi/input1
S: Sysfs=/devices/virtual/input/input23
U: Uniq=
H: Handlers=event17 js0
B: PROP=0
B: EV=9
B: ABS=7

Related branches

Jerry Kao (jerry.kao)
tags: added: ce-qa-concern
Changed in plainbox-provider-checkbox:
status: New → Confirmed
importance: Undecided → High
Jerry Kao (jerry.kao)
description: updated
Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :
description: updated
Jerry Kao (jerry.kao)
description: updated
description: updated
description: updated
Changed in plainbox-provider-checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in plainbox-provider-checkbox:
status: Confirmed → In Progress
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Changed in plainbox-provider-checkbox:
milestone: none → 0.37.0
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
Revision history for this message
Jerry Kao (jerry.kao) wrote :

@Gene, please update your finding on whether auto-detection works

Changed in plainbox-provider-checkbox:
status: Fix Released → Confirmed
assignee: Sylvain Pineau (sylvain-pineau) → Gene Li (genelicc)
Jerry Kao (jerry.kao)
Changed in plainbox-provider-checkbox:
assignee: Gene Li (genelicc) → Sylvain Pineau (sylvain-pineau)
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

@Jerry, auto detection relies on udev ID_INPUT_ACCELEROMETER, please attach the output of `udevadm info -e`. If ID_INPUT_ACCELEROMETER is not there, we could add a hack based on driver name like we did for smo8800.

Changed in plainbox-provider-checkbox:
assignee: Sylvain Pineau (sylvain-pineau) → Jerry Kao (jerry.kao)
status: Confirmed → Incomplete
milestone: 0.37.0 → 0.51.0
Jerry Kao (jerry.kao)
Changed in plainbox-provider-checkbox:
assignee: Jerry Kao (jerry.kao) → Erin Chen (iamerin-c)
Revision history for this message
Erin Chen (iamerin-c) wrote :

Need to confirm with PM which platform supported accelerometer

Changed in plainbox-provider-checkbox:
assignee: Erin Chen (iamerin-c) → Gene Li (genelicc)
Changed in plainbox-provider-checkbox:
milestone: 0.51.0 → none
Changed in plainbox-provider-checkbox:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments