Ticket #1613 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

Reading of Accelerometers hangs if both events are open.

Reported by: timo Owned by: openmoko-kernel
Priority: high Milestone:
Component: kernel Version: GTA02v6
Severity: blocker Keywords: accelerometer LIS302
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

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)

Attachments

test.py (564 bytes) - added by timo 10 years ago.
Python accelerometer test

Change History

Changed 10 years ago by timo

Python accelerometer test

comment:1 Changed 10 years ago by walrustown

I have also run into this issue. It occurs on my FreeRunner?, with this kernel image:

kernel-image-2.6.24 - 2:2.6.24+git24+be0f111b3d1570dec174ff301d08bad995ccf1e6-r0

comment:2 Changed 9 years ago by andy

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to fixed

This is solved for a while in andy-tracking and now stable.

Note: See TracTickets for help on using tickets.