[Q] Lollipop Kernel With Working Compass? - Verizon Samsung Galaxy S 4

I have been searching around since flashing KT Kernerl and DirtyUnicorn 5.1. I can't find a Kernel that has a working compass. Considering I use the S4 as a trail GPS on my bike, it's kind of important that the compass doesn't point in the opposite direction and randomly wander around in a circle like a drunk. Anybody know of a Kernel I might have missed that has fixed this issue? I've found that it's due to the use of unified kernels.

Related

Does your compass work? If so, what ROM are you using?

I'm trying to remember a time when my compass worked properly. I think it did, at some point, but that point is certainly not now. I'm running the leaked froyo build, and the compass - while pointing in the proper general direction - varies and jumps around greatly depending on how I orient the phone.
So, what about you? Has your compass ever worked right? If so, which build did you use? Do you find that changing ROMs changes your compass performance?
I've tried many different ROMS and it appears as though there is no major difference in the compass. Also tried all the different compass apps with no luck. I remember reading somewhere that the compass on our phones is very different than most and will never be 100% accurate. Anyone else heard different?
My compass has always worked, though now I'm on jk2 and it's not working so its not just you
Sent from my SXY-T959

GPS Problems in either Euphoria and Passion on 2 vibrants

I know there's plenty of GPS problems with this phone, but after reading that GPS works in both the roms i've tried, i think im doing something wrong. This is where i'm at:
After using both of these roms on 2 different vibrants, i can't figure out for the life of me why i cant get the GPS to do anything at all on these roms.
I've used ODIN to go back to stock, and then tried flashing the roms but with no luck.
I dont have any clue how to use Angry GPS either, so i haven't messed with that at all. If i need to change some settings within the app, please enlighten me.
Thanks for anyone who helps me with this problem. The only Rom i know of that i have 100% working GPS is with Team Whiskey's Bionix-V 1.3.1.
Anyone? I dont want to be pushy, i just wanna figure out the problem.
And on a side note, i know i posted in the wrong section.
GPS works but it is also a work in progress as no one knows what is really going on with GPS in the Vibrant. The ROM seems to have little effect on weather the GPS works but the "kernel" that underlies it is where the effort is being placed for a fix. While the GPS works on all the kernels it eventually stops working after some time. It is believed to be an issue with how Android starts and stops different services to save power.
Most users have reported great GPS using Kiss 2.2 kernel in combination with either of the Team-Passion Roms (Passion, Euphoria). The most recent kernel is Kiss 8.2. Get it here:http://team-passion.com/index.php/downloads/galaxy-vibrant
For info on each kernel see here: http://team-passion.com/index.php/forum/2-about-team-passion/283-test-kernels
Keep in mind that the developers in my opinion have been working on these ROMS and Kernels like it was their full time job. And they are determined to make GPS work consistently so give them some encouragement to hopefully keep them motivated as they are likely our only hope.
Passion is a faster more responsive but Euphoria has more customizations baked in. The kernels are interchangeable between these ROMs but they have different performance characteristics.
GPS working after deep sleep on Euphoria
After going through 10 ROMs and 20 Kernals I think I may have a semi working GPS. Running Euphoria RC2.1 with stock KB5 modem and gingerbread bootloaders. Installed these gps fixes
http://forum.xda-developers.com/showthread.php?t=1550327
Ran ultimate cleaning script then flashed Glitch then the subzero kernel in the same recovery session
CM9-vibrantmtd-Glitch-V14-B6.zip
cwm-subZero-vibrant-1.1VC_build61-CFS_BLN.zip
Lock immediately after boot with angry gps and phone has deep slept multiple times and gps picks up after granted after 50 seconds
I really appreciate the help guys, the Kiss 8.2 kernel fixed the problem in the Euphoria 2.1 ROM. I get locks within 10 seconds, and also better battery life.
So now as far as im concerned, this is the best combo there is.
droidtomtom said:
Most users have reported great GPS using Kiss 2.2 kernel in combination with either of the Team-Passion Roms (Passion, Euphoria). The most recent kernel is Kiss 8.2. Get it here:http://team-passion.com/index.php/downloads/galaxy-vibrant.
Click to expand...
Click to collapse
8.2 did the trick for me. Locked up in under 20 seconds, and I'm inside my house (by a window) Don't know about deep sleep recovery, but I'll let you know.
You really need to change to Chimera v2.2

