#2366: Missing accelerometer events
---------------------+------------------------------------------------------
 Reporter:  mkburza  |          Owner:  openmoko-kernel     
     Type:  defect   |         Status:  new                 
 Priority:  highest  |      Milestone:  stable-kernel-2009.1
Component:  kernel   |        Version:  unspecified         
 Severity:  normal   |       Keywords:                      
 Haspatch:  0        |      Blockedby:                      
Estimated:           |    Patchreview:                      
 Blocking:           |   Reproducible:                      
---------------------+------------------------------------------------------

Comment(by neilbrown):

 This is expected behaviour.
 These are events that report when something changes.
 If nothing changes, you don't get an event.

 In particular, if the X and Y acceleration changes but the Z acceleration
 doesn't, you get
 X and Y events but not Z events.  You need to think of then as 3 separate
 accelerometers which report separately.

 If you want to find the current value of any of the three, you can either
 remember the last time it reported, or use the EVIOCGABS ioctl (See
 /usr/include/linux/input.h for details)

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2366#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac

Reply via email to