Openmoko Bug #1613: Reading of Accelerometers hangs if both events are open.

Openmoko Public Trac bugs at
Tue Jul 15 17:35:48 CEST 2008

#1613: Reading of Accelerometers hangs if both events are open.
 Reporter:  timo             |       Owner:  openmoko-kernel     
     Type:  defect           |      Status:  new                 
 Priority:  high             |   Milestone:                      
Component:  System Software  |     Version:  GTA02v6             
 Severity:  blocker          |    Keywords:  accelerometer LIS302
 Blocking:                   |   Blockedby:                      
 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

 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

Ticket URL: <> <>
openmoko trac

More information about the openmoko-kernel mailing list