[Q] GPS.CONF question to the devs! - HD2 Android Q&A, Help & Troubleshooting and Genera

Could the devs create a something so we can specifiy our location for the gps.conf
1. in the startup.txt
2. or a script at startup where we only need to fill in X => X.pool.*
3. or I could make a map with ALL countries, for example
- Belgium
---gps.conf
- Germany
---gps.conf
- Estland
---gps.conf
and so on. and then at startup maybe someone can make a file selector, android asks you which file it should use for gps.
is any of these options possible? I guess this would be a great help for much people.
sometimes builds crash, all my apps fail when I startup after editing the gps.conf
other times my gps just gets useless, this is all because the root access is not always as easy to get, and when you have it, there can still be consequenses like appcrash of the system each time on startup.

Thanks For the post I'm having GPS issues also - Flashed 4 NAND Roms Changed GPS.Conf and still not getting Sat Fix on GPS

HectiQ said:
Could the devs create a something so we can specifiy our location for the gps.conf
1. in the startup.txt
2. or a script at startup where we only need to fill in X => X.pool.*
3. or I could make a map with ALL countries, for example
- Belgium
---gps.conf
- Germany
---gps.conf
- Estland
---gps.conf
and so on. and then at startup maybe someone can make a file selector, android asks you which file it should use for gps.
is any of these options possible? I guess this would be a great help for much people.
sometimes builds crash, all my apps fail when I startup after editing the gps.conf
other times my gps just gets useless, this is all because the root access is not always as easy to get, and when you have it, there can still be consequenses like appcrash of the system each time on startup.
Click to expand...
Click to collapse
An easy way I found from another thread is to use FasterFix, an app that lets you select the correct X.pool script line based on your location. No need to go and find the correct folder and edit the script. FasterFix even has a custom feature so that you can create your own script to get more specific a fix to the satellites in the region you are in. No more hunting to edit the script line! Also, for the other poster in the United States, I found that if you add the number and period 0. in front of us.pool.ntp.org script line, so it would look like: 0.us.pool.ntp.org, your phone will lock onto the satellites within 20 seconds (at least for me) from a cold start. Use the custom feature in FasterFix to do this. Doing this and using GPS Status first to obtain the AGPS information, the next GPS lock will be within a second or two. Here is a link to FasterFix, hope this helps.
FasterFix: http://forum.samdroid.net/f10/fasterfix-1747/

Related

[release] SpbWeatherUpdater 0.1 -- Weather Update despite Proxy-Restrictions (e.g o2)

