Need help calibrating Gyroscope in Android 5.x.x (VZW S4) - Android Q&A, Help & Troubleshooting

I have firmware OF1 for i545 verizon S4 (5.0.1). Freshly re-flashed and reset to factory.
Bootloader is locked but I have ROOT
There is a calibration on my phone that is off for the Gyro. Looking at any app it gives two values for the gyroscope: calibrated and uncalibrated. The uncalibrated values are more accurate than the calibrated values and I would at the minimum like to delete the calibration file wherever it might be.
Here is the problem...
After updating the phone there is no option to calibrate the gyro.
-Motions and gestures in settings does not have the calibrate option
-secret code *#0*# does nothing
-Suggestion of Nova Launcher > activities in widgets shows no "activities" option in widgets
-Terminal does not have a calibration option in the sensors folder like there is in accelerometer
I'm stuck here. Can't find any apps or any general info on how to calibrate the gyro.
Thanks

Bump

Related

[Q] Anyway to do system-wide calibration of sensors?

I know there is the Service Menu screen, which you can get to when the phone is locked using the secret code found here: http://forum.xda-developers.com/showthread.php?p=7847292, where the digital compass looks like it can be calibrated in the service tests section. Anyone know if this is a permanent calibration affecting all apps installed?
Also, is there a way to get a permanent calibration of the accelerometer? My accelerometer is off by about 4 degrees and apps which use it, including rotating the screen are noticeably affected. Does anyone know of any apps that can make a permanent calibration that will be system wide? Or any other way of calibrating this sensor for all apps?
Silly22 said:
I know there is the Service Menu screen, which you can get to when the phone is locked using the secret code found here: http://forum.xda-developers.com/showthread.php?p=7847292, where the digital compass looks like it can be calibrated in the service tests section. Anyone know if this is a permanent calibration affecting all apps installed?
Also, is there a way to get a permanent calibration of the accelerometer? My accelerometer is off by about 4 degrees and apps which use it, including rotating the screen are noticeably affected. Does anyone know of any apps that can make a permanent calibration that will be system wide? Or any other way of calibrating this sensor for all apps?
Click to expand...
Click to collapse
Yes this would logically be a system wide calibration... If it were not system wide, then by the same logic, it would only calibrate the accelerometer in the Service Menu, which provides absolutely no use whatsoever.
I have no proof either way, but it makes sense to me...
Why not try calibrating your device incorrectly (i.e. upside-down), and see if it's screwed everywhere else as well...
In the service menus, there does not exist a way to calibrate the accelerometer, just a screen for testing and showing the accelerometer values.
On another forum, one specific to Android, I found a link to this article about calibrating the accelerometer sensor permanently: http://smartanuj.com/samsung-galaxy-s-troubleshooting-and-optimizing-guide
However, that guide involves rooting a Samsung Galaxy S specifically, and running a terminal command. I wonder if there is a method for us X10 users that doesn't involve rooting. If not, does anyone know if there is a similar terminal command applicable to rooted X10's?

[FIX] Easy Calibration of ERIS Rotation Sensor (G-Sensor) on AOSP/CM ROM

