Jump to content

Recommended Posts

Guest edge123
Posted

Mine compass and accelometr never show stable values. Seems like hardware failure, or an digital noise ;)

Is there way to calibrate compass and accelometr? On some devices there's "Settings -> Location and Security -> Calibrate Compass" but ZTE doesn't have something like this.

Or is there way to change their sensitivity?

Also, I didn't find the way to completely power down an sensor (not via settings, but via /sys/devices/ interfce). Probably someone can add this features to kernel?

Guest edge123
Posted

Also seems that most common problem is /system/bin/akmd2 which earn about 6% of CPU power regardless on Android sensor's settings. On other devices there's "alternative" AKMD file, but it didn't work on SF.

If someone could give me the source code of akmd2, I'll try to fix it.

Guest edge123
Posted

Can someone publish average CPU consumption for AKMD2 process on different ROMs with "display auto-rotation" option ON and OFF?

For example:

rom: JJ5

rotaion on: 3%

rotation off: 5%

To get real values, please execute 'top' command via an terminal

Guest meinnit
Posted

I'm glad you brought up the issue with akmd2. It uses on average 5-6% CPU when my phone is awake. This seems like a waste of CPU when you are not using any sensors at all.

I would also like to be able to turn of a sensor completely and only turn on when needed. This would save some valuable battery

Guest edge123
Posted
I'm glad you brought up the issue with akmd2. It uses on average 5-6% CPU when my phone is awake. This seems like a waste of CPU when you are not using any sensors at all.

I would also like to be able to turn of a sensor completely and only turn on when needed. This would save some valuable battery

You can use Tasker & android scripting to stop akmd2. Use shell command "stop akmd" to disable sensors, and "start akmd" to bring them back.

p.s. light and proximity sensors used another library, so akmd will stop only accelometr and compass.

p.s.s. if someone good enough in C++, hope that it's possible to recompile code posted above for use with SF

Guest meinnit
Posted
You can use Tasker & android scripting to stop akmd2. Use shell command "stop akmd" to disable sensors, and "start akmd" to bring them back.

p.s. light and proximity sensors used another library, so akmd will stop only accelometr and compass.

p.s.s. if someone good enough in C++, hope that it's possible to recompile code posted above for use with SF

Thanks for that. May have to purchase Tasker as it seems very useful!

What does your modified code do?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.