[HD2 Android SD Development] memin1857:
Freezes are fixed now.

EVEN IF YOU ARE NOT GETTING TOUCH SCREEN / G-SENSOR FREEZES WITH USUAL USAGE OF YOUR PHONE, INSTALL SENSOR DEBUG, BUBBLE, COMPASS APP OR GAMES AND TRY IF THEY FREEZE WHEN YOU SHAKE/MOVE THE PHONE OR WALK WITH THE PHONE IN YOUR HAND. Bubble app is the most freezing app. To find it ssearch the market for bz.ktk.bubble. Enable "show angle" from bubble apps settings. Game example: Teeter

Make sure it has been at least 2 minutes since Android has booted. (Or it may fool you as it is busy when first home screen appears after boot)

Freezes have been mostly eliminated with newer builds/kernels, but they are not completely gone.

I am no longer getting any freezes in any app now. Not in compass apps, not in games, not in sensor displaying apps, not in calibration tool. I am also not getting freezes while I am walking with the phone.

I am not yet sure how this exactly happened (as I always had freezes in those apps when the phone moved) but currently my android build updates the AK8973Prms.txt file every minute by itself (doesn't change very much, but quite different from the beginning) and the current values have absolutely no freezes.

These values have no more freezes. (since they keep changing it may not last for days) Please try:

[AK8973]

HDOE_STATUS_SLIDER_OPEN=2

HDOE_STATUS_SLIDER_CLOSE=0

HDOE_SUCTEMP=111

HDAC_SLIDER_OPEN.x=4

HDAC_SLIDER_OPEN.y=135

HDAC_SLIDER_OPEN.z=8

HOFFSET_SLIDER_OPEN.x=-849

HOFFSET_SLIDER_OPEN.y=1179

HOFFSET_SLIDER_OPEN.z=-653

HDAC_SLIDER_CLOSE.x=0

HDAC_SLIDER_CLOSE.y=0

HDAC_SLIDER_CLOSE.z=0

HOFFSET_SLIDER_CLOSE.x=0

HOFFSET_SLIDER_CLOSE.y=0

HOFFSET_SLIDER_CLOSE.z=0

ASENSE.x=256

ASENSE.y=256

ASENSE.z=256

AOFFSET.x=0

AOFFSET.y=0

AOFFSET.z=0

Seems

A low HDAC_SLIDER_OPEN.x value

A large negative HOFFSET_SLIDER_OPEN.x value

A high HOFFSET_SLIDER_OPEN.y value

A large negative HOFFSET_SLIDER_OPEN.z value

and along with some other thing I did/happened fixed my freeze problems.

Some nexus based builds don't have slider open/close lines.

Change the AOFFSET.x y and z values to your device to level it on a table. (check post 1)

I am not attaching the file itself to this post because of differences between windows and linux with text files, just to be safe. (Paragraphs get messed up)

Also using the calibration tool with the phone face down gives better results with z axis. (to be able to tap on calibrate, put your phone on the table and make it just go over the edge of the table and tap from underside)

We need some feedback from other people now. Devs are welcome to use this information to open up ways to fix g-sensor in kernel.

I am using mdeejay desire hd 3.4 build. These may be different in other builds. If you find out please share.

Freezes returned after reboot. I am trying to find out how refix again.

I AM ASKING EVERYBODY TO TELL

1) If they have the freezes with their default configuration with bubble/sensor app moving/walking etc.

2) If my values fix the freeezes

3) If their filenames etc is different

4) Please also write your build and kernel type/version/base winmo rom and radio

Example: (copy paste and edit in your post please)

Default configuration have freezes: YES

New values fix freezes: YES

Different files: NO

Build/Kernel: mdeejay desire hd 3.4 / huanyu #21 evo base miri WM6.5 (21916) v19.1 (3.14 base) 2.15.50 radio

This is not over yet, with feedback we might find exact long term fix for everyone.

EDIT: These values work with some people. If they don't work you, experiment with different values. Since the results are reflected in realtime for most builds (no reboot required) it is much easier. Also don't edit the file on windows pc, it may get messed up. Some builds auto update the values when sensor app is reopened/switched to.

IMPORTANT: Try to temprorarily change AOFFSET.x=90 and return to your app. When phone is on the table, your leveling bubble or pitch/roll must be way off. This way you can see if with your build changes are reflected in realtime or not. If not try restarting and give feedback please. (After that revert AOFFSET.x to 0 or other value your want to fix back orientation)

EDIT 2: My sensors seem to be working perfectly since I also calibrated the z-axis. (post 61 on page 7) I need confirmation on this.