My ERIS g-sensor has a tendency to get out of whack. What I mean is that if you leave autorotation on with the phone lying flat, the screen will often rotate 90 degrees as if you were holding it in a landscape position. If you download a level app, it will show level surfaces as not level. Any while several gps and level apps allow you to calibrate what level is, they do not affect the autorotation being off.
The g-sensor is easily calibrated on a stock sense rom in the settings menu. But AOSP and CM ROMs do not provide a calibration tool, and calibration is reset with every newly flashed ROM. So, for a long time, I just turned off autorotation.
I did find a fix, adapted from here (http://forum.xda-developers.com/showthread.php?t=803242), but simplified below.
What you need:
A CM or AOSP ROM. I've tested on Condemned Soul's CM7 ROM.
A Root File Manager App with Text Editor capability. I'm using ES File Explorer
GPS Status App or another level or sensor app
1. Open GPS Status App (or other sensor app). Lay the phone on a flat level-ish surface. Observe how far the "bubble" in the center of the compass is offset from "level" or the solid circle in the middle of the compass. You can numerically see what the Pitch (up-down) and Roll (left-right) offset are. When calibrated, these numbers read 0 and the bubble will lie on-center.
2. Press home button, then open your file explorer. Navigate to /data/misc and locate the AK8973Prms.txt file. You may want to make a backup of this file, in case anything goes wrong. Open the file in the text editor. Locate the following:
AOFFSET.x=0
AOFFSET.y=0
3. Adjust these values by increments of 1 (or -1) until the GPS app shows it is level. Here's how: To move level left, change AOFFSET.x=0 to AOFFSET.x=1 then save the file. Long-press home to select the GPS app and check for level. If not level, increase to AOFFSET.x=2, save, and check again. Repeat until roll is level, then modify AOFFSET.y=0 until pitch is level. My final values are x=4 and y=-4. I haven't tweaked the z value (that is vertical level or plumb) but you can calibrate the same way if you have a plumb surface (like a newish house door). I live in an old house - nothing is plumb!
4. Enjoy your calibrated G-Sensor.
In GPS Status, does menu->tools->"calibrate pitch and roll" help any? Maybe it just calibrates for the app itself and not system wide. I keep auto-rotate off most the time so I don't have much experience with the screen switching when it shouldn't.
MongooseHelix said:
In GPS Status, does menu->tools->"calibrate pitch and roll" help any? Maybe it just calibrates for the app itself and not system wide. I keep auto-rotate off most the time so I don't have much experience with the screen switching when it shouldn't.
Click to expand...
Click to collapse
Correct, the app just calibrates itself, not the system. I know, it's only a minor annoyance, but makes me happy...
Sent from my ERIS using XDA App
I wasn't trying to imply that you should turn off auto-rotate, was wanting to describe why I might have sounded like an idiot asking whether that tool did anything system wide lol. I can see it being more than an annoyance so I'm glad you found and shared a way to fix it.
No worries mgh! Lol
Sent from my ERIS using XDA App
Thanks for posting this, klob! There are times when auto-rotate does come in handy, but then there are times when I don't want it on. I'll try this and see if it helps me out.
snortman
Good luck!
Sent from my ERIS using XDA App
help required
klobkelosh said:
My ERIS g-sensor has a tendency to get out of whack. What I mean is that if you leave autorotation on with the phone lying flat, the screen will often rotate 90 degrees as if you were holding it in a landscape position. If you download a level app, it will show level surfaces as not level. Any while several gps and level apps allow you to calibrate what level is, they do not affect the autorotation being off.
The g-sensor is easily calibrated on a stock sense rom in the settings menu. But AOSP and CM ROMs do not provide a calibration tool, and calibration is reset with every newly flashed ROM. So, for a long time, I just turned off autorotation.
I did find a fix, adapted from here (http://forum.xda-developers.com/showthread.php?t=803242), but simplified below.
What you need:
A CM or AOSP ROM. I've tested on Condemned Soul's CM7 ROM.
A Root File Manager App with Text Editor capability. I'm using ES File Explorer
GPS Status App or another level or sensor app
1. Open GPS Status App (or other sensor app). Lay the phone on a flat level-ish surface. Observe how far the "bubble" in the center of the compass is offset from "level" or the solid circle in the middle of the compass. You can numerically see what the Pitch (up-down) and Roll (left-right) offset are. When calibrated, these numbers read 0 and the bubble will lie on-center.
2. Press home button, then open your file explorer. Navigate to /data/misc and locate the AK8973Prms.txt file. You may want to make a backup of this file, in case anything goes wrong. Open the file in the text editor. Locate the following:
AOFFSET.x=0
AOFFSET.y=0
3. Adjust these values by increments of 1 (or -1) until the GPS app shows it is level. Here's how: To move level left, change AOFFSET.x=0 to AOFFSET.x=1 then save the file. Long-press home to select the GPS app and check for level. If not level, increase to AOFFSET.x=2, save, and check again. Repeat until roll is level, then modify AOFFSET.y=0 until pitch is level. My final values are x=4 and y=-4. I haven't tweaked the z value (that is vertical level or plumb) but you can calibrate the same way if you have a plumb surface (like a newish house door). I live in an old house - nothing is plumb!
4. Enjoy your calibrated G-Sensor.
Click to expand...
Click to collapse
I am using micromax canvas nitro. My auto rotation stopped working the first time i installed twrp recovery. After making a backup and restoring the same rom my auto rotation started working. But now its not working in any condition. The file you listed AK8973Prms.txt cannot be found in the above directory...please help
surajsahijwani said:
I am using micromax canvas nitro. My auto rotation stopped working the first time i installed twrp recovery. After making a backup and restoring the same rom my auto rotation started working. But now its not working in any condition. The file you listed AK8973Prms.txt cannot be found in the above directory...please help
Click to expand...
Click to collapse
As far as I can tell, this fix only worked on early htc phones up to gingerbread. I was never able to duplicate this on ICS or later on other phones. Sorry, and good luck.

[Q] How to calibrate the G-Sensor?

When you run the clinometer, it immediately shows a deviation of 4 degrees.
Tell me, is it possible to adjust g-sensor on G-Tablet?
Thanks.
Some apps have a calibration feature in their settings (a nice feature), and some apps calibrate when you start them (an annoying feature because if you hold the tablet crooked when you launch an app it screws up that app's calibration).

Portrait-to-landscape problems

I don't know wheter this is accelerometer or gyroscope, but I have problems with moving from portrait to landscape, vice versa. It goes to landscape abnormaly fast, but when I take it up and want it to use in portrait mode, It doesn't want to move, I have to touch the screen and shake phone a bit and then it would change... I accidently entered calibration gyroscope and tamper in there, how to fix that? Help
I place it on the table in the portrait mode, and after like 5 seconds it changes to landscape. Lol
Menu / settings / display /
1. Horizontal calibration
2. Gyro calibration
Sent from my GT-I9100 using xda premium
UpInTheAir said:
Menu / settings / display /
1. Horizontal calibration
2. Gyro calibration
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Yes, I did that, again, still the same.
Download a diagnostics app such as Sensor List (vector rotation sensor) or Z-DeviceTest and check that your X-Y-Z axis are actually changing in "real time". If they are, more than likely a ROM issue and not hardware. Edit: In that case, backup, factory reset. If rooted, same, but also wipe cache and dalvil in recovey before flashing ROM in Recovery or Odin.
I recalibrated like 10 times, cleared cache, and now it's ok. I don't know what was wrong.
I have the same problem with LBP, LBH ICS leaks.
When I played Modern Combat3, the kyroscope always get wrong way.

Re-calibrate Proximity Sensor

Hi! The proximity sensor no longer works, so no Ambient Light Sensor, etc. I tried doing the test in the service menu (Proximity sensor no longer an option) but tapping "Ambient Light Sensor" displays a toast notification "This device does not support the function." I'm currently on eXistenZ 4.0.0 and AndroPlusKernel v14. Bootloader is unlocked. Problem started after I REFLASHED eXistenZ. Everything was working before, but I wanted to change an option and reflashed the Aroma installer for eXistenZ.
Repairing via Sony PC Companion does not work, nor thus flashing any firmware and wiping all data. I've read on different forums that sometimes flashing roms does this, and can be fixed by recalibrating the sensor.
echo 1 > /sys/class/sensors/proximity_sensor/prox_cal
Click to expand...
Click to collapse
from http://forum.xda-developers.com/showthread.php?t=2353972
Note that the above is for Samsung. I tried browsing to that location via Total Commander but there is no "/proximity_sensor". Do you guys have that? If so, mind uploading it so I'll try pushing it to my phone? There's also a calibration menu for Xperia Z I think that when bringing up said menu from *#*#SERVICE#*#*, you'd simply tap proximity sensor and it'd be fixed.
Any suggestions (aside from taking it back for warranty, since I bought this from the gray market) would be helpful!

Categories

Resources