[Q] How to calibrate the G-Sensor? - G Tablet Q&A, Help & Troubleshooting

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).

Related

[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] Screen brightness resets to 100%

Hi I just bought a tablet s and when I set the brightness down and then open some apps (e.g. reader) the brightness goes up to 100% also if I turn it off for a little while (standby not off off) when i wake it up its at full brightness again.
I can take it back within 7 days so I would really appreciate it if anyone knows how to stop it doing this or ill have to take it back.
Thanks
For some stupid reason the reader app has a separate brightness setting. When you're in the app, touch near the bottom of the page and then touch the briefcase icon. Brightness will pop up on the left.
Sent from my Sony Tablet S using Tapatalk
HYPER-X10 said:
For some stupid reason the reader app has a separate brightness setting. When you're in the app, touch near the bottom of the page and then touch the briefcase icon. Brightness will pop up on the left.
Sent from my Sony Tablet S using Tapatalk
Click to expand...
Click to collapse
Agree. Have the same experience with Reader. No issues with the other preinstalled apps.
Do not think the reported issue would be hardware. Sounds like a misbehaving app.
Do Tamworth in though... just in case

[Tasker] "Tasface": Flick-your-wrist shows watchface!

As many of you may know, for newer version of TS (at least for 4th List, May version devices), it's NOT possible to flick your wrist to show watch face since the Accelerator is DISABLED whenever screen is OFF!!!
What an oversight! A smart watch needs you to push a button to see time? What if when you are driving or have both hand full and cannot spare even a finger!?
(My Pebble, on the contrast, works great here!)
I tried to force the screen always on with watch face, it's great, except it kills my battery in around 6 hrs (airplane mode!) Not acceptable!
Thus, Here comes "Tasface". With this, you could achieve:
1. Let TS shows you time WHENEVER you LOOK at the watch! (well, actually when the watch is face up) or when you flick your wrist (You can modify this!)
2. Reduce using your button (if you have an Shortcut supported launcher like Smart Launcher 2)
DISCLAIMER: I will not be responsible if Tasface broke/brick your TS in anyway! Since Tasface is only a set of Tasker profiles/Tasks you can read everything before decide go or not! Tasface DO mess around with system files!
Pre-requests:
===============
1. Your TS must be ROOTED!
2. You need to know Tasker basics! (It's not THAT difficult to use Tasker...)
3. Tasker (Obviously)
4. Watchface by Kurt Huwig (I didn't test other watchface app. May not work with stock lock watchface) https://play.google.com/store/apps/details?id=de.huwig.watchfaces
5. Secure Settings (Required) https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin
6. Smart Launcher 2 (Optional, any Launchers supports Shortcut will work. With this you can activate Watch face without using button!) https://play.google.com/store/apps/details?id=ginlemon.flowerfree
Set-up
========
1. Have Tasker (required), Watchface (required), Secure Setting (don't forget to install system helper) and Smart Launcher 2 (Optional) installed. DO NOT IMPORT "Tasface" yet!
2. Disable your stock lock watchface: Go to Setting/Personal & Account/Security/Screen lock/None (<-- This IS IMPORTANT)
3. Launch Watchface by Kurt Huwig, than double tap on any watchface to enter setup
  a. check "Keep screen on"
  b. Select desired watchface from "Lockscreen face"
  c. Recommended to disable all other options
4. Check if the Watchface work or not by turn off than turn on your TS by press the upper physical button. You should see the Watchface you selected shows up when screen on. Swipe to return to your launcher and launch Tasker.
5. Unrar and import Tasface into Tasker
6. Close Tasker
7. Turn off --> Turn on your TS with the upper button
8. Profit!
Notes
=======
1. When watchface is displayed:
  a. Touch screen is DISABLED to avoid accidental touch.
  b. Screen will be OFF after 8 seconds (you can setup your prefer time)
  c. Touch screen lock is achieved by putting a transparent Tasker Scene element on top of the Watchface. A small "X" on bottom right screen is used to reactivate the touch screen. You can also push the lower right button (back) to reactive your touch screen.
2. To show watchface (after automatic screen off as Step 1)
  a. Just face the watchface up. The watchface should appear for another 8 seconds
  b. There maybe a 1~2 second delay. This is due to Tasker not detecting the Watchface up event. I cannot do anything about this....
  c. You could change the watchface up to anything else, like "Sensor shake/Backware-Forward"
3. If you have "Smart Launcher 2" or any other launcher supports Shortcut, you can set a icon to task "Lock". With this TS will activate watchface WITHOUT touch physical button. (I heard horrible stories about broken button so want to avoid use them as much as possible!) It's normal the screen will off for 2 second than back on with watchface for 8 seconds!
4. You must wait for automatic screen off or use the "Lock" shortcut to turn off the screen! Tasface will NOT work if you turn off TS by pressing the upper right physical button. This DISABLE the accelerator as mentioned above. To reactive Tasface, just turn on TS by pressing the upper right physical button to show the watchface than wait for automatic screen off.
I wrote this primarily for myself so a there are a lot of bugs. You are free to modify it and make it better. Just let me know if you have any questions and need help or improvement here!
Thanks button is just a click away if I helped you!
Update the attached file to resolve some bugs and improve responseness
Technical stuff -- What is done here?
=================================
It's a bit technical here .... No need to read if you don't care how it works!
Since TS turns off the accelerator whenever screen off, so it's not possible to activate the screen once it's off by external conditions. (You can still set a timer to wake the screen, but it's meaningless)
Thus we need to disable the power hungry backlight while keep the screen on!
I found out that it's possible to control the backlight by doing
Code:
echo 0 > /sys/class/leds/lcd-backlight/brightness
Thus, I set up a Task profile which fires whenever Watchface is activated and TS is face up, to activate the backlight then turn off the backlight again after 8 seconds, but KEEP the TS screen wake! (Only backlight is turned off to save battery!)
Code:
echo 1 > /sys/class/leds/lcd-backlight/brightness
You can change "1" to anything from 1~255. I just found 1 bright enough for me
Since screen/system is always wake, to avoid accidental touch, a transparent Tasker Scene on top of the screen is add to disable the touch screen. A small "X" is on the bottom right to disable this transparent scene if anything goes wrong. (And it does, Tasker is laggy sometimes and too slow to remove this scene automatically!)
I also lower down the CPU cycle to the lowest possible to further saving battery. CPU returns to normal frequency when leaving watch face (into launcher, etc...)
That's all! Folks!
Reserved
Shake
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Piw said:
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Click to expand...
Click to collapse
Thanks for the advice.... I just think since I already have Tasker on my TS, I want to find a way to not to use additional SW which always runs in background to monitor things... Since its battery hungry, maybe Shake also use the same trick as me......
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Sent from my HTC_One_max using XDA Premium HD app
might give this a shot since shake was waking up watch at wrong times and was destroying battery life, and i already have tasker on the watch and running so hopefully that will avoid the battery loss that shake had.
lssong99 said:
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Click to expand...
Click to collapse
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Piw said:
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Click to expand...
Click to collapse
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
tasker problems
lssong99 said:
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
Click to expand...
Click to collapse
i can not import to tasker tasker do not see it
pashka79 said:
i can not import to tasker tasker do not see it
Click to expand...
Click to collapse
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
funky0308 said:
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
death_entry said:
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
Click to expand...
Click to collapse
Well as I have Z1, which is quite big, I'm using TS mainly to receive notifications (using swapplink).
I'm receiving many emails (I'm using Z1 as my business phone) so it's great that I can see on my TS subject of email and decide what will I do.
I have sim card in TS and I use it all the time, when I'm alone in a car (and that's 6 hours per day )
I found TS quite practical for companion
BTW...from today, I'm using this app to help me save my battery power on TS and Z1
http://forum.xda-developers.com/showthread.php?p=53078670
Sent from my C6903 using Tapatalk
lssong99 said:
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
Click to expand...
Click to collapse
I tried this and Tasker can't see the xml on my TS
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
I am afraid that this will have an impact your battery. Basically to make TS responsive (light up as soon as you raise your hand), the screen/CPU is kept wake. Only LED backlight is disabled.
Although in my implement I put the CPU is slowest frequency and sleep Governor, but battery is around one day usage without radio on....
We need kernel tweak of this to achieve good battery life... Tasker is only... Tasker...
jeremy.chan said:
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
Click to expand...
Click to collapse
Thanks I see it now.
put the unzip file at that location and still Tasker cannot see it?
Hi do read the solution I provided
Tapa-ed from the Sony Z Ultra

[Q] Any Way To Auto-Run An App On Device Startup?

I have been using the "Smart Screen ON" app which communicates with the devic'es proximity sensor that when I wave my finger twice (depending on the app's setup) near it, my phone locks or the screen turns on, instead of pressing the physical "Home" button. Is there a way to make this or any other app automatically start itself every time the device boots up, so I won't have to turn run it myself?
Thanks a lot!
I'm using a third party app for this. But is there a better way to do it? Thanks
You are justa waisting memory and draining your battery at higher levels. First : because of the active sensor and second because of the boot up start up app that probably remains in backgroung.
Just give up this strategy and use your home / power button. Home button is easily acessible with one hand operation. and much mmore conveinient to use. For powering off tou can use many of the available apps (whith device administrator granted) or use any other gesture configured on launcher (if you use nova) or multigesture xposed app).
Hope it helps
Endroyed said:
I'm using a third party app for this. But is there a better way to do it? Thanks
Click to expand...
Click to collapse
The power consumption of the sensor doesn't seem to be a problem on my phone. It doesn't consume much power as you think it would. There are apps that devour even more battery. So, I'd rather use the proximity sensor to lock or turn the screen on than pressing the button. Thank you for your feedback though.
Sent from my GT-I8552

