[Sony Xperia XZ Premium Questions & Answers] *#Tim#*:
Hey,

i have postet this question already in Xperia Forum, but there came no answers, hope someone here has an idea.

i´ve got problems with the compass.

After booting, everything works fine, but after a while (some hours) the compass freezes.

i´v tried it also with the *#*#7378423#*#* all the Values are freezed.

So i decided to contact sony and report this behaviour, i still have warranty.

Sony gave me some advices like start in Safe mode and make a factory reset, but nothing helped.

So they said i should send it to Sony service, and i did so.

Sony made a check, but couldnt reproduce the Error and sent it back to me.

I can comprehend that, because you have to wait a while untill you notice the compass is not working.

So, i decided to conact sony again, but the service guy only told me, that there is no more help for me, i can send it to the service again, or i can send a complainment to sony.

I decided to first check again the Phone, in the hope to find out when the error occur.

And indeed i get a little bit closer.

The error occures only if somehing interrupts the currrent running App (or Activity).

Something like a Push-notification or if one clicks on the App-Switcher.

If made a Logcat from the moment when the compass freezes.

While recording the Logcat i used the App Sky map which is called Stardroid in the Logcat.

I changed the color in the logcat to red, when the error occures.

I used sky map, because while using it the display isnt shut down, so you can run it all the time.

Good for long term tests.

09-07 08:21:52.670 837-5234/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback
09-07 08:21:52.670 9629-9629/? I/Stardroid.DynamicStarMapActivity: Resuming
09-07 08:21:52.671 9629-9629/? I/Stardroid.DynamicStarMapActivity: Starting view
Starting controller
09-07 08:21:52.671 9629-9629/? I/Stardroid.ControllerGroup: Starting controllers
09-07 08:21:52.671 9629-9629/? D/Stardroid.LocationController: LocationController start
09-07 08:21:52.671 837-5234/? D/audio_hw_primary: select_devices: usecase->type:0, usecase->id:1
select_devices: done
09-07 08:21:52.672 9629-9629/? D/Stardroid.LocationController: Got location provider network
09-07 08:21:52.673 1687-3024/? D/LocSvc_HIDL_IzatProvider_jni: Provider Type: 2; Num Updates : 2147483647; Interval : 600000Displacement : 2000.000000; Accuracy : 1
09-07 08:21:52.673 1687-3024/? V/LocSvc_HIDL_IzatProvider_jni: [onAddRequest][316] [HC] =>> [HS]
09-07 08:21:52.673 1321-1321/? V/LocSvc_HIDL_IzatProvider: [onAddRequest][174] [HS] <<<<= [HC]
09-07 08:21:52.673 9629-9629/? D/Stardroid.LocationController: Location not changed sufficiently to tell the user
LocationController -start
09-07 08:21:52.673 9629-9629/? D/Stardroid.SensorOrientationController: Using rotation sensor
09-07 08:21:52.673 1687-2108/? V/LocSvc_HIDL_OsNpGlue_jni: [onSetRequest][56] [HC] <<= [HS]
09-07 08:21:52.676 9629-9629/? D/Stardroid.SensorOrientationController: Registered sensor listener
09-07 08:21:52.676 9629-9629/? D/Stardroid.SensorAccuracyMonitor: Starting monitoring compass accuracy
[COLOR="Red"]09-07 08:21:52.680 852-1150/? E/qti_sensors_hal: processInd: Unknown message ID = 6
09-07 08:21:52.682 852-1114/? E/qti_sensors_hal: processBufferingResp: Result: 1, Error: 5
processBufferingResp: 10 Error: 4 Reason: 0
09-07 08:21:52.682 852-852/? E/qti_sensors_hal: enable:sensor(android.sensor.magnetic_field) Failed for handle 10 @ samp 14.999925 Hz rpt 0 Hz batched 0
Activate the handle 10 is not successful
09-07 08:21:52.682 1687-1699/? E/SensorService: Error activating sensor 3 (Operation not permitted)[/COLOR]
09-07 08:21:52.682 9629-9629/? D/Stardroid.DynamicStarMapActivity: -onResume at 1536301312682
09-07 08:21:52.687 1687-1698/? I/InputDispatcher: Focus entered window: Window{fc04736 u0 com.google.android.stardroid/com.google.android.stardroid.activities.DynamicStarMapActivity}
09-07 08:21:52.694 9629-9661/? D/SkyRenderer: surfaceCreated
09-07 08:21:52.694 9629-9661/? I/SkyRenderer: GL extensions: GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_ARB_vertex_buffer_object GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_extended_get GL_QCOM_tiled_rendering
Model: G8141
VBOs disabled

After rebooting the Compas is okay again.

So i tried to use the compass again with sky map.

And then i closed sky map and wait some time, opens it again o see if it still working.

After some tries i noticed, that it is again freezed.

So its not relevant if you are currently running the App, or if its running in the backround.

To proof i rebeootet again, so everything is working fine again.

And now i made the same tests like before, but this time i killed Sky map after every try.

So nothing is activly using the compass. And as you may have guessed, he compass works fine.

Has anyone an Idea, what i could do now?

What can i do about Sony, and how can i fix my mobile phone?

Best regards

Tim