yashsingh1/xdaforums huggingface dataset:
[HD2 Android SD Development] memin1857:
Unfortunately this patch won't get pushed to git. (because it is actually a workaround)

I hope hastarin will include the patch in his future kernels.
[HD2 Android SD Development] mdeejay:
patch already included to my S4
[HD2 Android SD Development] memin1857:
Nice! :)
[HD2 Android SD Development] xmRipper:
I can't make a call after using this kernel. Force closes the call app.

But TS/GSensor freezes are totally gone. (omg I can't believe it )
[HD2 Android SD Development] mdebeljuh:
Yes, like jdivic explained in his post this is a workaround, the problems is still there but with this patch we can't see consequences of the problem. For me that's good enough until someone solves the problem.
[HD2 Android SD Development] jaedolla:
confirmed

Patch is working great. I can now type and walk at the same time, i can text while riding the bus to work. Thank you sir. You are a great!
[HD2 Android SD Development] jdivic:
Well, it's workarround only if someone can prove that it can be done right with hd2 hardware :)

I mean, who knows for sure that it isn't done this way in winmo driver?

However it works, it's out and lets use it (I mean lets play some gsen powered games :)).
[HD2 Android SD Development] memin1857:
I agree. Since no adverse effects have actually been found, I think this workaround is equal to a fix.
[HD2 Android SD Development] hastarin:
Did Markinus actually say that? Looking at logs he said he'd take look at it.

Sent from my HTC HD2
[HD2 Android SD Development] aread22:
Can anyone apply this patch to michyprima's latest R11 kernel so we can have a solid RMNET based build?

Thanks
[HD2 Android SD Development] memin1857:
he told me in irc pm session.
[HD2 Android SD Development] marianoitalianoo:
I tested patched Hastarin kernel with HD2ONE 0.3.1 build and works GREAT !

Big THX
[HD2 Android SD Development] xXZaufiXx:
do this fix also solves the gsensor problems in the mdeejay desire hd build :confused:
[HD2 Android SD Development] jdivic:
I would say yes....
[HD2 Android SD Development] jdivic:
About this being a workaround... you may look at it as a tuning... we use existing mechanisms just tweak them a little bit :-) Something like different governers :)
[HD2 Android SD Development] klaufix:
No freezes more for my coredroid build :-) many thx this is my best day with android :-)
[HD2 Android SD Development] vegaman:
It's a workaround because it's changing code that should work on other devices, defining variables that it should calculate itself...

For example I hope we could eventually move to a CM kernel (tried porting it myself and no luck booting, Markinus had the same problem last I checked) which would mean we couldn't use something like this unless we maintained our own fork. Much better to write code that can potentially be pushed upstream.

Not that I'm complaining about the patch, I've applied it to my own kernel (don't ask me to share it, it's mostly for testing - if any of the patches I've tried prove to be useful I'll be sure to share them somewhere though).
[HD2 Android SD Development] jdivic:
I completely agree... after the effort we spent to try figure out what is going on here I really would like if someone one day show me where is the real problem... we start with assumption that there is some bug in code, most likely something with all kind of exclusions and synchronizations but it seams that all is well there... g-sensor just keeps bus occupied after reading x or y or z axis from time to time...
[HD2 Android SD Development] antonsb:
Hey, I plugged it into my HD2ONE 0.3.1 as well (on top of the old Hastarin kernel) and my WiFi and 3G no longer work. Any idea what I might be doing wrong? (WiFi just says Error when trying to enable it). I looked the issue up and all I find is that I must be using a kernel not meant for my device which just isn't the case.

Thx a lot in advance
[HD2 Android SD Development] enneract:
The 'for testing' patched kernel works beautifully. I understand that it might be a kludge, but it WORKS.

Really would love if it was applied to a nexus kernel, though, for RMNET.

you didn't install the driver modules.
[HD2 Android SD Development] boardwak:
I can confirm that this kernel works great with my current setup (below). Before I was getting TS freezes while walking, now I don't get any. Camera works, too.

WinMo: VBNROM Reloaded 2

Android: NexusHD2-FRG83 v1.6

Kernel: hastarin 8.2 with TS fix

Radio: 2.15.50.14

SD: Kingston Class 4 16gb

TMOUS
[HD2 Android SD Development] sblar:
TS

Hi

I gather that is a great fix, I'm just not sure if I'm affected by TS freeze...

I know what the Gsensor is, but could someone explain what TS is. I have been twisting my brain and searched the forums without any luck.

