Sensor Calibration - Samsung Galaxy Nexus

Hey,
can anyone tell me how to calibrate the G-Sensor in the Gaaxy Nexus Prime? In games and apps using this sensor it seems that the y-axis is about 5 degrees leftside when i hold the smartphone straight up. This means for example that the figure in doodle jump moves slowly left, although the Nexus is holded erect...
Googled for an solution by myself, but nothing helped so far. Even apps like BubbleLevel, which have the calibration tool, calibrate the sensor just for this app... and not in general.
Thanks

Try calibrating with this app and see if it helps.
https://market.android.com/details?id=com.eclipsim.gpsstatus2
Sent from my Galaxy Nexus using XDA App

Ignore everyone telling you to use an app to do it, because you can't. Android has no concept of global calibration regarding the sensors.
I have 3 Android phones, they all have wrong default calibration, from a few degrees (Galaxy Nexus) to about 30 degrees (Xperia X10 Mini Pro.. unusable).

You used to be able to calibrate in gingerbread by modding axis offset values in the AK8973Prms.txt file in data/misc. ICS doesn't seen to have that file, at least not in the same place.

HTC Desire, Desire HD have its calibration app.

zapek666 said:
Ignore everyone telling you to use an app to do it, because you can't. Android has no concept of global calibration regarding the sensors.
I have 3 Android phones, they all have wrong default calibration, from a few degrees (Galaxy Nexus) to about 30 degrees (Xperia X10 Mini Pro.. unusable).
Click to expand...
Click to collapse
He asked for help and I tried to help him with what work for me in the past. No need to tell him to ignore people. It's a simple process that involves rotating the phone on 3 of its axis. If it helps, then great. But it certainly wouldn't hurt for him to try, would it? No need to be condescending; it's not like I'm trying cause him harm.
Sent from my Galaxy Nexus using XDA App

waiaung1 said:
He asked for help and I tried to help him with what work for me in the past. No need to tell him to ignore people. It's a simple process that involves rotating the phone on 3 of its axis. If it helps, then great. But it certainly wouldn't hurt for him to try, would it? No need to be condescending; it's not like I'm trying cause him harm.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
I think that method works well for compass calibration for apps like maps and sky, but it is temporary and doesn't seem to affect pitch and roll. GPS status let's you calibrate pitch and roll but only within the app, it doesn't affect system calibration. The file i mentioned above did allow manual system calibration under gingerbread. Not sure how to accomplish under ics. A post i saw suggested that gnex and ics automatically calibrate if you leave the unit to sit alone for a bit. I don't buy it, but that's the only info i have found.
In case anyone is interested in how it was done under gingerbread, see my post at http://forum.xda-developers.com/showthread.php?p=16592139

klobkelosh said:
In case anyone is interested in how it was done under gingerbread, see my post at http://forum.xda-developers.com/showthread.php?p=16592139
Click to expand...
Click to collapse
It's not Gingerbread, it's for that specific sensor with that specific driver. The Galaxy Nexus uses a Bosch BMA250 which has an NV memory where calibration settings can be stored but doing so is not trivial. More information at http://www.bosch-sensortec.com/content/language1/downloads/BST-BMA250-DS002-03.pdf

zapek666 said:
It's not Gingerbread, it's for that specific sensor with that specific driver. The Galaxy Nexus uses a Bosch BMA250 which has an NV memory where calibration settings can be stored but doing so is not trivial. More information at http://www.bosch-sensortec.com/content/language1/downloads/BST-BMA250-DS002-03.pdf
Click to expand...
Click to collapse
Aah good to know. I'll check that out. Thanks

Related

CM7 G-sensor calibration?

