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.
Hi guys,
I was looking for some help/advise on a way to fix my stock browser on my GT-i9100 running ICS XWLP7
When I go into the stock browser regardless of the setting my display is too in Setting/display/brightness it instantly gets a lot brighter.
So I change to low power saving mode through the settings of the browser and it dims the screen when using browser, great!
However after doing this when exiting from browser back to home screen it's affected my overall display settings not just browser display, weird!
Not only is my overall display now dim and auto brightness in settings/display/brightness is now off but my phone has also gone from a dynamic display to a standard display mode, even though it is checked as dynamic.
When I move between these 2 screen modes now there is no difference at all. Only a reboot fixes it.
Does anyone else have this issue?
Any help, advise, tweaks or mods to fix this would be most welcomed.
Many thanks in advance and also my apologies if this has already been discussed but I spent hours trauling XDA and couldnt find it anywhere.
Thanks guys!
Obagleyfreer said:
Hi guys,
I was looking for some help/advise on a way to fix my stock browser on my GT-i9100 running ICS XWLP7
When I go into the stock browser regardless of the setting my display is too in Setting/display/brightness it instantly gets a lot brighter.
So I change to low power saving mode through the settings of the browser and it dims the screen when using browser, great!
However after doing this when exiting from browser back to home screen it's affected my overall display settings not just browser display, weird!
Not only is my overall display now dim and auto brightness in settings/display/brightness is now off but my phone has also gone from a dynamic display to a standard display mode, even though it is checked as dynamic.
When I move between these 2 screen modes now there is no difference at all. Only a reboot fixes it.
Does anyone else have this issue?
Any help, advise, tweaks or mods to fix this would be most welcomed.
Many thanks in advance and also my apologies if this has already been discussed but I spent hours trauling XDA and couldnt find it anywhere.
Thanks guys!
Click to expand...
Click to collapse
The display brightness of the browser is independent of the display brightness of the rest of the phone.
ctomgee said:
The display brightness of the browser is independent of the display brightness of the rest of the phone.
Click to expand...
Click to collapse
So does this mean that my phone isn't working correctly?
I'm aware that the 2 settings should be completely independent of one another but it's definitely not in my case.
It's weird that it alters the display mode too so Standard and Dynamic are the same after changing browser brightness.
If I don't alter the browsers brightness my phone is fine.
Can some one else try on their phone? I have tried factory reset,wipe cache, flash new firmware etc and nothing seems to help!
Thank you for your help
Can no one help me?
Surely it's not just me that has this issue.............
120 views and one reply!
Can somebody PLEASE help me with this issue, my friend is also experiencing the same problem so I know it's not just my phone.
We would love to know a way to fix it or if someone else is experiencing the same things.
I would be very very grateful for a little help.
HI
My question:
AS anyone a prblem with the Brightness level???
After i unlock the phone the level go down but in setting have the seme level that i set
Any suggestion?
Maybe apk file infected???
Hello to everybody!
In the first place I would like to apologize if I'm in the wrong section or if the question was already asked.
I'm currently building a custom ROM based on android 4.1.2 and I am having two questions:
1. In Settings -> Display -> Brightness there is no checkbox for automatic screen brightness. Can this feature be added (the check box to turn on/off the automatic brightness)?
2. When I activate the automatic screen brightness (using notification bar toggle) and the battery drains under 15% the brightness is setted to maximum and the Brightness page in settings can't be used, is there a way to fix this?
Thanks in advance and I'm looking forward for an answer from you. Best regards!
What phone are you planning to make a Rom for?Probably there is no light sensor or it is spoil
Sent from my HTC Rhyme S510b using xda premium
Press Thanks please
Thanks for your reply, I'm trying to mode a ROM for Gionee GN700w / Fly IQ441 Radiance / Allview P5. It is a dual core based on MTK6577.
There is a light sensor / proximity sensor, CPU-z identify them both as tmd2771.
Is the setting you make from scratch?If it isn't try trying different setting apks
Press thanks please
Hi,
I recently flashed OmniRom on my OnePlus 3T but the notification led gets disabled every time I switch to DND mode. There is currently no option in OmniRom to prevent this from happening. Is there any way to reenable it somehow?
I found out you can change the led brightness by changing the value inside the /sys/class/leds/red/brightness file for example. In this folder is another file 'trigger' which - to my understanding - lets you configure when the led should be turned on.
Unfortunately I couldn't find a way to completely enable or disable the led specifically for notifications.
I would like to use tasker to write to some file using root permissions to enable the notification light every time the phone switched to DND.
Could you help me find out how to do this? Maybe there is another way to achieve what I'm trying to do but this is how far I got.