Revert "main: Add artificial delay before starting daemon"
This reverts commit 5468452f7a
as
the problem was root-caused and fixed in the upstream kernel.
Please see README for the fix' details.
Closes: #116
This commit is contained in:
16
README.md
16
README.md
@@ -89,16 +89,14 @@ If your device does not contain a compass, you can run tests with:
|
|||||||
Known problems
|
Known problems
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Every Linux kernel from 4.3 up to the latest versions (4.12-rc3 at the time of writing) have a bug that
|
Every Linux kernel from 4.3 up to version 4.12 had a bug that made
|
||||||
make iio-sensor-proxy fail to see any events coming from sensors until the sensor is unplugged and replugged
|
made iio-sensor-proxy fail to see any events coming from sensors until the
|
||||||
or suspended and resumed.
|
sensor was power-cycled (unplugged and replugged, or suspended and resumed).
|
||||||
|
|
||||||
A work-around for this problem was added in [this commit](https://github.com/hadess/iio-sensor-proxy/commit/5468452f7a72566d2e6ddc44f9396d3d088fa9fb)
|
The bug was finally fixed in [this commit](https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=fixes-togreg&id=eafad73ed3851707fa6e3124a255fc049ff9545d)
|
||||||
to minimise the impact of this kernel bug. The bug has been reported but still not root-caused. It's
|
in the upstream kernel and backported to stable releases. If you experience
|
||||||
a race condition and hard to "not reproduce" with certainty, meaning a number of possible of unaffected
|
unresponsive sensors, ask your distributor to make sure this patch was
|
||||||
kernels work because of different timings.
|
applied to the version you're using.
|
||||||
|
|
||||||
See also [this linux-iio thread](https://www.spinics.net/lists/linux-iio/msg29983.html).
|
|
||||||
|
|
||||||
References
|
References
|
||||||
----------
|
----------
|
||||||
|
@@ -795,8 +795,6 @@ int main (int argc, char **argv)
|
|||||||
SensorData *data;
|
SensorData *data;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
g_usleep (G_USEC_PER_SEC * 3);
|
|
||||||
|
|
||||||
data = g_new0 (SensorData, 1);
|
data = g_new0 (SensorData, 1);
|
||||||
data->previous_orientation = ORIENTATION_UNDEFINED;
|
data->previous_orientation = ORIENTATION_UNDEFINED;
|
||||||
data->uses_lux = TRUE;
|
data->uses_lux = TRUE;
|
||||||
|
Reference in New Issue
Block a user