Anyone know where or how to calibration the G-sensor in CM7?
Sent from my Desire HD using XDA App
BUMP......
At first I was all 'what a dumb question' . Then I looked for it, and I can't find it.
So yea. I'm now wondering the same thing.
Sent from my Inspire 4G using XDA app
Same here. Nobody knows?
Sent from my Desire HD using XDA App
don't have G-sensor calibration
BUMP
Bump. Help us plz
Can you clarify what sensor you're talking about e.g. the G-force, GPS Sensor or Compass or ... ???
And don't just reply "The G-Sensor".
Also, please be specific as to what the issue you are having that makes you believe the "G-Sensor" needs recalibrating?
mrjonnyrock said:
Anyone know where or how to calibration the G-sensor in CM7?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
i used "g-sensor calibration tool" (from internet) for HTC HERO with cyanogenmod one & half year ago... but i don´t know if its available for HTC DESIRE HD...
if you want and noone answer you..... you can to post it or browse in www.cyanogenmod.com official site...
cyanogenmod hasn´t a native calibration tool
Sergi, is this the sensor that you can reset by waving the phone around in a figure of eight or is that for the compass?
Mr_JMM said:
Sergi, is this the sensor that you can reset by waving the phone around in a figure of eight or is that for the compass?
Click to expand...
Click to collapse
is like that the sense roms has in settings-screen-g-sensor calibration.
you can reset it with a level figure.. look the thumbnail
also i remember that with amon´s ra recovery (htc hero) u can do "wipe rotation status" and there´s a tool for calibrate it in cyanogen but i don´t know if its available for desire hd i still never flashed CMxxx.
cheerss
Ahh that.
Whilst it doesn't work the same way if you download GPS Status, go to menu -> Tools there is an option for calibrate pitch and roll.
Mr_JMM said:
Ahh that.
Whilst it doesn't work the same way if you download GPS Status, go to menu -> Tools there is an option for calibrate pitch and roll.
Click to expand...
Click to collapse
oups! have doubts
i only know that this tool its for calibrate the sensor for gamming AND GET FIX FOR STABILITY for some apk... (you know the tetter game? its a ball that you handle for the screen moving the device...)
this game needs to calibrate g sensor...
The example is a bilge but it clarifies about that we speak
by the wait i think that they are talking about this sensor concretly.... LOL
Mr_JMM said:
Can you clarify what sensor you're talking about e.g. the G-force, GPS Sensor or Compass or ... ???
And don't just reply "The G-Sensor".
Also, please be specific as to what the issue you are having that makes you believe the "G-Sensor" needs recalibrating?
Click to expand...
Click to collapse
The Desire HD has a G-Sensor:
http://www.htc.com/www/product/desirehd/specification.html
You would recalibrate if you feel that the screen orientation does not respond properly to the way you hold the phone (portrait vs landscape).
On the stock ROM, you would do this by:
From the Home screen, press MENU, and then tap Settings.
Tap Display > G-Sensor calibration.
Place the phone on a flat and level surface, and then tap Calibrate.
After the recalibration process, tap OK.​
AFAIK there is no equivalent provided by Cyanogen.
No but you cab use an app like GPS Status that has a tool for calibrating this. Works perfectly.
Sent from my Ericsson T39m
See http://forum.xda-developers.com/showthread.php?p=16592139#post16592139. That should fix your problem.

[info] Sensor Issues - Orientation - ICS leak

