tree: 586864451a0e57080c9a1a1061d4fcb764d1bfb9 [path history] [tgz]
  1. 99-mems_setup.rules
  2. accel_3d_test.cc
  3. accelerometer_test.cc
  4. als_test.cc
  5. BUILD.gn
  6. configuration.cc
  7. configuration.h
  8. delegate.h
  9. delegate_impl.cc
  10. delegate_impl.h
  11. DIR_METADATA
  12. gyroscope_test.cc
  13. light_test.cc
  14. OWNERS
  15. proximity_test.cc
  16. README.md
  17. remove.cc
  18. sensor_kind.cc
  19. sensor_kind.h
  20. sensor_location.h
  21. setup.cc
  22. test_fakes.cc
  23. test_fakes.h
  24. test_helper.cc
  25. test_helper.h
mems_setup/README.md

Chrome OS MEMS Setup Code

/usr/sbin/mems_setup

This tool handles the boot-time setup of cros_ec sensors on the device, such as accelerometers, gyroscopes, and potentially other sensors in the future.

The goals of introducing this tool vs. using a shell script include:

  • improved testability;
  • more readable;
  • better performance.

This tool is based on libmems.

Configuration

Currently, the actions taken by the tool are statically determined by the type of sensor being initialized, and the only values that are discovered at runtime are the VPD calibrations. If your use case needs tweaking the behavior of this tool in other ways, please file a bug.