Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Sampling Frequency of the Acceleration Sensor


  • Please log in to reply
2 replies to this topic

#1 sbreuss

sbreuss
  • Members
  • 1 posts
  • Device Model:|2|
  • MOD Version:1.6
  • Recovery Image:Cyanogen

Posted 26 July 2011 - 11:10 AM

I have a problem with the sample rate of the acceleration sensor in cyanogenmod 7.1 RC1. Using the stock firmware (Froyo) and SensorManager.SENSOR_DELAY_FASTEST I usually get a 100 Hz signal. But with cyanogenmod the sample rate drops to 10 Hz...

Any ideas / suggestions?

Cheers,
Simon

Update: Also tested this issue on a HTC Desire with 7.1 RC1 and the frequency also seems to be reduced to a maximum of 25 Hz. Is this a general Cyanogenmod bug?

Edited by sbreuss, 31 July 2011 - 02:47 PM.


#2 liborzakopal

liborzakopal
  • Members
  • 1 posts
  • Device Model:Samsung Galaxy S (I9000)
  • MOD Version:CM 7.1.0-GalaxyS
  • Recovery Image:Cyanogen

Posted 28 November 2011 - 10:36 PM

UP :)

Hi, I guess I am having the same problem on my CM 7.1.0 GalaxyS (stock kernel). I noticed the slow accelerometer sample rate. Then I compared it to my friends phone using the same app and the output was a lot smoother. After a few days of searching on the web, there seems to be no usable information for me or I had no luck finding it :)
Is there a way to change the sampling rate of the acc. sensor or maybe some sensor driver update?

Thanks for any help with this :)

#3 wolas

wolas
  • Members
  • 2 posts
  • Device Model:Samsung Galaxy i9000
  • MOD Version:7.1 stable
  • Recovery Image:Cyanogen

Posted 11 December 2011 - 06:13 PM

I have 10hz rate too. I guess in code there is one zero too much or too less coz rate is so round.

The funny thing is I m creating some project for university using sensors and I forgot completely that I m using Cyanogenmod, so first thing in my mind was "uhh what I did wrong to make it lag so badly" :) I m using cyanogen mod stable 7.1.

I guess this rate should suck for gaming. Also found that other phones also have same issue so this probably is not phone specific.
http://code.google.c.../detail?id=3264

Edited by wolas, 11 December 2011 - 06:16 PM.