If you want to see what the developers are up against with the sensors.
Install and ICS Rom then install
https://play.google.com/store/apps/details?id=net.androgames.level
Lay the phone flat on the table and play with it a bit.
Now try turning it face down above your head and look up at it.
Gives you a little more appreciation for what the developers are dealing with now doesn't it!
So if and when someone fixes that mess, make sure you THANK them!
The only reason why orientation is not fixed yet is because we don't have the official source and it probably won't be fixed until we get it
Sent from my SGH-T989 using Tapatalk
iLeopard said:
The only reason why orientation is not fixed yet is because we don't have the official source and it probably won't be fixed until we get it
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
We don't even need source, just a leaked official ICS kernel for our device.
Sent from my SGH-T989 using XDA Premium App
Any one know if the at&t galaxy note also has flipped accelerometer? If not couldn't we use their ics kernel?
Sent from my SAMSUNG-SGH-T989 using Tapatalk
billydroid said:
Any one know if the at&t galaxy note also has flipped accelerometer? If not couldn't we use their ics kernel?
Sent from my SAMSUNG-SGH-T989 using Tapatalk
Click to expand...
Click to collapse
Good question.. Its pretty much the same setup as the SR but bigger screen right? How can we check on it?
Uh, not sure if our phones are compatible.
I mean the skyrocket and t989 are the same phone besides lte.
Note is different and could possibly brick.
I really dont know anything about development.. But as I understand the skyrocket sensor is flipped, couldnt they take those sensor values and invert them? Not sure if thats possible, probably already been brought up.
And if thats really all they need to do , put it face down on a glass table? Not sure what you mean by holding it over their head..
dosage1 said:
I really dont know anything about development.. But as I understand the skyrocket sensor is flipped, couldnt they take those sensor values and invert them? Not sure if thats possible, probably already been brought up.
And if thats really all they need to do , put it face down on a glass table? Not sure what you mean by holding it over their head..
Click to expand...
Click to collapse
That has to be done at the kernel level which would require source.
You cant just use the Note kernel either because the display is different unless one is willing to trade not being able to have any display for autorotation being fixed.
well the kernel driver only tells the operating system the orientation. Then software takes over. All u gotta do theoretically is recode the orientation to compensate the sifferent orientation to the correct one
Sent from my SAMSUNG-SGH-T989 using xda premium
defconoi said:
well the kernel driver only tells the operating system the orientation. Then software takes over. All u gotta do theoretically is recode the orientation to compensate the sifferent orientation to the correct one
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
Great idea!
Why don't you do that and release an ics rom with correct rotation
defconoi said:
well the kernel driver only tells the operating system the orientation. Then software takes over. All u gotta do theoretically is recode the orientation to compensate the sifferent orientation to the correct one
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
That would require something that runs continously (battery life already is not as good) and takes precedence over the currently running program which would mean again needing to be at kernel level OR taking the source code for all the programs you have installed and have recode it to invert portrait and vice versa.
jim93 said:
That would require something that runs continously (battery life already is not as good) and takes precedence over the currently running program which would mean again needing to be at kernel level OR taking the source code for all the programs you have installed and have recode it to invert portrait and vice versa.
Click to expand...
Click to collapse
Wouldn't the code for the accelerometer be a class for app developers to call on? Could it be possible to edit that code at the end to just have it inverted?
Sent from my SGH-T989 using Tapatalk
hunterhp said:
Wouldn't the code for the accelerometer be a class for app developers to call on? Could it be possible to edit that code at the end to just have it inverted?
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
yes that is what someone would do if they had kernel source.
jangst123 said:
If you want to see what the developers are up against with the sensors.
Install and ICS Rom then install
https://play.google.com/store/apps/details?id=net.androgames.level
Lay the phone flat on the table and play with it a bit.
Now try turning it face down above your head and look up at it.
Gives you a little more appreciation for what the developers are dealing with now doesn't it!
So if and when someone fixes that mess, make sure you THANK them!
Click to expand...
Click to collapse
LOL, just tried it out!
That's crazy,, it's like it's upside down and backwards!
here is a good workaround using tasker
http://forum.xda-developers.com/showthread.php?t=1576256
Sent from my SAMSUNG-SGH-I727 using xda premium
The best way to fix this is to determine the difference in orientation, then, multiply the output by this difference to correct the orientation. This way, you don't modify any code, you just change the output by modifying it with the fixed factor (being the difference in orientation of the sensors).
autom8r said:
The best way to fix this is to determine the difference in orientation, then, multiply the output by this difference to correct the orientation. This way, you don't modify any code, you just change the output by modifying it with the fixed factor (being the difference in orientation of the sensors).
Click to expand...
Click to collapse
Wouldnt the system keep orientation in some basis that has rotational coordinates in which case multiplying isnt the right operation. You would need to add or subtract.
jim93 said:
Wouldnt the system keep orientation in some basis that has rotational coordinates in which case multiplying isnt the right operation. You would need to add or subtract.
Click to expand...
Click to collapse
Perhaps, I was just posting in obviously simplified "psuedo-code". My point was that you would want to build a layer above the UI's output which then filters the output to be appropriate. Most likely if it was degrees, you'd simply subtract or add figures on the X degrees and Y degrees, like you say. I'm not certain, the apps I build deal with time and money, not space, yet
autom8r said:
Perhaps, I was just posting in obviously simplified "psuedo-code". My point was that you would want to build a layer above the UI's output which then filters the output to be appropriate. Most likely if it was degrees, you'd simply subtract or add figures on the X degrees and Y degrees, like you say. I'm not certain, the apps I build deal with time and money, not space, yet
Click to expand...
Click to collapse
This http://forum.xda-developers.com/showpost.php?p=24320571&postcount=5 is pretty much that but it lags a bit because its not kernel side. This is as good as it will get until either a t989 ICS kernel is leaked/released or source for either the skyrocket or 989 is out.

Accelerometer calibration ?

Is there anyway to calibrate the accelerometer using root access ? I tried every app to do it but it doesn't get universally calibrated. Help would be appreciated. Thanks I think someone could make a small tweak for this so that it comes in settings app.
Sent from my Galaxy Nexus using Tapatalk 2
Tarun95 said:
Is there anyway to calibrate the accelerometer using root access ? I tried every app to do it but it doesn't get universally calibrated. Help would be appreciated. Thanks I think someone could make a small tweak for this so that it comes in settings app.
Click to expand...
Click to collapse
I'm looking for an answer to this too. According to my research there is no non-root app to fix it globally. So I guess I would have to root my phone. That wouldn't be a big problem, I guess. But I still couldn't find any definite information about the possibility to calibrate it at all. There are some apps that require root for some options like Advanced Tools. but that doesn't mean it will work.

[Q] Navigation map inverted

