yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] AngelDeath:
For the person who was asking for the values to the G-Sensor:

http://xdaforums.com/showpost.php?p=11843694&postcount=6
[HD2 Android Q&A, Help & Troubleshooting and Genera] 1969lms:
g sensor and google sky problems

My son programmed my hd2 as an Android for my birthday. I loved it, but my astronomy apps and Google sky were showing 90 degrees off. I tried everything I could think of to fix it to no avail. Finally, calibrating the g sensor with the phone upside down worked! Yeah! Now my awesome phone is perfect! :D
[HD2 Android Q&A, Help & Troubleshooting and Genera] nomercy9691:
it's don't fix my problem
[HD2 Android Q&A, Help & Troubleshooting and Genera] roro97230:
Up Up Up ! someone help..
[HD2 Android Q&A, Help & Troubleshooting and Genera] tando2:
Me too! been trying all kinds of methods and roms since oct '10. no luck with any of them. g-sensor works perfectly well in any wm roms installed, but not on any android roms nand or sd. upside down calibration has no effect no matter how many times tried. edit file has no effects either.
[HD2 Android Q&A, Help & Troubleshooting and Genera] roro97230:
+1 seems like nobody can fix that problem.. If a developer could see this post to give us some help..

Just up !
[HD2 Android Q&A, Help & Troubleshooting and Genera] hen_43:
It must be the problem with Hareware!!!!!!

Damn HD2
[HD2 Android Q&A, Help & Troubleshooting and Genera] roro97230:
sure, but I think our HD2's got an new acceleroter which isn't compatible with the actually Android's driver.. That's why nothing happend when we move our phone..

If some dev could check this and fix it, it'll be awesome..

excuse my english..
[HD2 Android Q&A, Help & Troubleshooting and Genera] sambogosse:
Hello,

Just did the trick, and it got my G-sensor work again !! many thanks. For others, you should give this a try ;)

regards,
[HD2 Android Q&A, Help & Troubleshooting and Genera] RussianBear:
worked here as well :) one of the bubble's was having a seizure at the top of the screen before lol
[HD2 Android Q&A, Help & Troubleshooting and Genera] wilwok:
aww...still don't work. we(all who is having the issue) should pitch in and pay dev to get to the bottom of this issue. i'm willing to put up some money.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AParra1909:
Not sure if someone posted a solution yet.

What worked for me:

What i did was hold my phone flat up in the air so that i could see the calibration setting, hit calibrate hold steady till u get ok and Presto!

Hope it works for it runs smooth on my hd2 no lag what so ever.

Im running nand android magldr.
[HD2 Android Q&A, Help & Troubleshooting and Genera] AParra1909:
Show me the money! Lol
[HD2 Android Q&A, Help & Troubleshooting and Genera] HomeTyrant:
Hi all! 2 days ago I bought T-Mobile hd2, running WM6.5. After installing Cyanogenmod7, i have this problem too! In winmo g-sensor works perfectly, but in android it doesn't calibrate. As i can understand, this is due to missing kernel module for new g-sensor (in HD2 built after 09/2010)?
[HD2 Android Q&A, Help & Troubleshooting and Genera] HomeTyrant:
Up and up again :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] manu69x:
Hello

Any news ?

At today I have found my second HD2 that have this problem

All sensor are working in WM65 or WP7 but there is no Android rom

able to work accelerometer or compass
[HD2 Android Q&A, Help & Troubleshooting and Genera] piratashitzu:
Try:

- reinstall stock rom WIN 6.5

- calibrate

- use and power of some times

- task 29

- resintall NAND (MAGLDR, CWM, CLK, bla, bla, bla...)

It works for me. Why, how? Don't ask me. I don't know. Just try.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DENM77:
Are you saying that you had the same problem we all have with this g-sensor and after doing all that, your screen now rotates?

Or, are you just advising to try those steps?

Keep in mind that after running task29, you are completely erasing all drivers in the WM operating system from your phone.