[Q] Compass East/West Flipped in all 5.0 Lollipop Roms

I have been trying a variety of Android 5.0 Roms on my Verizon Galaxy S4. While most of them work pretty well, there is one thing that is consistent across all the 5.0 roms on my device: the compass' orientation is completely off. When held in portrait mode, the compass points east when facing west and west when facing east. If the phone is rotated into landscape mode, then north and south are flipped instead. The problem seems to be the X-axis of the magnetic sensor. I have tried calibrating the compass in variety of different ways with a variety of different apps. I also tried both the GoogyMax kernel and the Alucard kernel with the same results compass-wise.
While this would appear to be a hardware issue, the compass works perfectly in Kitkat and older roms. I even tried flashing an old Kitkat rom after trying some Lollipop roms and, sure enough, the compass was working properly as soon as the Kitkat rom booted.
Is there any way to mod the system to inverse the number normally reported for the X-axis of the magnetometer? Otherwise, is there some other way to fix this flipped compass issue?I have searched high and low, but can't find anything of use.
Same issue here, but I have sprint sgs4.
MehStrongBadMeh said:
I have been trying a variety of Android 5.0 Roms on my Verizon Galaxy S4. While most of them work pretty well, there is one thing that is consistent across all the 5.0 roms on my device: the compass' orientation is completely off. When held in portrait mode, the compass points east when facing west and west when facing east. If the phone is rotated into landscape mode, then north and south are flipped instead. The problem seems to be the X-axis of the magnetic sensor. I have tried calibrating the compass in variety of different ways with a variety of different apps. I also tried both the GoogyMax kernel and the Alucard kernel with the same results compass-wise.
While this would appear to be a hardware issue, the compass works perfectly in Kitkat and older roms. I even tried flashing an old Kitkat rom after trying some Lollipop roms and, sure enough, the compass was working properly as soon as the Kitkat rom booted.
Is there any way to mod the system to inverse the number normally reported for the X-axis of the magnetometer? Otherwise, is there some other way to fix this flipped compass issue?I have searched high and low, but can't find anything of use.
Click to expand...
Click to collapse
Currently I'm still running the KitKat GPE ROM and my compass is also flipped, I know the fix was to flash a Ktoonz kernel and it would fix the issue for that. However I don't think they've fixed it as yet for 5.0 ROMs.
It's the Kernels.
It's not due to the ROMS or hardware.
The backwards compass is due to the Kernel installed with the ROM or that you may have downloaded and applied. Kernels now are compiled as Unified kernels which work across all carriers. They are simpler for the Devs to manage without having to compile their kernels for each carrier. That messes up our compass though.
KT-Kernel's fixed our issue when they were compiled carrier specific.
Unfortunately for us KT has gone Unified like the other international Kernels and the international base and compass drivers are from the other side of the world, which cause ours to go backwards on East/West.
I have been looking through KT kernels on the Github and trying to make sense of the drivers and compile configs trying to figure out if a dev could ever come up with a patch.
But I am still new to it all when poking through the KT's source files.
I have oneplusone and it shows the same symptom. Installed magneticsensor app and found out that Bz is inverted. Bz is the direction orthogonal to screen such that it is the most important in navigation ! I would like to see the kernel source for the sensor but haven't set it up yet. If you are/know kernel dev, a help would be appreciated.
pastime1971 said:
I have oneplusone and it shows the same symptom. Installed magneticsensor app and found out that Bz is inverted. Bz is the direction orthogonal to screen such that it is the most important in navigation ! I would like to see the kernel source for the sensor but haven't set it up yet. If you are/know kernel dev, a help would be appreciated.
Click to expand...
Click to collapse
You are not going to to find much help for the Oneplus One here. It was definitely a kernel issue though, as for the Verizon Galaxy S4 it was fixed thanks to updates to the Hulk and Alucard kernels that compensate for the flip.
MehStrongBadMeh said:
You are not going to to find much help for the Oneplus One here. It was definitely a kernel issue though, as for the Verizon Galaxy S4 it was fixed thanks to updates to the Hulk and Alucard kernels that compensate for the flip.
Click to expand...
Click to collapse
Actually, I was able to fix it via /system/etc/sensor_def_qcomdev.conf and deleting /data/misc/sensor/sns.reg without touching kernel or hw-lib
see http://forum.xda-developers.com/one...tic-sensor-t3176956/post62301573#post62301573
Theoretically, we're due for a magnetic pole shift. Every 23,000 years our planet pole shifts. I know, sounds crazy doesn't it?