Apps not auto-starting or so with IMobS Battery Calibration App

I've installed and used the IMobs Battery Callibration App (see how-to and play store
Short description: i have run the calibration, and now some apps are not triggered to run, e.g. the alarm doesn't off.
I have run the 'long' calibration, where it cycles through every single app to do something about their battery use. Now I've a problem with some apps. It seems all to do with that the apps do not wake up/start when triggered, or do start but are suppressed quickly. I've tried to find a solution on this forum, but didn't find it.
example 1 alarm doesn't ring: e.g. an alarm is set for 6 a.m. to wake up. At 6 a.m. the phone wakes up, sometimes in a flash the click/alarm view is visible for a moment and it immediately disappears. The alarm does not sound (or only available fraction of a second).
Note: I have noticed that after reboot the ringing is triggered, but after some time (say 1 day or maybe half a day), it doesn't ring at the specified alarm time.
example 2. When I open de cover of the phone, thee screen does not turn on (it's a special Samsung cover, that turns on the screen when opened). Also when I press the power button, the 'small screen' belonging to the Samsung cover does not turn on; the whole screen turns on in stead.
example 3. In contacts, there is a function 'Business Cards', which can open the camera, take a picture of the card, and create automatically a contact from it. When I press the 'camera' button, the camera starts and closes immediately, as if something is detecting it as not-the-foreground app.
How can I solve this?
I have already tried to search on this and other fora, but because the term 'Battery Callibration' is so common, I find only how-to guides! Trying to solve this I was already wondering these questions:
Question 1: what does Battery Callibration actually do when do the 'long' calibration? It goes through all the apps. What setting does it change?
Question 2: how can I reverse whatever Battery Callibration did?
Question 3: would factory-resetting acutally help, since it required root, it might have changed settings in the system partition?
Question 4: are there other people with similar problems? I couldn't find any, but some experts here have more experience or more luck finding info.
Device: Samsung Galaxy Note3 (model N9002) with Android v4.4.2
XDA Developers is a busy forum and I am new here; I was wondering if I had posted this in the wrong section, since I didn't get any response so far.
Thanks for your kind help.

Categories

Resources