[Desire Q&A, Help & Troubleshooting] neXus PRIME:
Hi guys,

Looks like my compass is faulty and is not letting my device sleep. As soon as i lock the device, it wakes it up, then screen sleeps after 15 seconds, and suddenly wakes up, and the cycle goes on and on until battery dies.

See logcat

10:25:35.286 Verbose TransportControlView 319 Create TCV com.android.internal.widget.TransportControlView@40e99a08
10:25:35.286 Debug SurfaceFlinger 142 About to give-up screen, flinger = 0x410e0af0
[COLOR="Red"]10:25:35.396 Debug AK8973 149 Compass CLOSE
10:25:35.397 Debug AK8973 149 Compass Start[/COLOR]
10:25:35.397 Debug SurfaceFlinger 142 Screen about to return, flinger = 0x410e0af0
10:25:35.504 Debug dalvikvm 319 GC_CONCURRENT freed 1475K, 34% free 7990K/12099K, paused 15ms+9ms, total 315ms
10:25:35.504 Debug dalvikvm 319 WAIT_FOR_CONCURRENT_GC blocked 46ms
10:25:35.504 Debug dalvikvm 319 WAIT_FOR_CONCURRENT_GC blocked 48ms
10:25:35.614 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:35.722 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:35.722 Info WindowManager 319 Lock screen displayed!
10:25:45.566 Verbose TransportControlView 319 Create TCV com.android.internal.widget.TransportControlView@40e8ede8
10:25:45.675 Debug SurfaceFlinger 142 About to give-up screen, flinger = 0x410e0af0
[COLOR="red"]10:25:45.675 Debug AK8973 149 Compass CLOSE
10:25:45.675 Debug AK8973 149 Compass Start[/COLOR]
10:25:45.675 Debug SurfaceFlinger 142 Screen about to return, flinger = 0x410e0af0
10:25:45.786 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:45.894 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:45.894 Info WindowManager 319 Lock screen displayed!
10:25:55.828 Verbose TransportControlView 319 Create TCV com.android.internal.widget.TransportControlView@40f79f48
10:25:55.941 Debug SurfaceFlinger 142 About to give-up screen, flinger = 0x410e0af0
10:25:55.941 Debug SurfaceFlinger 142 Screen about to return, flinger = 0x410e0af0
[COLOR="red"]10:25:56.050 Debug AK8973 149 Compass CLOSE
10:25:56.050 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:56.050 Debug AK8973 149 Compass Start[/COLOR]
10:25:56.050 Debug PowerManagerService 319 ignoring user activity while turning off screen
10:25:56.050 Debug PowerManagerService 319 ignoring user activity while turning off screen
10:25:56.162 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:56.266 Verbose TransportControlView 319 Create TCV com.android.internal.widget.TransportControlView@40e6fab8
10:25:56.374 Debug dalvikvm 319 GC_CONCURRENT freed 1857K, 35% free 7976K/12099K, paused 39ms+10ms, total 208ms
10:25:56.374 Debug dalvikvm 319 WAIT_FOR_CONCURRENT_GC blocked 61ms
10:25:56.488 Info WindowManager 319 Lock screen displayed!
10:25:56.488 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:25:56.594 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:26:06.097 Verbose TransportControlView 319 Create TCV com.android.internal.widget.TransportControlView@40e759a0
10:26:06.097 Debug SurfaceFlinger 142 About to give-up screen, flinger = 0x410e0af0
10:26:06.202 Debug SurfaceFlinger 142 Screen about to return, flinger = 0x410e0af0
[COLOR="red"]10:26:06.202 Debug AK8973 149 Compass CLOSE
10:26:06.202 Debug AK8973 149 Compass Start[/COLOR]
10:26:06.315 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:26:06.421 Verbose LockPatternKeyguardView 319 Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$5@41545b08 to 8388608
10:26:06.421 Info WindowManager 319 Lock screen displayed!

Any suggessions i can remove the compass altogether???

i dont use it anyways...... just point me to the file i have to remove/modify...... is it 'akmd' in /system/bin or any other....... Appreciate your help...

Regards

Yasir