I really like how android runs on my HD2 but the screen not rotating made me go back to WP7. Tried several NANDROID roms but none made the g-sensor work
[HD2 Android Q&A, Help & Troubleshooting and Genera] jojojohnny05:
I tried these steps on mine and it did not work for me.
[HD2 Android Q&A, Help & Troubleshooting and Genera] piratashitzu:
Some months ago when came from wm 6.5 to android. Inicialy this g problema occurred with none rotation.

I don t remember wht neither where i read to do these sequence, but it brings noemal rotation and other accelarations axis back to normal in my first droid rom, wich was cm7 from mdj.

Very sorry for can't be more helpfull, and really wish u find a way to solve your problem.
[HD2 Android Q&A, Help & Troubleshooting and Genera] pu5z3k:
someone who fix this i dontate 20$

up up up

help us :((
[HD2 Android Q&A, Help & Troubleshooting and Genera] manu69x:
Me too can donate 20$ :) Please up up up ...
[HD2 Android Q&A, Help & Troubleshooting and Genera] tobiascrystal:
I had a problem with mine too once and it was because my partition was wrong and cwm flashed it anyways. Almost all my sensors weren't working even the compass, light sensor, and gsensor. Just my thoughts.
[HD2 Android Q&A, Help & Troubleshooting and Genera] manu69x:
I tryed any kind of rom Nand or sd ... android auto rotation not works ... but wm6.5 or wp7 auto rotation works correctly ... You know if there is an android app for manual rotate the screen?
[HD2 Android Q&A, Help & Troubleshooting and Genera] selvag:
any solutions for g sensor device properties check...

---------- Post added at 04:12 PM ---------- Previous post was at 04:07 PM ----------

even I tried with bubble app... but no luck
[HD2 Android Q&A, Help & Troubleshooting and Genera] tavanthuc_a11:
me too problem :((((((((((
[HD2 Android Q&A, Help & Troubleshooting and Genera] sendromx:
i used lots of nand roms with sense and never problem about g sensor
[HD2 Android Q&A, Help & Troubleshooting and Genera] furiomerlo:
HTC HD2 g-sensor on NAND rom

A little help for the community ....

I have here 2 phones HTC HD2

one is a T-Mobile Usa version 1GB

the other is a LEO european version 512

Same HSPL 2.08 - MAGLDR v1.13 same ROM bla bla

In the first the G-sensor work

in the second (Leo) DON'T work

This happen with a lot of ROMs tested !!!

Of course no problems under WM6.5

:o
[HD2 Android Q&A, Help & Troubleshooting and Genera] selvag:
mine.. T-mobile HD2 USA unlocked version.. no luck in G-sensor.. its not working..

how to configure up side down... method.. can any have video for that...

I'm using MIUI rom

http://xdaforums.com/showpost.php?p=12769856

this issue seems major dis advantage to hd2 users...

help us.. dev guys.. to find.. driver... for this ...

Advance thanks

selvag
[HD2 Android Q&A, Help & Troubleshooting and Genera] HomeTyrant:
I too have TMoUS HD2. G-Sensor perfectly works in WM6.5 and WP7 but doesn't work in Android (I had a similar result in different ROMs). Apparently this is due to a missing kernel module. If someone tried to test it on latest kernels and have positive result - please post it in thread.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ataria2:
I have tested the new kernel 2.6.35.10 that is currently in development and still nothing the g sensor doesn't work in my TMoUS HD2.
[HD2 Android Q&A, Help & Troubleshooting and Genera] turjo_ssmc:
what about the charansing cm kernel? have u tried that. i am also facing the same problem. how come no developer is helping us
[HD2 Android Q&A, Help & Troubleshooting and Genera] Iceburner10:
Hello,

I want to push this thread up, because there must be some kind of solution!

I had my HD2 repaired because it had overheat issues. Before sending it in, I had no kind of g-sensor problems.

Now with the repaired HD2, I do.

I can't even find any calibration tools and all ROM's I tried didn't have any calibration setting to even look if it's reacting.

With AndroSensor, I can see that there is no Feedback from Accelerate-Sensor, Magnetic Field or Orientation-Sensor.

Please - Someone should and MUST! be able to fix that, I'm pretty sure it's just a very little issue within the kernel, so please, take those 1-2 days to fix that and help us with the g-sensor... see how many people are willing to donate!

Greetings

Iceburner
[HD2 Android Q&A, Help & Troubleshooting and Genera] ataria2:
Any update to this post, I have seen a lot of threads about this issue, but noone developer haven't answer yet, please help us with this Problem, We could Help you.:rolleyes:
[HD2 Android Q&A, Help & Troubleshooting and Genera] pdavnn:
help me plz
[HD2 Android Q&A, Help & Troubleshooting and Genera] duh2010:
Maybe if get to annoying someone might help us.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
up, i have the same problem, im from colombia, and i have a htc hd2 512mb with android, an my g-sensor doesn't work... any update??
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
up up... any update???
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
For starters it would be nice if the people that have a non-working g-sensor could post dmesg logs right after their devices have finished booting.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
hi, i've tried a lot of kernels, radios, roms, but the sensor still not works.. and i dont know why... reading, this post, other people say that it's a problem of new hardware...

but... what can i do for fix that???
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
Please provide a dmesg log. That way we might be able to see why it's not working or at least we'll know if the kernel is able to initialize the g-sensor.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tonygomez12:
gsensor

I have just gotten my flex board replaced and have the same problem. It does not appear to be initializing the accelerometer or the magnetic field sensor.

I will "google" dmseg and try to post a .txt file if it will help in any way. I suggest others try to post your logs as well, to compare.
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
In order to get a dmesg log, open up a terminal emulator right after your phone has finished booting and enter the following commands:

cd sdcard
dmesg > acc.txt

This will create a file acc.txt with the dmesg log on your sdcard.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tonygomez12:
Here is the log as requested. Straight after boot as per instructions.

*As a side note. Before doing the log, I flashed a wp7 rom. Surprisingly g-sensor works, just like the other users have explained.

This log is done after a clean install of a newer android build.
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
Thanks for the log. As far as I can see your g-sensor actually gets initialized by the g-sensor driver:

<6>spi_bma150_probe: G-sensor connect with microP: start initial, kvalue = 0x0

As it's not needed while booting the g-sensor goes into sleep mode, which is normal:

<6>__spi_bma150_set_mode: BMA get into SLEEP mode!

The problem is that your g-sensor never comes back up from sleeping.

A normal g-sensor would show this once in a while (it's already showing up 4 times on my phone right after it finished booting):

<6>__spi_bma150_set_mode: BMA get into NORMAL mode!
<6>__spi_bma150_set_mode: BMA get into SLEEP mode!

I'm currently looking at the code we are currently using. We are using the early suspend features which have been disabled in the gsensor code the Desire uses.
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
I have added a newer driver code for the g-sensor to my kernel:

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

It would be good if some of you could test if this helps with the g-sensor issues.
[HD2 Android Q&A, Help & Troubleshooting and Genera] tonygomez12:
Wow! I'm sure everyone with this issue really appreciates that you guys took the time to see what may be the problem.

I will test ASAP and will be reporting back.

*fingers crossed*
[HD2 Android Q&A, Help & Troubleshooting and Genera] tureka:
I've got two Tmous HD2. One accelerometer works fine but the other one works only on WinMo. I've tried marc1706_desire_0_1_9.zip new kernel and no result. But I found something like this http://xdaforums.com/showthread.php?t=1486805

but I can't save changes in my build.prop file.

My dmesg says:

<6>spi_bma150_probe: G-sensor connect with microP: start initial, kvalue = 0x0

<6>[GSNR] Gsensor disable
[HD2 Android Q&A, Help & Troubleshooting and Genera] carl1961:
if your phone has a custom rom and is rooted, you can download absolute system from market and edit the build..prop, or use ES file Explorer and enable root from the settings in ES file explorer ( you could make the changes in the rom and reinstall)

edit build.prop and change these ,they should be all together for HD2 running androids it needs to be bravo to match the sensor drivers sensors.bravo.so ( /system/lib/hw/sensors.bravo.so) mainly the ro.product.board=bravo

ro.product.name=htc_bravo

ro.product.device=bravo

ro.product.board=bravo
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
the acc.txt

ok marc1706, i just got the file that you request, thank for the explaining... now, i tink i have the same problem that the other pal, im a "newbie" and i tink that i can't upload files, bit i search in the file and i see this

<6>__spi_bma150_set_mode: BMA get into SLEEP mode!

have that solution?? if the answer is yes.., please tell me how fix that... i apreciate your help

i confess that i cant understand that file... and sorry my poor english :(

EDIT: by the way... i can try your kernel... but.. i can install it by the clockworkmod recovery?? i have been installed roms.. but im not sure how intall a a new kernel over my current rom

EDIT II: is a way to enter in the terminal emulator, and change the state of the sensor from sleep to ON ???
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
Up! Up! This thread can't dead

Enviado desde mi HTC HD2
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
up up, please!!!

by the way... why my acc.txt is 128 kb.. and the other is only < 50 kb... i see the other and it's different to my file... but.. why??
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
You can either install my kernel or fhasovic's kernel. They both have the newer g-sensor code. My kernel is for sense builds (3.x) and fhasovic's kernel is for CM and AOSP builds. With my installer you can just use the provided package. I'm not sure if that is possible in fhasovic's kernel.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
ok, i've decided by your kernel

marc.. i use THIS rom, and i think that you kernel will work (or im wrong??) i go to use your kernel... now... what i must do??

put the files in my phone and with the clockmod recovery install it??

if i change the kernel, my apps, datas, and info will be erased???

i hope that your new driver fix the problem with my sensor.. but i dont know how change it :p
[HD2 Android Q&A, Help & Troubleshooting and Genera] duh2010:
Still no solution on ths issue. There are to many people out there with this problem, can no one solve this?
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
Have you tried the kernel?

I tried the kernel but when I turn on the phone, it freezes when the screen displays 12345 go go go... :(

Enviado desde mi HTC HD2
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
up up, to this post

i ve tried edit the file init.rc wiht the vim editor.. but not success... any other idea??

cmon!!!.. it must have a solution!!!!
[HD2 Android Q&A, Help & Troubleshooting and Genera] duh2010:
Have tried different kernel but no change. I am using typhoon latest build. Please help!
[HD2 Android Q&A, Help & Troubleshooting and Genera] isitokay:
i have tried lots of kernels too, still no solution. It needs a dev to make some work on this problem, because devs are making kernels for devices with sensors already working, but not fixing this problem on our HD2s. Devs, we need your help, please help us. I will include my dmesg log later.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
is very frustrating not to have the sensor on, I feel that I can't enjoy my phone to 100%.

pleaseeeeeeeee, this must has to be some solution!
[HD2 Android Q&A, Help & Troubleshooting and Genera] smith_skh:
It seems that we have no help, it is not clear for what reason :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] ThiefZero:
Well, I finally managed to get my G-sensor working again after my HD2 came back from repair.

Inspired by this post: http://xdaforums.com/showpost.php?p=22813060&postcount=148

I did the following:

1) Used ES File Explorer explorer to go to /system/lib/hw/

In this folder, there should be a file named: "sensors.????.so"

Write down what it says in the ???? part.

2) Go to /system/ and open the "build.prop" file.

In here, locate the following lines:

ro.product.name=X

ro.product.device=X

ro.product.board=X

Replace whatever it says as X with what you wrote down earlier.

3) Save and exit (If you can't save it, make sure you've checked the "Mount File System" box in ES File Explorer settings.)

4) Reboot your phone, your G-sensor should be fully functional again. (Don't forget to enable it in settings if you've turned it off before.)

Hope this helps, and if it did, don't forget to give thanks to the original poster =].
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
hi men, thanks in advance for your reply, but, now i have a problem.... i go to the folder /system/lib/hw/... but i have 3 files:

sensors.bravo

sensors.msm7x30

sensors.qsd8k

which file is the i must use???

ok, i use the sensors.bravo.. and i put in the file build.prop:

ro.product.name=bravo

ro.product.device=bravo

ro.product.board=bravo

but.. nothing happens... i still have a not working sensor :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] ThiefZero:
Thats odd. Have you tried the other 2? It might work.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
i dont tried the other 2 because this:

msm7x30 is the chipset

and the qsd8k is the library audio... not for sensor.. but i go to try this combination:

ro.product.name=bravo

ro.product.device=bravo

ro.product.board=msm7x30

---------- Post added at 11:10 PM ---------- Previous post was at 10:47 PM ----------

houston.. we have a problem... mybuild.prop is not working (f*ck)... PLEASEEE thief zero.. copy your build.prop.. and send it to me
[HD2 Android Q&A, Help & Troubleshooting and Genera] MR.Samo:
:( followed your steps and its not working for me.

Dont whats my problem i replaced my screen and g-sensor not working since that.

Please help tried every thing and nouthing, please
[HD2 Android Q&A, Help & Troubleshooting and Genera] ThiefZero:
For some reason, I can't get those files to my PC. I copied them to my SD card but Windows is not seeing them :\. Sorry mate :(.

I'm running NexusHD2-ICS-CM9_V1.4 by Tytung, maybe you guys might have better luck trying this one (or a newer version by Tytung, mine is pretty dated by now I think).

Not sure if it'll be of any use, but my sensors were named with htcleo.
[HD2 Android Q&A, Help & Troubleshooting and Genera] turjo_ssmc:
thiefzero, were you having the same problem like ours? gsensor not working after screen replacement? i am using NexusHD2-ICS-CM9_V1.4 by Tytung too, but your method is not working
[HD2 Android Q&A, Help & Troubleshooting and Genera] aghu:
u need to change repartition,suggest check yr Rom details first.
[HD2 Android Q&A, Help & Troubleshooting and Genera] t.a.m:
I think we should keep this thread alive,maybe someone will help us.
[HD2 Android Q&A, Help & Troubleshooting and Genera] berseker1:
Well i realize a wipe with task29, i put the radio 2.15, madglr 1.13, Clk..... and a rom with ginger But the sensor keep not working... im tinking in give up :(

Enviado desde mi HD2 usando Tapatalk
[HD2 Android Q&A, Help & Troubleshooting and Genera] t.a.m:
Any help yet?
[HD2 Android Q&A, Help & Troubleshooting and Genera] nlooije:
hd2 g-sensor sporadically working

So im currently following this thread in the hope that someone will find a solution to the hd2 g-sensor not working under Android NAND.

Currently running NexusHD2-ICS-CM9-HWA v2.1 build

I tried everything that has been suggested but the g-sensor doesnt work as it should.

During normal use in SensorDebug it shows no data for Sensor orientation and Ambient magnetic field and constant data for Sensor accelerometer.

The weird thing is that sporadically, i notice that my screen rotates when i rotate the phone and when i check SensorDebug it now shows changing data. But after maybe 30 seconds of working it will stop working again. Almost as if the g-sensor gets unstuck and then stuck again after 30 seconds.

I hope any one has any more ideas!
[HD2 Android Q&A, Help & Troubleshooting and Genera] marc1706:
It seems like your sensors don't return from sleep mode. If your g-sensor is in normal mode it will usually return to sleep mode after a few seconds. I'll try to patch the driver so you can force normal mode from within android. This will add a slight increase of battery drain in standby mode of 0,2 mA.

I'll have to wait for my mouse to arrive tomorrow though. Working with a mousepad sucks. :D

edit:

Ok, I have added some code to my 2 kernels that'll force the gsensor to be always on. My ICS kernel is for ICS and the sense kernel can be uses on sense 2.1 and newer ROMs. I think you can also install the sense kernel for testing on Gingerbread non-sense ROMs, your camera will not work though.

After flashing the kernel you will have to open up a terminal window in android and follow these steps:

Enter this:

cat /sys/devices/virtual/htc_accelerometer/accelerometer/ForceModeFlag

After entering it should show a 0. If that worked continue with Step 2. If not then please continue with step 3.

Now enter this in order to force the gsensor to be on:

echo "enable" > /sys/devices/virtual/htc_accelerometer/accelerometer/ForceModeflag

Check if it worked by entering the command from step 1 again. It should now display a 1. Please test if your gsensor is working now. Do not go on with Step 3.

Enter this command and paste the result in this topic:

ls -l /sys/devices/virtual/

Also mention your ROM and kernel.