BOUNTY - Make Compass work in CM 12.1

The CM 12.1 ROM for jfltevzw is golden except for the compass. This compass has been an issue for over an year now. I am starting a bounty to try to get this fixed. I will include some relevant informational post quotes below.
Rajones19 summarized the state of the compass on CM for jfltevzw
rajones19 said:
The last time the compass worked correctly for me was on CM11 M9, build 08/04, using Faux123's kernel - faux123-018u. Compass was working on CM10, broken on CM11 unless you replaced the kernel. Functionally was permanently broken when the change was made that disallowed 3rd party kernels in August of last year. I still have that kernel, if it would be of help to you.
The compass appears to work when you are moving, since the GPS actually provides directional data when in motion. When you are standing still, relying on the magnetic sensor for directional data, that is when the problem begins. Compass apps like GPS Status and Toolbox report compass headings in any number of directions, none of which are correct. The directional data provided to other apps that access the compass - the geocaching app, for example, or any of the astronomy apps like Google Sky, is always 180 degrees off. If this was ever fixed, I would be the happiest man in southeast Michigan
In any case, thanks for all you do. It is much appreciated.
Click to expand...
Click to collapse
AntaresOne says the compass works in his CM 12.0 nightlies for jfltexx and expects it to work on jfltevzw but it did not work when I tried his 'optimized CM 12 ROM' which is compatible with all jflte variants
AntaresOne said:
With Smart Compass:
After calibration (by virtually drawing a horizontal 8 on air) it works very well, tested on jfltexx which shares the same Compass chip with other variants
Inviato dal mio GT-I9505
Click to expand...
Click to collapse
Contributions-
phonedawg - $50
vanberge - $25
FernBch -$25
Please PM me if you wish to contribute
I am not going to be a contributor here, because I finally dumped the S4 and moved on. But I would be very curious to know if the compass on AntaresOne's build is actually 100% working, or if it just appears to work after a cursory test with Smart Compass. The real error shows up when you start using other 3rd party apps that rely on the magnetic sensor for directional information. I am not doubting AntaresOne, nor casting doubt on his work - I used his ROMs for quite sometime, and they were stellar in every other way. For everybody's sake, I do hope they get it fixed.
rajones19 said:
I would be very curious to know if the compass on AntaresOne's build is actually 100% working, or if it just appears to work after a cursory test with Smart Compass
Click to expand...
Click to collapse
Tens of users say it works. I am almost certain it works. There might be a limitation in the jfltevzw phone that is causing the compass to not work.
Put me down for 25. PayPal
Sent from my SCH-I545 using XDA Free mobile app
vanberge said:
Put me down for 25. PayPal
Sent from my SCH-I545 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks. Added your contribution.
I can do $25, too.
FernBch said:
I can do $25, too.
Click to expand...
Click to collapse
Thanks. Added your contribution
AntaresOne provided the following zips - Can anyone please try these and let me know if the compass works. I tried these but had no luck.
first flash this: https://www.androidfilehost.com/?fid=96042739161891216 reboot and test compass
if no luck,, flash this: https://www.androidfilehost.com/?fid=96042739161891217 and repeat
As far as I can tell, compass works on my du 5.1 builds.
I have flashed the above files. Each flashed started with a cache & davlik cache wipe.
The sensor hubs seemed like it wanted to work for about 2 seconds then the compass would not lock on a direction solidly. Third party apps report it as being 180 off. Calibrating the compass had no effect.
The S4 fix behaved the same as the usual.
Flashing both also did not work.
I also checked the sensors after each flash (used Advanced Sensor Tester). Each sensor has three color bars associated with it. I can see movement on the magnetic and gyroscope sensor on all three bars when moving the S4 around in various positions.
The orientation sensor shows movement on bars 2 & 3 when moving the S4 around. Bar number 1 only shows movement around the area that would be represented by 180 to 270 degrees (when facing north). Hope it makes sense, I don't know how else to describe it.
FernBch said:
I have flashed the above files. Each flashed started with a cache & davlik cache wipe.
The sensor hubs seemed like it wanted to work for about 2 seconds then the compass would not lock on a direction solidly. Third party apps report it as being 180 off. Calibrating the compass had no effect.
The S4 fix behaved the same as the usual.
Flashing both also did not work.
I also checked the sensors after each flash (used Advanced Sensor Tester). Each sensor has three color bars associated with it. I can see movement on the magnetic and gyroscope sensor on all three bars when moving the S4 around in various positions.
The orientation sensor shows movement on bars 2 & 3 when moving the S4 around. Bar number 1 only shows movement around the area that would be represented by 180 to 270 degrees (when facing north). Hope it makes sense, I don't know how else to describe it.
Click to expand...
Click to collapse
Thanks a lot. We will soon have more zips to test.
jbats said:
As far as I can tell, compass works on my du 5.1 builds.
Click to expand...
Click to collapse
jfltetmo? it works in my jfltexx too (cm-12.0/cm-12.1)
jfltevzw is the unique variant with this issue
I had issues with GPS and compass too. Flashing back to stock KitKat, enabling Location > Device Only, entering Maps, waiting for lock, and then immediately powering the phone off while GPS is locked, and reflashing root and recovery and then flashing custom ROM fixed all my issues. Compass is accurate, GPS is accurate. Has anyone attempted to do it this way? It should be noted that I am using the SPH-L720T Sprint tri-band edition (jfltespr) but my compass and GPS work absolutely flawlessly on DU 5.1 unofficial build.
SwoRNLeaDejZ said:
I had issues with GPS and compass too. Flashing back to stock KitKat, enabling Location > Device Only, entering Maps, waiting for lock, and then immediately powering the phone off while GPS is locked, and reflashing root and recovery and then flashing custom ROM fixed all my issues. Compass is accurate, GPS is accurate. Has anyone attempted to do it this way? It should be noted that I am using the SPH-L720T Sprint tri-band edition (jfltespr) but my compass and GPS work absolutely flawlessly on DU 5.1 unofficial build.
Click to expand...
Click to collapse
Is the compass correct with third party apps? The issue with jfltevzw (SCH-I545) is the compass orientation is usually 180 degrees off. The other issue that seems to affect us is the compass is only correct when moving (orientation is set by GPS). When stationary and even when walking the compass orientation is quite inaccurate.
I might as well chime in on this. I am running jfltevzw and I used to have issues on early builds of lollipop with my GPS not locking at all. Flashing back to either stock ROM or a aosp/cm KitKat build and then reflashing lollipop would fix the GPS for a while but the issue would return after flashing a new nightly. One of the developers over at Vanir found that it was the lollipop GPS blobs causing the issue. Once he started to build with the old KitKat blobs the issue was gone. I hope this helps you guys out.
Sent from my SCH-I545 using XDA Free mobile app
Triscuit said:
I might as well chime in on this. I am running jfltevzw and I used to have issues on early builds of lollipop with my GPS not locking at all. Flashing back to either stock ROM or a aosp/cm KitKat build and then reflashing lollipop would fix the GPS for a while but the issue would return after flashing a new nightly. One of the developers over at Vanir found that it was the lollipop GPS blobs causing the issue. Once he started to build with the old KitKat blobs the issue was gone. I hope this helps you guys out.
Click to expand...
Click to collapse
You are talking about the GPS. This thread is about the Compass. Not the same thing. While some have had trouble with the GPS (I was lucky, it always worked for me), the compass is an entirely different sensor, an entirely different problem, and no published fix for GPS that I ever read had any effect whatsoever on the compass.
FernBch said:
Is the compass correct with third party apps? The issue with jfltevzw (SCH-I545) is the compass orientation is usually 180 degrees off. The other issue that seems to affect us is the compass is only correct when moving (orientation is set by GPS). When stationary and even when walking the compass orientation is quite inaccurate.
Click to expand...
Click to collapse
My compass is accurate in every app I have used to test it (just installed a couple different compass apps to test). Not off by any amount, especially 180 degrees.
EDIT: and before you ask, my location was OFF during the tests.
SwoRNLeaDejZ said:
My compass is accurate in every app I have used to test it (just installed a couple different compass apps to test). Not off by any amount, especially 180 degrees.
EDIT: and before you ask, my location was OFF during the tests.
Click to expand...
Click to collapse
Yes, but your device is NOT the Verizon SCH-I545. The compass issue only seems to affect us. If you have one from Sprint, AT&T, or any other carrier it seems to work properly.
This is the last comment that I am aware of from our maintainer regarding the compass. It comes from post 135 of the CM12.0 thread
invisiblek said:
Well dang, you guys had me excited for the compass stuff =P
Its definitely the magnetic sensor that's jacked up. I actually wonder how well it works in stock.
Wonder if we need some updated firmware that we can't use because of the locked bootloader...
I'm thinking it may be an issue with our driver being updated in the kernel and our firmware not supporting it or something. I'll do some digging through the old stock kernel source, maybe I can hack something in for us.
[/url]
Click to expand...
Click to collapse
What needs to happen is the difference between us and them needs to be determined so maybe it can be figured out why it doesn't work properly for us. I may be way off here but I am curious if maybe one of the other sensors may be influencing the problem, too. I have seen some screwiness with the gyroscope as well (using advanced sensor tester).
FernBch said:
Yes, but your device is NOT the Verizon SCH-I545. The compass issue only seems to affect us. If you have one from Sprint, AT&T, or any other carrier it seems to work properly.
This is the last comment that I am aware of from our maintainer regarding the compass. It comes from post 135 of the CM12.0 thread
What needs to happen is the difference between us and them needs to be determined so maybe it can be figured out why it doesn't work properly for us. I may be way off here but I am curious if maybe one of the other sensors may be influencing the problem, too. I have seen some screwiness with the gyroscope as well (using advanced sensor tester).
Click to expand...
Click to collapse
Relax with the caps lock dude, I was just letting you know what I did to my S4, that had the same issue, that fixed it. If you don't want to try it, good for you.
SwoRNLeaDejZ said:
Relax with the caps lock dude, I was just letting you know what I did to my S4, that had the same issue, that fixed it. If you don't want to try it, good for you.
Click to expand...
Click to collapse
But I have tried it. And I did not mean to offend here.
I have gone as far using Odin to return to bone stock, reroot, recovery, etc. and the issue returns.
If anyone using the VZW variant has tried this and had success, I'm all ears. Maybe I missed something?

