Ticket #1613 (closed defect: fixed)
Reading of Accelerometers hangs if both events are open.
|Reported by:||timo||Owned by:||openmoko-kernel|
|Blocking:||Estimated Completion (week):|
If one process opens both events (/dev/input/event2 u. .../event3) some times the read procedure is blocked until termination of the programm. Several data could be read and than the read function block. This occures in c and python. If a programm only open one accel it works stable.
Neod open both accels and read data from it. This cause a blocking of one accel. So only one accel is able for other applications and the neod process which is reading the blocked accel do not get any data.
Problem here is that it is random which of the two accels are blocked at startup.
i have attached a python programm that focus on the issue. Based on Mickeys test programm. (if you komment the line that opens the 2nd accel it will work well if you are lucky and neod do not block this the 1st accel)