Accelerometer problems

Paul-Valentin Borza paulvalentin at borza.ro
Sat Jun 28 18:42:35 CEST 2008


Hi guys,

There are some problems with the accelerometers. I've tested reading the
accelerometer with
hexdump /dev/input/event2 (top accelerometer)
hexdump /dev/input/event3 (bottom accelerometer)

The DEVEL IMAGE behaves weird when it comes to accelerometers.
You can only read one accelerometer, and the other one blocks when you start
reading.
The biggest problem is that you don't know which one is working and which
one is not; because at each new restart of the phone, the accelerometer that
is working becomes the non-working one, and the one that wasn't working
before the restart, is working after a new restart.
I really don'r understand this behaviour, but there is clearly a problem
here.

Now, the FSO IMAGE... both accelerometer work!
But you can't read them both at the same time. When you start reading the
other accel (while you're reading an accelerometer) it blocks after a few
seconds.

Hope this helps, and someone can figure it out. It's critical for the
accelerometer-based gestures project - I have to know that at least one
accelerometer is working for sure.
The gesture daemon reads the top accelerometer, but it sometimes work and
sometimes it fails, as described above.

Paul

-- 
http://www.borza.ro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080628/8297b4c9/attachment.htm 


More information about the openmoko-devel mailing list