Hi,
Network: Verizon
Device: Samsung Galaxy Nexus
Android Version: 4.1.1
Few weeks back I got updated to Jelly Bean, since then the map in my "Navigation" app sometimes show as inverted, can anyone please let me know how should fix it or if there are any updates.
If you need any more information I will be glad to update the thread.
Regards,
Arup
same thing happened to me actually..
it was after the app updated and it seems like it corrected itself after a couple days
arupsarkar said:
Hi,
Network: Verizon
Device: Samsung Galaxy Nexus
Android Version: 4.1.1
Few weeks back I got updated to Jelly Bean, since then the map in my "Navigation" app sometimes show as inverted, can anyone please let me know how should fix it or if there are any updates.
If you need any more information I will be glad to update the thread.
Regards,
Arup
Click to expand...
Click to collapse
same thing happened to me actually..
it was after the app updated and it seems like it corrected itself after a couple days
Click to expand...
Click to collapse
It will do that when you enter a tunnel or something (and thus the overall ambient light is decreased), Or put your finger on the brightness sensor while the navigation is on (try it) You either have a ROM that has an issue with brightness sensors, Or the brightness sensor on your phone is messed up/Covered up by something.
Tbh i really like the look of the inverted maps xD
Bewinxed said:
It will do that when you enter a tunnel (and thus the overall ambient light is decreased) You either have a ROM that has an issue with brightness sensors, Or the brightness sensor on your phone is messed up/Covered up by something.
Tbh i really like the look of the inverted maps xD
Click to expand...
Click to collapse
I think he means the direction is wrong...
like it faces on the screen the opposite way than you're actually going
You have to allow the compass to recalibrate itself. Go outside, turn on maps with GPS, and wave it around in figure 8s for a while.
Sent from my Galaxy Nexus using xda app-developers app
You checked "Yes this is a question"
Guess which subforum it belongs in?
Questions go in Q&A
Thread Moved
Thank you for your cooperation
Friendly Neighborhood Moderator
crixley said:
I think he means the direction is wrong...
like it faces on the screen the opposite way than you're actually going
Click to expand...
Click to collapse
A friend have the direction problem with his S-II, Someone have an idea forma a solution? I'm not sure will be related to the compass because it happen only when si in navigation mode, not when he use maps...
Edit: solution found for him, simply removed the battery...

[Q] Note 2 : Street view jitter in compass mode ?