Hi Guys,
i wrote a small C#-Application for updating SpbWeather (maybe it should work also with other Weather-Applications) despite Proxy-Restrictions (like Vodafone, o2 etc.). This program emulates a normal Wap-Browser (with an exact User-Agent) and downloads a Weather-html-File of your choice to your PDA. In combination with Pico-WebServer and some little tweaks , SpbWeather updates with this local file.
First of all, it is a beta program. Use this program at your own risk. I will take no responsibilities for malfunctions or/and unintentional data traffic (and costs). It should be working fine, but nobody is perfect.
--------------------------------------------------------------------------------------
Ok, here is the Step-by-Step guide what you have to do:
1. Install the lastest Microsoft Compact .Net-Framework on your PDA (http://www.microsoft.com/downloads/...FamilyID=9655156b-356b-4a2c-857c-e62f50ae9a55)
2. SpbWeather
You need a actual version of SpbWeather (it should be with working with other Weather-Programs too, e.g. HTC Weather or PocketWeather)
3. Download the SpbWeather-Template from Spb-Weather-Forum (or somethere else) you want to use. I attached a working template for www.wetter.com
4. Edit the Template-File and search the line "open_url(.......)" . Edit the value in the brackets to open_url("http://localhost/wetter.htm", "GET"); (the name of the .htm - file its your choice).
5. Copy the .tpl - File in the templates - Folder of SpbWeather and add a new City with this edited Template.
6. Install Pico Webserver on your PDA ( http://http://www.tucows.com/preview/200784)
7. Start Picowebserver, goto Settings and edit the Alias Settings. You can choose the default path of the webserver or you can choose another path. But remember this path, we'll need it. Now start the Server.
8. Ok, now you need the WeatherUpdater. Just copy it to a location of your choice and start it. Go to "Settings" and configure the Programm. There are five entrys you can edit.
a. WebServer:
Enter the complete url of the weather site and your town: (wich matched to the template you use for Spb Weather). In my case the Url is: http://www.wetter.com/mobile/wetter.php?id=43367&type=WORLD (enter wetter.com/mobile and you can search your town)
b. Local Web-Server
Enter the Path to the Root-Directory of your Picowebserver (see 6.)
c. Name html-File:
Enter the Name of the htm(l)-file to download...it must matched with the name you edited in the template-File (see 3.)
d. Update on Start:
Downloads the html-Weather-File on Programstart
e. Update-Interval:
Choose an interval for updating the Weather-html-File. You can chosse values between 1 and 1440 minutes. (1min - 24h). Remember, it produces data traffic you have to pay for (or you have a flatrate etc., that's your own risk)) In my example, one update produces 15kb of data traffic. Check various templates with less traffic (maybe less weather info).
With runnig Picowebserver and WeatherUpdater in the background, you can now Update SpbWeather every hour.
What do do next:
-----------------
a. It would be fantastic to integrate the webserver functionality into WeatherDownloader. But i've to check out how to make a Webserver in C#. Maybe someone can help me
Please report any bugs or wishes for further versions.
b. automatic installation with a cab-file and AutoStart functionality
c. HowTo for other Weather Programs like HTC Weather and PocketWeather
d. and many many more features
Pfischi
P.S: Sorry for my English
------
Screenshots in Progress
Nice release Pfischi, something I was looking for quite some ti...........well, forever

GPS

I still cant seem to get my gps working. Whenever i try and navigate it just says "Searching for GPS" and never does anything else
My build is
[BUILD] [18.08.2010] [darkstone HD2Froyo V2.1] [kernel: darkstone 2.6.32.9 #36]
Radio 2.10.50.26
Rom: Energy.Leo.21914.Sense2.5
After it didnt work i also tried following these instructions after downloading gpslib.so to the root of my sd and still nothing
1. Open ADB from the Android SDK.
2. Type "adb pull /system/etc/gps.conf" Then type "rm /system/etc/gps.conf" (No quotations for either)
3. Browse to your ADB tools folder and open gps.conf with your favorite text editor. Notepad works fine.
4. Click the link above corresponding to the continent you're on. I'm in North America, so I would click the North America link.
5. Next, find your country in the list that comes up in the link you clicked. Since I'm in the USA, I used the United States: us.pool.ntp.org
6. Change the first line in the gps.conf from north-america.pool.ntp.org to your country code that you just found.
7. Save the changes.
8. Go back to ADB and type "adb push gps.conf /system/etc" (No quotations)
8. Soft reset your phone and reboot back into Android.
Can anyone help me?
I have to same problem.
Funny that GPS works fine in WM
http://forum.xda-developers.com/showpost.php?p=8337471&postcount=15
Try using bangsters build. With this build you have several options before your first boot. You can edit startup.txt for a few reasons. For example, you are able to choose ppp or rmnet(data network options), axi or no axi(processor scaling). You also have the option of setting a gps location. The default is united states. All you need to do is edit one line in the startup.txt file to define your gps region.
This may or may not be an option with other builds, you can check that out for yourself.
i've had this problem consistently too. gps works fine in winmo, but very rarely does it work with any of these hd2 android builds and i've tried just about every posted "fix" out there.

Imagio Overclock Stable No SOD

hey everyone!
Alrighty i have been following the massive msm7k overclock thread and i have found a way to overclock stable to a 691 mhz with going to sleep and receive phone calls with no SOD.
I cant take all the credit for this because of it not being made by me sooo thanks to nettrip, mort (mortscrip), and RoboWang (throttling creator).
So if you think your Imagio needs a little kick start! This is your solution! USE AT OWN RISK (NOT ALL DEVICES WILL BE ABLE TO REACH ALL SPEEDS) USE AT YOUR OWN RISK AGAIN!
First off you must know how to regedit, create shortcuts, and navigate through file structures.
Download mort Script cab for you device. (google mortscript ( its the .de site) - download the zip for pcc)
Install it on your imagio
Download the v2 msm7kcupspeed from nettrip's thread here on xda and install. do not change any speed values in the program. You will use this to check that the OC is working and the scripts are installed correctly.
OKay here is the tricky part.... SO PAY ATTENTION!!!
Open your regedit (total commander is a good one) and your going to locate where your DispOn Registry is. Two locations to check. CHECK where it is or youll be doing all this work for nothinnnn!!
reg_root_bkl = "HKCU" <--------
reg_key_bkl = "ControlPanel\BackLight"
reg_val_bkl = "DispOn"
or
reg_root_bkl = "HKLM" <--------
reg_key_bkl = "Drivers\Display"
reg_val_bkl = "DispOn"
The rom i am using has it located at HKLU/ControlPanel/Backlight
Once you find your location download the correct file.
IF YOUR LOACTION IS HKLU then grab CSA_U.mscr
IF YOU LOCATION IS HKLM then grab CSA_M.mscr
Copy this file to your storage card. It is neccesary to put it on the storage card because if you clock too high you can just take out the SD card and run at normal speeds till you made corrections to the file.
You MUST know the location of DispOn to use the scripts. You must manually check.
Using your device file manager (activesync), create a shortcut for the .mscr file (rightclick on it and create short-cut). Then just copy the shortcut file to your device Window/Startup directory.
Then just reset and hopefully, you are good to go. One file, Auto OC.
You can use the MSM7 OC app to check the OC, but be sure to exit from it or you will get an error when the phone awakes.
Now for the OC settings.
This script has these settings in them for safety reasons. Not ALL cpus will overclock above the settings in them, but MOST will at least OC to these values.
values set are
start_speed = 37 710
boost_speed = 36 691
safe_speed = 31 604
These are the values that i am currently using... Feel free to change these values to accommodate your device max speeds. Always keep the safe speed at 31!!!! or you will get SOD's
Goodluck!
i hope this helps out my fellow imagio lovers!!! Its like i bought a new device yesterday! This phone is perfect!
Over Clock
Hey,
I live Va also, could I meet you somewhere in Richmond and have to do this to my Imagio?
Just wanted to say, worked like a charm, no problems, took a little googling outside of what is said here, but that is with never messing with my phone, all this takes is a little bit of common sense, thank you very much!

For slow fix gps [moved from dev]

with the cm7, my gps are very slow, +/- 5 -> 10 minutes for fixing, event with ten satellites 'green' on gps status.
With the "Ogo rom" ( thx man ) this operation is realized in ....5 secs !
with the help of "google" and this adress : http://android.modaco.com/topic/331446-mod-all-roms-gps-fix/
i have made a gps.conf for my usage in Belgium : here is :
NTP_SERVER=0.be.pool.ntp.org
NTP_SERVER=1.be.pool.ntp.org
NTP_SERVER=2.be.pool.ntp.org
NTP_SERVER=3.be.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=5000
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=7276
SUPL_SECURE_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
#################################
##### AGPS Carrier settings #####
#################################
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
the result is a fix in 10 secs ! the important parameters in this case is ACCURACY_THRES=5000 and INTERMEDIATE_POS=1, it decrease the necessary time to fix completly.
These parameters reduce the precision to make a faster fix but the precision grows after this.
It's not a scientific approach, but it works on this config :
Legend [email protected]
CM7 nightly 125
Radio rom : 47.51.35.17U_7.13.35.05
If that help anyone, is cool , sorry for my (very) bad English !
Alain
Used it and work´s very good!
I have Root Explorer , navigate to \system\etc , mount r/w and open in text editor, and i am able i edit the gps.conf file, saved the file and everytime it crashes the os and reboots me... when i check again , it didnt save my changes...
Using GPS Faster Fix utility also gives me the same problem.. it let me chose the server but when i save, it reboots...
I am running Blayo ROm with the A2SD with data ext... not sure if this is related.
Any ideas
Thanks
well, try with adb to push this file on the system !
I open the file zip on my computer. Then edit the gps.conf by inserting my local servers. Then save changes and put zip file on sdcard and in cwm recovery choose zip from sdcard and just flash.
Went ok. Just try.
Cheers
Sent from my Legend using XDA App
I couldnt edit while the phone was on... and i tried using the flashing method to install it.
I couldnt find any difference with the new gps.conf though...
My test was to open GPS Status and Reset the aGPS Data, then reboot the phone to make sure im testing the GPS without any aGPS or wifi.
Once rebooted, first thing i open the GPS Status, it took forever to get a fix... at least 15 mins... i had a blue sky ...
Is this how you guys test to see if it is quick?
But once fixed, it is quick for subsequent tries... as long i do not reset the aGps data.
It's perfect, finally working as it should. Getting a fix in 3 seconds
The easiest way is just install the .zip by cwm recovery, instead of editing gps.config manually.
sirpasztet said:
It's perfect, finally working as it should. Getting a fix in 3 seconds
The easiest way is just install the .zip by cwm recovery, instead of editing gps.config manually.
Click to expand...
Click to collapse
can you tell mw when you said getting a fix in 3 seconds... how you timed/test it?
1. Did you use GPS Status apk from the market?
2. Did you delete all AGPS Data (Menu>AGPS>Reset AGPS data)
3. Reboot phone and try GPS Status and get your fix in 3 secs?
I downloaded the .zip and modified it to accommodate my location: ca.pool.ntp.org. I then flashed it (also cleared my dalvik cache, this may help) and booted into CM7.1, like usual.
Then I went into my GPS test app, GPS Test and it got a lock instantly. What baffled me however was that it locked me to 0m accuracy and no satellites were in view. I was indoors. I then went into Google Maps and once again it locked me instantly, but to Winnipeg, Manitoba, a city 1500km away from Edmonton, my city.
Then I rebooted once more and went back into GPS Test. The GPS lock icon was flashing for a few seconds, trying to acquire a fix, but then stopped altogether.
This is strange, and doesn't work for me apparently.
EDIT: Figured out the solution to my latter problem, the permissions were all effed up. I'm still instantly locked to Winnipeg though.
EDIT2: Nope, both problems still persist. Permissions did nothing.
EDIT3: Oh God, I left my GPS to fix all by itself and when I came back, the accuracy is getting less accurate! It was 1700m when I started typing, now it's at 2700m! WTF IS GOING ON?
EDIT4: It lost its fix after 4996m accuracy, it's finding some satellites now and will probably do the same damn thing again! "Fix-loop" is what I'm starting to call it. For now, I'm gonna download my Stock ROM (unrooted) and find the gps.conf file in there, then flash it.
QkSi1ver said:
can you tell mw when you said getting a fix in 3 seconds... how you timed/test it?
1. Did you use GPS Status apk from the market?
2. Did you delete all AGPS Data (Menu>AGPS>Reset AGPS data)
3. Reboot phone and try GPS Status and get your fix in 3 secs?
Click to expand...
Click to collapse
First I cleared and downloaded new agps data, using GPS Test app. Then I launched Google Maps and my accurate location has been set in few seconds.
Asovse1 said:
I downloaded the .zip and modified it to accommodate my location: ca.pool.ntp.org. I then flashed it (also cleared my dalvik cache, this may help) and booted into CM7.1, like usual.
Then I went into my GPS test app, GPS Test and it got a lock instantly. What baffled me however was that it locked me to 0m accuracy and no satellites were in view. I was indoors. I then went into Google Maps and once again it locked me instantly, but to Winnipeg, Manitoba, a city 1500km away from Edmonton, my city.
Then I rebooted once more and went back into GPS Test. The GPS lock icon was flashing for a few seconds, trying to acquire a fix, but then stopped altogether.
This is strange, and doesn't work for me apparently.
EDIT: Figured out the solution to my latter problem, the permissions were all effed up. I'm still instantly locked to Winnipeg though.
EDIT2: Nope, both problems still persist. Permissions did nothing.
EDIT3: Oh God, I left my GPS to fix all by itself and when I came back, the accuracy is getting less accurate! It was 1700m when I started typing, now it's at 2700m! WTF IS GOING ON?
EDIT4: It lost its fix after 4996m accuracy, it's finding some satellites now and will probably do the same damn thing again! "Fix-loop" is what I'm starting to call it. For now, I'm gonna download my Stock ROM (unrooted) and find the gps.conf file in there, then flash it.
Click to expand...
Click to collapse
once you get the gps.conf of the stock rom, post it here.. i want to compare with the modded one... is it a bell/virgin legend?
than ks
QkSi1ver said:
once you get the gps.conf of the stock rom, post it here.. i want to compare with the modded one... is it a bell/virgin legend?
than ks
Click to expand...
Click to collapse
It's a Bell Legend. And this is from the Eclair ROM (so I couldn't get Froyo's, doubt there would be updates/changes to gps.conf):
Code:
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.wireless.bell.ca
SUPL_PORT=7275
SUPL_TLS_HOST=supl.wireless.bell.ca
SUPL_TLS_CERT=/etc/SuplRootCert
Haven't tried it yet, I haven't been able to find the time. How did modifying it work for you if you've tried it already?
By the way, Bell and Virgin probably used the same Eclair ROMs, a Virgin CSR told me that they both had the same Froyo, so I'm thinking that 2.1 would also be identical.
mmm i may change mine to add those instead... because when i reset the gps cache it takes forever to get a fix... like 15 - 30 mins...
Asovse1 said:
It's a Bell Legend. And this is from the Eclair ROM (so I couldn't get Froyo's, doubt there would be updates/changes to gps.conf):
Code:
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.wireless.bell.ca
SUPL_PORT=7275
SUPL_TLS_HOST=supl.wireless.bell.ca
SUPL_TLS_CERT=/etc/SuplRootCert
Haven't tried it yet, I haven't been able to find the time. How did modifying it work for you if you've tried it already?
By the way, Bell and Virgin probably used the same Eclair ROMs, a Virgin CSR told me that they both had the same Froyo, so I'm thinking that 2.1 would also be identical.
Click to expand...
Click to collapse
I have instaled the last cm7 nightly and the gps.cnf back to original state. i have now the new cwm i i get a error. cant flash. now i dont know if is the cwm mod who does not support or if is the nightly. anyone knows something?
Hmm, let me get this straight. You get a big red sign over the whole screen saying just:
ERROR
Hmm, weird
BlaY0 said:
Hmm, let me get this straight. You get a big red sign over the whole screen saying just:
ERROR
Hmm, weird
Click to expand...
Click to collapse
LOLOL... i will write in here what was saying!
Edit: here we go!
"Amend scripting (update-script) is no longer supported. Amend scripting was deprecated by Google in Android 1.5. It was necessary to remove it when upgrading to the Clockworkmod 3.0 Gingerbread based recovery. Please switch to Edify scripting (updater-script and update-binary) to create working update zip packages."
So i believe that when update cmw from 2.x.x to 3.x.x is no longer possible to flash that gpsfix.zip. If that so, anyone with older version to do fake flash to try again this fix.
You can use both fake-flash versions whenever you like. Just copy the old one (2.5.x) to SD card naming it update-old.zip instead of update.zip. Boot to recovery, load 3.x fake flash update.zip (standard procedure). After that load update-old.zip from 3.x recovery and you'll end up with 2.5.x. Load update.zip from 2.5.x again and you'll be back on 3.x.
BlaY0 said:
You can use both fake-flash versions whenever you like. Just copy the old one (2.5.x) to SD card naming it update-old.zip instead of update.zip. Boot to recovery, load 3.x fake flash update.zip (standard procedure). After that load update-old.zip from 3.x recovery and you'll end up with 2.5.x. Load update.zip from 2.5.x again and you'll be back on 3.x.
Click to expand...
Click to collapse
But i have deleted the old cwm. i need the zip file to do that. can you get that for me? i can´t find it!
thanks in advance!
Edit: i think i´ve found in this threath: http://forum.xda-developers.com/showthread.php?t=1057072
Edit2: try to fake flash the that and receive a message saying that original recovery was changed by this one. Of course, does not.
I need cwm 2.5.x zip file to work.
Anyone?
ICavalera said:
But i have deleted the old cwm. i need the zip file to do that. can you get that for me? i can´t find it!
thanks in advance!
Edit: i think i´ve found in this threath: http://forum.xda-developers.com/showthread.php?t=1057072
Click to expand...
Click to collapse
Old CWM? 2.5 something? That comes with the ROM Manager app in the Market, doesn't it? (nooby answer )
Are you saying to open rom manager, flash the recovery menu, and then install zip from sdcard?
Sent from my Legend using XDA App

[Q] G-Sensor Calibration - Devs/Senior members PLEASE HELP

Hi,
I have TyphooN_CM7_v3.7.0-MAGLDR Android (2.3.7) on NAND since a few months now, no complaints except for one small thing which is a bit irritating. The G-Sensor is a bit off by a few degrees, vertically and horizontally.
There are a couple of posts on the forum (http://forum.xda-developers.com/showthread.php?t=803242) and (http://forum.xda-developers.com/showthread.php?t=979879) which mention that altering the file AK8973Prms.txt in folder /data/misc should be the remedy. However, I found that the values within the file on my system are completely different, here's what I mean:
AK8973prms.txt on my phone:
Code:
[AK8973]
HDOE_STATUS=2
HDOE_SUCTEMP=128
HDAC.x=129
HDAC.y=131
HDAC.z=133
HOFFSET.x=-767
HOFFSET.y=39
HOFFSET.z=-97
ASENSE.x=256
ASENSE.y=256
ASENSE.z=256
AOFFSET.x=0
AOFFSET.y=0
AOFFSET.z=0
Suggested Values on the thread/s:
Code:
[AK8973]
HDOE_STATUS_SLIDER_OPEN=1
HDOE_STATUS_SLIDER_CLOSE=0
HDOE_SUCTEMP=114
HDAC_SLIDER_OPEN.x=128
HDAC_SLIDER_OPEN.y=135
HDAC_SLIDER_OPEN.z=4
HOFFSET_SLIDER_OPEN.x=250
HOFFSET_SLIDER_OPEN.y=593
HOFFSET_SLIDER_OPEN.z=175
HDAC_SLIDER_CLOSE.x=0
HDAC_SLIDER_CLOSE.y=0
HDAC_SLIDER_CLOSE.z=0
HOFFSET_SLIDER_CLOSE.x=0
HOFFSET_SLIDER_CLOSE.y=0
HOFFSET_SLIDER_CLOSE.z=0
ASENSE.x=256
ASENSE.y=256
ASENSE.z=256
AOFFSET.x=0
AOFFSET.y=0
AOFFSET.z=0
I am afraid to replace the whole file. If I have to edit the values, which ones do I edit, the values are poles apart! Some suggestions please....
Jiggy
Hi I have the same problem,The orizontal line (y Axis) is a little bit out of calibration.Don t know if it s an hardware fault cause,2 days after buying my hd2 I putted android on it,but from what I can remember in windows mobile I had not this problem.For almost 1 year I used typhon cyanogenmod rom,in witch i could modify the calibration data from ak8973prms file.
You have to change only the last 3 parameters value
AOFFSET.x=0
AOFFSET.y=0
AOFFSET.z=0
Let the other untouched.For example in mine i had :
[AK8973]
HDOE_STATUS=2
HDOE_SUCTEMP=128
HDAC.x=129
HDAC.y=131
HDAC.z=133
HOFFSET.x=-767
HOFFSET.y=39
HOFFSET.z=-97
ASENSE.x=256
ASENSE.y=256
ASENSE.z=256
AOFFSET.x=10
AOFFSET.y=-20
AOFFSET.z=0
You have then to set the permission to this file to read only in some rom and restart to let the change take effect.
The problem now is:
I passed to dorimanx rom because the no more support from typhon to his great rom.In this rom I can t modify this file,everytime I restart the system the file is restored with default value,even if I change permission.I talked to dorimanx (he is a great developer and give great support to the comunity and users with his rom) and he said that I have this problem cause now the gsensor calibration is kernel related,so the kernel overwrite everytime this file.Sadly he can t change those value in his kernel or else every other user will experience a wrong calibration.
Does any other user notice a wrong calibration issue?Could be even related to an hardware revision wich is not supported completly by the kernel,same as the users wich experience a non working g-sensor under android but wich work under windows mobile.
It would be great to override this problem by developing something to calibrate the gsensor,like in sense rom settings.
Please everyone with a not working or inaccurate gsensor under android,but perfect in windoiws mobile,report the experience here.Maybe with the help of the entire comunity we can solve the problem
I hope you can understand my english
Axel85 said:
Hi I have the same problem,The orizontal line (y Axis) is a little bit out of calibration.Don t know if it s an hardware fault cause,2 days after buying my hd2 I putted android on it,but from what I can remember in windows mobile I had not this problem.For almost 1 year I used typhon cyanogenmod rom,in witch i could modify the calibration data from ak8973prms file.
You have to change only the last 3 parameters value
AOFFSET.x=0
AOFFSET.y=0
AOFFSET.z=0
Let the other untouched.For example in mine i had :
[AK8973]
HDOE_STATUS=2
HDOE_SUCTEMP=128
HDAC.x=129
HDAC.y=131
HDAC.z=133
HOFFSET.x=-767
HOFFSET.y=39
HOFFSET.z=-97
ASENSE.x=256
ASENSE.y=256
ASENSE.z=256
AOFFSET.x=10
AOFFSET.y=-20
AOFFSET.z=0
You have then to set the permission to this file to read only in some rom and restart to let the change take effect.
The problem now is:
I passed to dorimanx rom because the no more support from typhon to his great rom.In this rom I can t modify this file,everytime I restart the system the file is restored with default value,even if I change permission.I talked to dorimanx (he is a great developer and give great support to the comunity and users with his rom) and he said that I have this problem cause now the gsensor calibration is kernel related,so the kernel overwrite everytime this file.Sadly he can t change those value in his kernel or else every other user will experience a wrong calibration.
Does any other user notice a wrong calibration issue?Could be even related to an hardware revision wich is not supported completly by the kernel,same as the users wich experience a non working g-sensor under android but wich work under windows mobile.
It would be great to override this problem by developing something to calibrate the gsensor,like in sense rom settings.
Please everyone with a not working or inaccurate gsensor under android,but perfect in windoiws mobile,report the experience here.Maybe with the help of the entire comunity we can solve the problem
I hope you can understand my english
Click to expand...
Click to collapse
I too am on dorimanx kernel , and my sugestion to you would to use an init.d script to set the values of your text file upon boot . that way its set to your device specific values upon boot every time .
elesbb said:
I too am on dorimanx kernel , and my sugestion to you would to use an init.d script to set the values of your text file upon boot . that way its set to your device specific values upon boot every time .
Click to expand...
Click to collapse
Starting from the dorimanx last 4.4 kernel could you help me editing this file?Have you seen a guide in wich I can learn about this editing process?So maybe i can help some people.My idea is to creat an application wich calibrate the g sensor,like in gps status for expample,but for the whole system not only the application itself.We have an example in sense rom under the settings were you can find g-sensor calibration
Thanks for your reply.
The AOFFSET values are already set to '0' in the original file on my device. So what do I change here?
you have to change the last 3 value and test,restart and test your sensor.I used the google sky map orizontal line.To know the faulty axis i donloaded sensor debug from market,the procedyure is descripted in this thread:
http://forum.xda-developers.com/showpost.php?p=7067687&postcount=53
you have to try values,because sensor debug value is only used to see wich axis is uncalibrated.Then you can start with an high value to see if it change something and then fine tweak the whole thing
I'm using an actual level finder here... my sensor is off by approx 6.3 degrees! I'll try a few values and post back here....
This will take a lot of fine tuning... getting there..
Axel85 said:
Starting from the dorimanx last 4.4 kernel could you help me editing this file?Have you seen a guide in wich I can learn about this editing process?So maybe i can help some people.My idea is to creat an application wich calibrate the g sensor,like in gps status for expample,but for the whole system not only the application itself.We have an example in sense rom under the settings were you can find g-sensor calibration
Click to expand...
Click to collapse
Well you could have the application set the values to zero . But I think that wont "calibrate" the g sensor . It would be tough creating an application that would calibrate the g sensor since the g sensor could be different across all devices . A script placed inside the init.d folder should serve its purpose to set the device specific settings . Maybe the app could run through different settings and the user picks the best one for their device .
Sent from my HTC HD2 using Tapatalk
elesbb said:
Well you could have the application set the values to zero . But I think that wont "calibrate" the g sensor . It would be tough creating an application that would calibrate the g sensor since the g sensor could be different across all devices . A script placed inside the init.d folder should serve its purpose to set the device specific settings . Maybe the app could run through different settings and the user picks the best one for their device .
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
My idea is an app that read the axis degree with the phone on a flat surface,and set those values as the default 0 value in AK8973Prms.txt.but the problem is the fact that in new roms this calibration is integrated in kernel,and changing value to this file does not work anymore,since the file is resetted every boot.Do you know about any guide to create those scripts to pòut in int.d folder?
Axel85 said:
My idea is an app that read the axis degree with the phone on a flat surface,and set those values as the default 0 value in AK8973Prms.txt.but the problem is the fact that in new roms this calibration is integrated in kernel,and changing value to this file does not work anymore,since the file is resetted every boot.Do you know about any guide to create those scripts to pòut in int.d folder?
Click to expand...
Click to collapse
that sounds like a good idea , and to counteract the values being reset on boot , have the program make a file in the "init.d" directory with the settings so it resets itself upon boot . for guides just google , i usually take on that already in my init.d folder and edit it to my liking .
but heres some that i found :
http://www.ehow.com/how_4924505_write-script-unix.html
http://www.hpcvl.org/sites/default/...reference.pdf?phpMyAdmin=fec4e5f8403t4839c515
https://www.google.com/#hl=en&sclie....,cf.osb&fp=e92f2272b3130b4a&biw=1144&bih=626
Axel85 said:
you have to change the last 3 value and test,restart and test your sensor.I used the google sky map orizontal line.To know the faulty axis i donloaded sensor debug from market,the procedyure is descripted in this thread:
http://forum.xda-developers.com/showpost.php?p=7067687&postcount=53
you have to try values,because sensor debug value is only used to see wich axis is uncalibrated.Then you can start with an high value to see if it change something and then fine tweak the whole thing
Click to expand...
Click to collapse
Changing the last three values greatly also did not change much, if anything at all. I then changed ALL the values to the ones mentioned here: http://forum.xda-developers.com/showpost.php?p=7067687&postcount=53
Now it seems to be ok (+/- 1 degree). I think all are related.
They should not be related...They are the three axis X Y Z.You have to restart for change to take effect everytime.When iI apllied this method I started modifying 1 axis at time.putting at first a big value as 50 or -50 and looking at the change,after many tweaks I found my calibration value
---------- Post added at 11:02 AM ---------- Previous post was at 11:00 AM ----------
elesbb said:
that sounds like a good idea , and to counteract the values being reset on boot , have the program make a file in the "init.d" directory with the settings so it resets itself upon boot . for guides just google , i usually take on that already in my init.d folder and edit it to my liking .
but heres some that i found :
http://www.ehow.com/how_4924505_write-script-unix.html
http://www.hpcvl.org/sites/default/...reference.pdf?phpMyAdmin=fec4e5f8403t4839c515
https://www.google.com/#hl=en&sclie....,cf.osb&fp=e92f2272b3130b4a&biw=1144&bih=626
Click to expand...
Click to collapse
Ok I will try if I can understand something about programming for android.I think it would be even an easy process to create a program like this,but I start from 0
Axel85 said:
They should not be related...They are the three axis X Y Z.You have to restart for change to take effect everytime.When iI apllied this method I started modifying 1 axis at time.putting at first a big value as 50 or -50 and looking at the change,after many tweaks I found my calibration value
---------- Post added at 11:02 AM ---------- Previous post was at 11:00 AM ----------
Ok I will try if I can understand something about programming for android.I think it would be even an easy process to create a program like this,but I start from 0
Click to expand...
Click to collapse
The links are only about script writing to be placed in the init.d folder . To write a full fledged android program you must write in Java .
Sent from my HTC HD2 using Tapatalk
elesbb said:
The links are only about script writing to be placed in the init.d folder . To write a full fledged android program you must write in Java .
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
i know i know
Guys, I have a nexus s 4g from sprint. The g-sensor either doesn't work or this file is wrong. I'm on gingerbread, and i'm rooted. I have es file explorer installed with all the correct root options enabled. I have ran a search for the AK8973Prms.txt file, but it doesn't seem to be there. However, if i run a search for just "ak" I get other folders such as AK8973, but nothing inside it. Should I create a file and push it to the phone or what? and if so where does the file go on the nexus s 4g?
wailer247 said:
Guys, I have a nexus s 4g from sprint. The g-sensor either doesn't work or this file is wrong. I'm on gingerbread, and i'm rooted. I have es file explorer installed with all the correct root options enabled. I have ran a search for the AK8973Prms.txt file, but it doesn't seem to be there. However, if i run a search for just "ak" I get other folders such as AK8973, but nothing inside it. Should I create a file and push it to the phone or what? and if so where does the file go on the nexus s 4g?
Click to expand...
Click to collapse
Hi,
I have recently purchased a Sony Xperia S with Android 2.3.7 (it is still unrooted), though ES explorer does display the root files. (It only displays them).
On the Xperia, there is no misc folder (or AK8973Prms.txt for that matter) in the /data/ folder. So I suppose it could be only a custom ROM file. Is yours a custom ROM or the original?
JK
Setting.apk
Copy Setting.apk from similar phone model that has g-sensor calibration and u will have it too. Setting.apk in System/app folder:victory:
For Chinese MTK6573 based phone search custom rom v3.3 by Bruno Martins and extract the file needed:victory:

Categories

Resources