[Q] Compass

I'm wondering if anyone has found a solution for this compass calibration problem. If I orient my phone basically north/south the compass seems to be relative accurate. Otherwise it quickly gets off 180 degrees. I've seen this on KK & LP, multiple ROMS and multiple kernels. I'm suspecting it's a hardware issue but would love to hear from others.
What ROM are you using? This issue persisted in many ROMs for some time, especially CM and CM based ROMS, but has been fixed for 5-6 weeks now.
FernBch said:
What ROM are you using? This issue persisted in many ROMs for some time, especially CM and CM based ROMS, but has been fixed for 5-6 weeks now.
Click to expand...
Click to collapse
Stock TW ROMs. I noticed it on KitKat & it persists with Lollipop. It's strange that when my phone is oriented roughly N/S all is well but it goes wonky otherwise.
Sent from my SCH-I545 using XDA Premium HD app
Don't know about KK and otger ROMs, especially older ones but the latest LP CyanogenMod ROMs have been flawless for me.
Solved...
...for me at least.
A big thanks to @slopenut1 for pointing out the compass problem it due to the kernel. I flashed surge's stock kernel and the compass seems just fine. It seems there is a subtle hardware difference which trip up the kernels coming from other devices. The compass now may not be quite as good as the real thing but no more flipping around.
Try a different kernel. Fixed on 4.4.4 GPE with the ktoonsez kernel. Now on GPE 5.0.2 it's back.

Categories

Resources