Hi
I bought the Note II 2 days ago, and I ended trying Google Street View in compass mode... Nice software...
As probably you know, in this mode the orientation of the handset controls what you see on the screen, offering a better 3d experience than simply sliding your finger on the screen to change the viewpoint (try it: maps --> select a place with street view available --> enter street view mode --> press "menu" left virtual touch --> select compass mode, and play with it!).
This is all nice and well, except that I experience on my phone a serious random jitter (mostly azymuthal) in the street view: a few degrees more or less, not much but enough to make you dizzy after a while. This happens also in Google Skymap.
I tried to recalibrate the gyroscope, also had a look in the hidden "test" menu (dialed *#0*#), and installed marketplace compass apps which offer calibration tools... to no avail. I also changed position in my flat to check for stray magnetic fields effects, but nothing new.
I know there are other devices forum threads where this type of problems is explored (not much as far as i know), the point here is I would like people with Note 2 at hand to check if they experience the same type of problems: I'd like to know if this could be related to a hardware problem, or if it is another screw up by Google/Samsung ...! :silly:
What do you think ?
Same thing here, I've had my T-Mobile GNote2 for just under two weeks and when I tried the compass this am I found the same jitter you describe, using GPS Test app and the diagnostic mode you found. Started a thread in T-Mobile GNote2 here, looks like it wasn't a priority for Samsung.
I'm getting gitter in Street View too. Damn annoying.
Sent from my Galaxy Note 2 using Tapatalk 2
Bad jitter here too .... and this was one of the features that seemed best to try out on the larger screen... Hopefully there will be a software fix. If some people would post that they have no jitter in street view compass mode, then I'd go see if it was just my/some units with the defect and exchange while in my 14 days.
I can confirm the jittering on my Note 2. It's pretty annoying. Calibration hasn't worked for me.
---------- Post added at 07:33 PM ---------- Previous post was at 07:19 PM ----------
In other compass apps, I can't experience any jittering. So I think it must be directly related to Street View and how they read/process the values from the compass. Maybe the interpolation is wrong?
Well, I can tell you that I exchanged TWICE my Note II since I posted the problem on the forum (one was exchanged for another reason)... and the jitter was and is here on the three handsets.
The last one I got works marginally better, but the effect is still quite annoying.
mc-garry said:
I can confirm the jittering on my Note 2. It's pretty annoying. Calibration hasn't worked for me.
---------- Post added at 07:33 PM ---------- Previous post was at 07:19 PM ----------
In other compass apps, I can't experience any jittering. So I think it must be directly related to Street View and how they read/process the values from the compass. Maybe the interpolation is wrong?
Click to expand...
Click to collapse
I tried a few compass apps. They mostly had the jitter as well... and the *# test menu showed the same jitter back and forth on the compass :=/
Are you all running on stock rom and kernel? So maybe we can isolate the source for the jittering.
Jittery here too... On stock rom/kernal
Sent from my GT-N7100 using Tapatalk 2
Hm, stock rom/kernel...why doesn't Samsung test this stuff before releasing. Now we need to find out, if it's a software failure or a hardware problem. I have tested this compass app and there is no jittering. Can anyone confirm this?
Search for "com.apksoftware.compass" in the play store. Cannot post external links, as I'm quite new.
I have slight jitter in compass mode on street view too.
Stock ROM, no root.
Sent from my Nexus 7 using Tapatalk 2
I've tried several other stock/non-stock roms and kernels. All have the same problem. Has anyone contacted Samsung about this?
mc-garry said:
Hm, stock rom/kernel...why doesn't Samsung test this stuff before releasing. Now we need to find out, if it's a software failure or a hardware problem. I have tested this compass app and there is no jittering. Can anyone confirm this?
Search for "com.apksoftware.compass" in the play store. Cannot post external links, as I'm quite new.
Click to expand...
Click to collapse
That's exactly what I'm saying! I actually called Samsung's main technical services department and the person I spoke to didn't have a clue what I was on about, so I had to describe it to her carefully. And by the way, yes I've tried it on all the available compass apps on the play store and they all have the same issue. To compare, I used my dad's S3, totally fine. This is one of the reasons I bought the phone in the first place, to use the street view in compass mode after seeing it on the S3 but its a total letdown, which leads me to believe that its very likely a hardware issue, and that's what I'm dreading.
Ilker123 said:
That's exactly what I'm saying! I actually called Samsung's main technical services department and the person I spoke to didn't have a clue what I was on about, so I had to describe it to her carefully. And by the way, yes I've tried it on all the available compass apps on the play store and they all have the same issue. To compare, I used my dad's S3, totally fine. This is one of the reasons I bought the phone in the first place, to use the street view in compass mode after seeing it on the S3 but its a total letdown, which leads me to believe that its very likely a hardware issue, and that's what I'm dreading.
Click to expand...
Click to collapse
Maybe it also could be a software problem. I don't think that Samsung includes defect hardware sensors in all of their Note 2 devices (therefor they have extensive hardware tests). I hardly believe they hadn't had the time to write a proper kernel driver with interpolation for the magnetometer. And probably all other kernels base on the kernel sources, Samsung has published. So this could be an inherited problem. Would be interesting if the Note 2 and the S3 share the same magnetometer sensor. Can somebody elaborate on this? If so, then we need to compare the kernel sources for both sensors and try do debug the problem step by step.
mc-garry said:
why doesn't Samsung test this stuff before releasing.
Click to expand...
Click to collapse
they were probably too busy making the rest of the phone as awesome as it is :laugh: ps - im getting the jitter as well
mc-garry said:
Maybe it also could be a software problem. I don't think that Samsung includes defect hardware sensors in all of their Note 2 devices (therefor they have extensive hardware tests). I hardly believe they hadn't had the time to write a proper kernel driver with interpolation for the magnetometer. And probably all other kernels base on the kernel sources, Samsung has published. So this could be an inherited problem. Would be interesting if the Note 2 and the S3 share the same magnetometer sensor. Can somebody elaborate on this? If so, then we need to compare the kernel sources for both sensors and try do debug the problem step by step.
Click to expand...
Click to collapse
So you're telling me this problem may be fixed with either a 4.2 or 5.0 update? One can only wish right now.
Jitter here too. Very annoying. Quite shocked this got past QC.
Tried multiple roms and kennels, always the same.
Well I'm now on stock 4.1.2, and sad to say its the same problem. Absolutely nothing has changed. I think we're stuck with this issue guys, such a shame
it is a big samsung problem. it is on the S3 as well...
I had the same problem. I tried several compass applications from the market and celebrated the compass several times. The only thing that really helped to get the digital compass get stable is to turn off all wireless functions, including the phone, as well as the phone sound and power saving functions. I turned off anything that might produce a megnatic field in the phone, and then calebrated the compass again. Now the compass works fine after turning on everything.
Sent from my GT-N7100 using xda app-developers app

Categories

Resources