Ashes on my head… SONY didn’t disable the hall sensor instead they fixed it… I did some tests today evening and can confirm that:
@nephros
a) there IS a working Hall sensor inside the device
b) it is NOT disabled by Sony
I upgraded my device to firmware 62.0.A.9.11 (latest Android 11) before flashing Sailfish OS.
You should place your magnet on top of the phone approx. 1cm left to the volume up/down button to turn on the display if you remove the magnet from that position (or turn it off if you replace it).
If the magnet is in the right position the state will switch from 0 to 1:
[root@Xperia10III defaultuser]# cat /sys/bus/platform/devices/soc:bu520x1nvx/state
1
Journalctl Log:
Jul 10 22:32:10 Xperia10III mce[1985]: modules/display.c: mdy_display_state_enter(): current display state = OFF
Jul 10 22:32:10 Xperia10III mce[1985]: modules/display.c: mdy_display_state_leave(): current display state = POWER_UP
Jul 10 22:32:10 Xperia10III lipstick[5856]: [D] unknown:0 - unsleepDisplay
Jul 10 22:32:10 Xperia10III kernel: [drm:dsi_display_set_mode] [msm-dsi-info]: mdp_transfer_time_us=15666 us
Jul 10 22:32:10 Xperia10III kernel: [drm:dsi_display_set_mode] [msm-dsi-info]: hactive= 1080,vactive= 2520,fps=60
Jul 10 22:32:10 Xperia10III kernel: [drm:dsi_ctrl_isr_configure] [msm-dsi-info]: dsi-ctrl-0: IRQ 385 registered
Jul 10 22:32:10 Xperia10III kernel: dsi_panel_driver_touch_pinctrl_set_state: invalid 'somc_ts_int_active' pinstate
Jul 10 22:32:10 Xperia10III kernel: @@@@ panel power on @@@@
Jul 10 22:32:10 Xperia10III kernel: somc_panel_color_manager: somc_panel_inject_crtc_overrides (786): Override: Already have original funcs! Is setup called twice??
Jul 10 22:32:10 Xperia10III kernel: somc_panel_color_manager: somc_panel_pcc_setup (884): Cannot read uv data: missing command
Jul 10 22:32:10 Xperia10III kernel: somc_panel_color_manager: somc_panel_pcc_setup (888): u,v is flashed 0.
Jul 10 22:32:10 Xperia10III kernel: somc_panel_color_manager: somc_panel_colormgr_apply_calibrations: Couldn't apply PCC calibration
Jul 10 22:32:10 Xperia10III kernel: somc_panel_color_manager: somc_panel_colormgr_apply_calibrations: Cannot send HSIC calibration
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_dsi_panel_notifier_cb: power up
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_start_device
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_pinctrl_configure: ACTIVE
Jul 10 22:32:10 Xperia10III kernel: (NULL device *): deviceless supply vdd not found, using dummy regulator
Jul 10 22:32:10 Xperia10III kernel: (NULL device *): deviceless supply avdd not found, using dummy regulator
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_power: on: avdd:on, dvdd:on
Jul 10 22:32:10 Xperia10III kernel: dsi_panel_driver_oled_short_det_handler: VREG_NG interrupt!
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_wait_for_ready: 09, 00, 10, 00, 00, 00, 00, 00 [0]
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_start_device: cover open, not send cmd
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_set_grip_type: re-init grip(0), edh:0, edg:0, lan:0
Jul 10 22:32:10 Xperia10III kernel: sec_ts 1-0048: [sec_input] sec_ts_read_event: STATUS 1d 61 2 2 3 0 0 0
Jul 10 22:32:10 Xperia10III mce[1985]: modules/proximity.c: mp_datapipe_set_proximity_sensor_actual(): state: UNDEF -> OPEN
Jul 10 22:32:10 Xperia10III mce[1985]: modules/display.c: mdy_display_state_enter(): current display state = ON
Jul 10 22:32:10 Xperia10III droid-hal-init: processing action (ril.ecclist1=*) from (/usr/libexec/droid-hybris/system/etc/init/ecclist.rc:10)
Jul 10 22:32:10 Xperia10III droid-hal-init: processing action (ril.ecclist=*) from (/usr/libexec/droid-hybris/system/etc/init/ecclist.rc:6)
Jul 10 22:32:12 Xperia10III kernel: [schedu][0x5d137f1c8][22:32:12.978680] wlan: [6580:I:OSIF] vdev 0, scan id 41031 type COMPLETED(1) reason COMPLETED(1) scan found 6 bss
Jul 10 22:32:13 Xperia10III kernel: [schedu][0x5d13f2952][22:32:13.003314] wlan: [6580:I:OSIF] scan start scan id 41032
Jul 10 22:32:13 Xperia10III kernel: rpmh_rsc_send_data: 9 callbacks suppressed