Sorry for beeing such a noob (I'm really trying :o
[HD2 Android SD Development] ZeeJM:
TS = Touch Screen
[HD2 Android SD Development] memin1857:
Touch screen (TS) freezes were occuring because of g-sensor. (when phone was physically moved touch screen stopped responding for a few seconds)

This made it almost impossible to use the phone in a moving car or playing games.

While this fix does not prevent the g-sensor problem BUT it makes the recovery almost instant (instead of a few seconds) so you don't notice it at all. No consequences or adverse effects have been seen yet.

The kernel + modules in this thread (page 14 post 140) is an example patched hastarin 8.2 kernel. Since the source code has been released, anybody capable of building kernels (e.g. hastarin, mdeejay and others) can use it in their future built kernels. Check hastarin or mdeejay kernel threads for newer kernels with this patch applied.
[HD2 Android SD Development] sblar:
Doh! Now I really feel stupid :rolleyes:

Thanks though
[HD2 Android SD Development] sblar:
Thanks a lot. I'm not sure what the G-sensor problem is exactly. Has it to do with the missing calibration?
[HD2 Android SD Development] themadproducer:
So far this patched kernel is working TERRIFICALLY with my setup.

Certain gsensor games and even skymap freezes seem to be gone.

It's hard to believe. Feels liberating really!

Thanks

- Mdeejay 2.3

- ChuckyDroidROM

- HD2_Leo_Radio_2.14.50.04

- 16gb Kingston class 10
[HD2 Android SD Development] nutmegy:
Apologies for being dumb but can I apply the patch myself to a michyprima kernel? I have an extended battery and would really want to keep it working. I've downloaded the.patch file but what can I do with it now?
[HD2 Android SD Development] memin1857:
This patch does not resolve the calibration problem. G-sensor calibration is another problem but there is also a workaround for it in this thread, check post 1.

The g-sensor problem this patch resolves is the touch screen freeze caused by g-sensor. g-sensor, touch screen, camera, sensors etc all communicate via the industrial standart i2c bus (just like the pci bus in desktop pcs) gsensor somehow (unknown yet, why) clogs the bus making communication impossible for a brief moment with older kernels and that results in ts not responding frequently when phone is physically moved. This new patch makes that moment very very short (unnoticably short)

Why don't you just try and give feedback whether it works or not? AFAIK many people are wondering if this would be applied to a nexus based kernel. (such as michyprima r11) But since nexus based kernels are missing the recovery code (ts freeze don't come back unless phone is slept) I doubt this code will work. But I am looking forward to hearing your results.

Please note michyprima r0 is not a nexus based kernel and should work properly anyway, so don't forget to mention which michyprima kernel you're talking about.

If you don't know how to build a kernel or apply a diff/patch to a kernel code, we can't help you from this thread, try googling how to build your own linux kernel etc.
[HD2 Android SD Development] Abasratca:
Can anyone apply this patch to hastarin r8.2UVOC kernel?

Thanks
[HD2 Android SD Development] sblar:
Thank you for this explanation (which even I could understand) and for your general effort in testing and informing us all on this very important issue.

Do you have any hints as what to look out for to get a new kernel with this patch. What I mean is that someone will hopefully soon put this into their kernel, but how will we know?
[HD2 Android SD Development] memin1857:
Hastarin and Mdeejay are already incorporating the patch to their kernel builds:

Hastarin Kernel:

http://xdaforums.com/showthread.php?t=787588

Mdeejay Kernel:

http://xdaforums.com/showthread.php?t=831585

It's written in their changelogs.
[HD2 Android SD Development] sblar:
Wow, I didn't think they moved that fast! I actually checked hastarin's late yesterday in hope for maybe a comment on the issue, and now it's fixed ;)
[HD2 Android SD Development] hastarin:
r8.3b includes this patch, and you can tweak the voltage yourself if you choose to undervolt, and use SetCPU if you want to overclock.

Or for those that have an extended battery there is r8.3b_eb
[HD2 Android SD Development] nkos719:
you are just incredible guys...thank yaaaa....!!
[HD2 Android SD Development] Stefano_1986_:
Hi,

I have this problem:

I have tried many different build but the problem is always there

What can I do?

Thanks
[HD2 Android SD Development] AgeOfPanic:
I just wanted to say thanks for all your work. I upgraded to Hastarin 8.3b and it eliminated TS freezes. Perfect. I know they call it a workaround, but it feels like a solid fix to me.
[HD2 Android SD Development] tean90:
how to update my hastrin kernel 8.0 to 8.2? i never update before, please tell me the steps thanks!
[HD2 Android SD Development] Vincy91:
I have hastarin r8.2 and I cannot update to hastarin r 8.3 or r8.4 because the camera doesn't work otherwise adding camera fixes. Can i Include this patch in hastarin r8.2? What is the way to make this? Thank's a lot!
[HD2 Android SD Development] mdebeljuh:
You can use my modified hastarin 8.2 kernel:

