| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* "//Accel sensor is first on and last off"
This is totally wrong. The since we are using a single sysfs path
to enable and disable all of the sensors, the kernel driver uses
bitwise operations on the input value to know which sensors should
be enabled. The current logic wrongly assumes that the sensors are
enabled and disabled in a specific order and if accelerometer was
disabled, all of the other sensors were being disabled too. This
caused inconsistent sensor states between the sensor HAL and the
kernel driver and most of the time, the sensors failed to work
properly and drained battery.
Simplify the code to use bitwise operations instead of arithematic
operations to keep things clean. Additionally, since two or more
sensors can be enabled or disabled at the same time, we use a lock
to prevent race conditions.
Change-Id: Ifc3fab1456d4061f58d52f2ecda822c6157aae6e
|
|
|
|
| |
Change-Id: I89bcc9c86d1974348f67ec4b5974f52c05de711d
|
|
|
|
| |
Change-Id: I94bed7e8e1a722cef01649930c82c84276720946
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 00ac0f43785afd63a16b74034f4701928e941360.
Change-Id: I810bad7b533d8c8edf0152b36874789e02994bad
n7100: sensors: Fix buffer size
Change-Id: I93a999a47ade6982c0b1fec56d611465f8dad830
Conflicts:
n7100.mk
|
|
|
|
| |
This reverts commit 28e3038bf810016925668ff5d8236325d37aaab9.
|
|
|
|
| |
This reverts commit cd5145640187472147f77a2e9be8e7055097b581.
|
|
|
|
|
|
|
|
|
|
|
| |
-dibable all sensors when screen is off.
port from t0: http://review.cyanogenmod.org/#/c/60292/
Change-Id: I66566f5a17acdc7c6dda84eef81af928567cfa37
Conflicts:
libsensors/sensors.h
|
|
smdk4412: https://gerrit.omnirom.org/#/c/3934/
This reverts commit 1862e93acf995525493f0c47f4ba6fde37611ba2.
Change-Id: Ib5c14f7da94ea1696bae36f7d0bf19a0c63e57e9
Conflicts:
BoardConfig.mk
|