On Fri, 24 Oct 2008 00:47:39 -0700 (PDT) hamody <[EMAIL PROTECTED]> wrote:
> Lis302dl send data to app by interrupt mode.Now there is a > problem,how does the sensor detect > very slight phone rotation? > In my case,though the threshold&duration is sensitive,but it still > cannot trigger the interrupt when > the phone slightly rotate. > > Any suggestion to solve it? I've also thought about this, and I think it can be solved at the application level (probably some daemon which will export the interface further). What the daemon can do is to first set a threshold, and when the daemon wakes up because of new data (the device is moved), it can set the threshold to zero (to just spew out all data) in sysfs. When the device has been still for some configurable time (by reading samples at some interval), the daemon can again setup a threshold and go back to sleep. I guess this would go into odeviced in the Openmoko case. // Simon