http://www.multiupload.com/AMLA3GQS9U
[HD2 Android SD Development] Vincy91:
Thank you so much mdebeljuh! Are there difference from kernel posted by you at post 140 on page 14? Whatever, this modified kernel 8.2 differs from the original only because it has this patch, doesn't right?

Thank you again!
[HD2 Android SD Development] mdebeljuh:
Yes, this is kernel compiled from hastarin sources and only change is patch for ts/gsensor freezes. This kernel in compare to kernel posted at post 140 has much less logging and because of that is better for everyday use.
[HD2 Android SD Development] Vincy91:
Than you so much thank you thank you
[HD2 Android SD Development] glodos:
Wifi stops working on MDJ build after applying this patch:(
[HD2 Android SD Development] jaidedfocus:
With these updates are we closer to nand? I know one of these issues preventing them from doing a Nand port was the TS freeze and G-Sensor calibration. Also some issues with corruption but maybe that was related to this? Either way, its good to see people dedicating so much time to getting these wrinkles ironed out. Good job guys!
[HD2 Android SD Development] htcfreak:
Sorry to say but didin work for me..!!!

Rather my screen got dis-oriented by few tiny pixels..!!!

Details

WM ROM : - VBN with Latest Radio

Android Build : - AndroidMedaUltimateV1.3

Kernel : - Hastarin 8.2
[HD2 Android SD Development] powerover:
freeze issue

Hi all, I've tried the modified Hastarin 8.2 kernel and still got a freeze in Hero of sparta game today, I've changed the AK8973Prms.txt as described and will test it again today.

Do I need the latest Hastarin 8.5 kernel or is the issue not related?

I have everything else working great and I don't want to screw anything up...

----------------------------------------

TMOUS hd2

Chuckyrom lite gtx

3 sec EBL 2.0 loader

Subcraft 2.0 final with Hastarin 8.2 modified KERNEL

fixed GPS,no auto-rotation
[HD2 Android SD Development] htcfreak:
Also now I have screen lag..!!!

That to a pretty bad 1..!!!
[HD2 Android SD Development] powerover:
freeze issue

UPDATE:

still have freeze issue with everthing it's not working :(

Please help me understand, the freeze happens in g-sensor games?

my screen locked up after a short game of "the wars" which has no motion sensor controls...

As i mentioned I use the Shubcraft which is the best build to date

that uses CM6 which I need for hebrew support

I'm sure someone has the same setup (shubcraft+hastarin 8.2)

and has tried this fix before... tell me what worked for you.

Thank you in Adv.
[HD2 Android SD Development] powerover:
I have the same problem with Shubcraft

Please help me please

[Edit]: Wifi repaired by applying old wifi module

but after wipe and hastarin 8.2+anti freeze patch

still froze today after playing a short movie

Will try to remove gsensor.dll from winmo now.

After that if still freeze then I will have no solution.

Help will be greatly appreciated
[HD2 Android SD Development] memin1857:
Guys,

Use Hastarin kernel:

http://xdaforums.com/showthread.php?t=787588

or

mdeejay kernel:

http://xdaforums.com/showthread.php?t=831585

They are new, and include this patch.
[HD2 Android SD Development] Metastable:
Hasatrin also has a newer kernel with the old cam driver for those who can't get the new cam working.

http://xdaforums.com/showthread.php?t=787588
[HD2 Android SD Development] egamifx:
How do I apply this patch? where to copy to?

Thanks,
[HD2 Android SD Development] mikus92:
+1

Thanks.
[HD2 Android SD Development] frenchie91:
hey can anyone help me. i have the Froyo Android 2.2 on my t-mobile HD2 and the 3g network does not work but if i change it back to the regular WM6 software then all works fine..can someone please help me
[HD2 Android SD Development] memin1857:
You don't apply this patch. You just use a new kernel that already includes this patch:

Use mdeejay kernel:

http://xdaforums.com/showthread.php?t=831585

or

Hastarin kernel:

http://xdaforums.com/showthread.php?t=787588
[HD2 Android SD Development] mikus92:
Thanks for your answer.

Sorry for my newbie question but for use the new kernel

I must :

- Copy zImage to the "Android" folder on SD card

- Copy "root" folder to "Android" folder on your SD card

Right ? :o
[HD2 Android SD Development] was2103:
Thank you so much. Your post 11 was easy to follow and seems to have solved my problem on my HD2. Appreciated.
[HD2 Android SD Development] matt_tee:
It Worked!

This fix worked for me - Fantastic!

I am using ppc shift 29003 build and android mccm se froyo v3.4

Big thank you!

Matt.
[HD2 Android SD Development] memin1857:
That is correct :)
[HD2 Android SD Development] jhonnyviana:
how to??

uhn i got the map but how to installed????
[HD2 Android SD Development] djcyphers:
Thanks, that data you posted worked! I figured auto-calibration was finally working, but apparently not. Whoops!
[HD2 Android SD Development] Jplatanos:
dumb luck????

cut my ak8973Prms file out of the /data/misc folder, trying to edit it to no avail, into /sdcard/downloads folder seems to be doing the job..... phone is very responsive in market, internet, and text now.

am using froyosense 3.2

ps. no values were changed....like I said maybe dumb luck
[HD2 Android SD Development] slayerns:
Never mind
[HD2 Android SD Development] CaCtuZ123:
Has this anything to do with hitting the back button screen freeze?
[HD2 Android SD Development] scroll2:
[AK8973]

HDOE_STATUS_SLIDER_OPEN=1

HDOE_STATUS_SLIDER_CLOSE=0

HDOE_SUCTEMP=114

HDAC_SLIDER_OPEN.x=128

HDAC_SLIDER_OPEN.y=135

HDAC_SLIDER_OPEN.z=4

HOFFSET_SLIDER_OPEN.x=250

HOFFSET_SLIDER_OPEN.y=593

HOFFSET_SLIDER_OPEN.z=175

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

Copy/paste in text editor

1. save this AK8973Prms.txt

2. Save again AK8973Prms.txt.tmp

3. Change both with in /data/misc folder with rootexplorer

It works for me.
[HD2 Android SD Development] Kazz88:
hi, do u restart after this? im trying to calibrate stock gingerbread. why does the HTC g-sensor calibration work? (when upside down) is there an app in market or anywhere that can do this?

Values dint work
[HD2 Android SD Development] tstee3:
Thanks ! works wonderful :)
[HD2 Android SD Development] l1f35ux:
I wasn't able to get to the data file directory using any file management system. I kept on getting the "Root Access Failed" error message. How do I grant root permission when requested by superuser because that seems to be the problem it's having. for some reason the file management apps installed on my htc leo don't have access to my dir.
[HD2 Android SD Development] japookie:
i have been trying to solve my g sensor issue for a few hours now and installed root explorer. when i navigated to the data directory i was greeted with the message that the directory was empty. How do i find the AK8973Prms.txt text file so i can edit it?
[HD2 Android SD Development] x3nophobia:
Hi,

i would to know, does this method apply also to android NAND build? cause i have a ts freeze for a short period of times while playing angry bird.

i did calibrate gsensor. but when i try to recalibrate, the vertical sensor seems doesnt work as it won't stay in the middle of vertical sensor portion. the horizontal one seems fine.

kindly help pls :confused:
[HD2 Android SD Development] asidrave:
From post #11

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)

this worked for me....thanks :)
[HD2 Android SD Development] insaneman:
Perfect fix

Thanks, used adb to pull/change/push the file.

Everything works fine.
[HD2 Android SD Development] Namuh:
I have android installed on nand and it use to be that the touch screen would freeze when I pushed the red power button to bring it out of sleep mode. All I had to do was push the back arrow button and then I could slide the lock screen down and everything was fine. Now I can't get the touchscreen to unlock no matter what I try. I have tried to reboot, take the battery out etc but when the lock screen comes up now I cant slide it down to unlock it. I push every button to get the screen to turn on and I cant unlock it because the screen wont respond.What do I do? :confused: :mad:
[HD2 Android SD Development] CaCtuZ123:
You can get back if you jerk between different buttons...with patience.

In the end your screen is going to die :-(

Mine did after having that problem since august, back button = screen freeze.

If you get back....Download button saviour and use the software buttons to gain longer life in your HD2.

Mine is off to HTC, if this should be a hardware issue which I'm 100% sure of, I don't need pay a penny even thou my warranty expired in january according to the woman I spoke to since they replaced the screen in june. Otherwise 150 € plus :-(
[HD2 Android SD Development] Namuh:
Ok then looks like its dead and its not under warranty either. Last HTC I buy due to shoddy button design and QC. I mean seriously, we aren't supposed to use the buttons much? LOL. Well,I'm probably going to trash it and get an Atrix or some other phone then. Thanks for the help!
[HD2 Android SD Development] m4rc3l1n0:
Are you sure it is hardware (button) issue? not Android built issue?

It is working fine when I'm using Windows Mobile
[HD2 Android SD Development] m4rc3l1n0:
I have the same problem

but with different build of android (SD)

but it works fine with windows mobile

android build problem? or something else?
[HD2 Android SD Development] Bas2ct:
Hello Memin1857,

My phone is giving me trouble since I installed Android (NAND). My tilt sensor / g-sensor / accelerometer does not work at all. I've tried various thing, reinstalled a dozen times and still nothing. So I did a search on the forum and found this thread. Looks like you have got a lot of experience with the g-sensor.

So, I started reading and saw you mentioned "Sensor Debug" from the marketplace to see what settings the g-sensor had. Well, actually when I started the program I did not get any data what so ever. I tried rebooting, but it made no difference.

Maybe you can help me figure out what is wrong? I would be very thankful.

Kind regards,

Bas
[HD2 Android SD Development] jams90:
help

hi i don't know how to apply this patch...

i have a HD2 from Tmobile and i installed this android ROM on it: http://xdaforums.com/showthread.php?t=1199917

it works well but recently i've been having issues with the touchscreen... it Freezes and i try some android from SD and same, i format it with windows mobile and same... but i don't know why if i conect it to a wifi network and Synchronize It the screen works fine again... that's the weird thing... i don't know what to do..

will this patch help me out?

thanks
[HD2 Android SD Development] YZ:
g-sensor fix worked on anyone?
[HD2 Android SD Development] crawlingcity:
I have some news. Changed the AOFFSET.x, opened bubble - freeze. almost instantaneously.

Revert to the 0 value, no freezes.
[HD2 Android SD Development] fredulus:
Using DroidExplorer I changed AK8973Prms.txt with values from post 11 along with making file read only. Works great so far no freezes and file is still read only after reboot.
[HD2 Android SD Development] jmmmmm:
Running HyperDroid and these changes seem to have ZERO effect on my sensors operation. I have changed value drastucally just to see if anything changes. Nothing ever changes sensors still show the same offset while on a lfat surface. Im even using a real bubble level just to be sure. Im changing file in the /data/misc/ folder
[HD2 Android SD Development] depakjan:
For me .. it's just no effect.. used both of your values.. calibrated my gsensor... still freezes and while playing abduction .. cow just goes in one direction for say some 3 sec and then back again..

Default configuration have freezes: YES

New values fix freezes: NO. Post 11,Post 10

Different files: NO

Build/Kernel: mdeejay's froyo sense/Hyanu's latest kernal

EDIT : Even without that file freezes occur.. so i guess it's not dependent on the file.. it's just that kernal has to be fixed.. until then we cant do anything...
[HD2 Android SD Development] hd2k10:
I couldn't get my settings to stay so I just got frustrated and deleted the file...no freezes so far, all G-Sensor functions are working as they should still and the rotate is very responsive and quick. What is this file actually needed for?

Rebooted and file came back but with different values. All are 0 except HDOE_SUCTEMP=115 and ASENSE.x/y/z are all 256 --- Vigorously shaking the phone and no freezes yet.

Edit: Freezes started again but I noticed that the file updates itself with different values. Deleted the file again and rebooted and changing the permissions to Read-Only. Will follow up.
[HD2 Android SD Development] crawlingcity:
im no expert in this matter, but if i can guess, i would say the file has the variables (and their values) to how the gsensor etc will work. That's why that changing the values will get you different pitch and roll.
[HD2 Android SD Development] Sichroteph:
Why do you call your thread Ts freeze fix ?

No miracle here, i still have Ts freezes.

Can you at least tell wich kernel are you using, since it mostly depends on that ?
[HD2 Android SD Development] t0ny0:
Wow!!! Thank you, sir. This actually works pretty good.

Used post #11 , and made the file read only after. I can throw it in the air and let if fall on the ground, and it still wont freeze. Wont try it tho. Yall shouldnt try throwing your phone either. They break :)

But in all seriousness - Thank you. You helped me come back to the good old froyo without sense.
[HD2 Android SD Development] shadiku:
Tried it on FroyoStone 3.1 but unfortunately, nothing.
[HD2 Android SD Development] ctrlaltdel:
Just tried to overwrite the file with the settings suggested in post 11 and seems better but still have freeze

I am using darkstone's froyosense v3.1 and hastarin's kernel R7.1