[Redmi 9 / Poco M2 ROMs/Kernels/Recoveries/Dev.] morfikov:
It looks like the camera also have issues. Nothing what you would see while using it, but when you start any camera app, for instance the stock one, or OpenCamera, you will get the following spam in logs (this scrolls the output at the speed of light):

10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log Enter wrapper_set_mag
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_akm_wrapper_set_mag(uT) , -79, -108, -421,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_SetData time_stamp = 3574390682790, stype = 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setData_gprm(uT) , 459, -530, -573,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setData_data(uT) , -79, -108, -421,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setv_mag(uT) , 459, -530, -573,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log setv_mag-hdt_ag(msQ4) = 320
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_Enter DOEEX Calib
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_SetData time_stamp_afterSetVector = 3574390682790, stype = 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: Enter AKL_CalcFusion
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log pg_mag_lili(uT): 28, -33, -35, -1, 6, 7, dt: 320
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log pg_mag(uT): 320, 459, -533, -571, -76, 460, dt: 554
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akm_pg_amp_limit, akm_d6d_phone_state is 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_pg_gyr(d/s*16*1000): -2246, -420, -1494, dt: 320
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: Enter if, typeis: 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log save data:2,2
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: PGLILI TimeStamp:3574390682790, PGLILI Mag data:-79.650002, -108.900002,-421.800018 ,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_GetData lili_time_stamp_GetData:3574322956760, stype =1, ,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akl_getv_mag(uT) , 27, -31, -34, Lv: 2
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akl_getv_mag(uT) offset: -107, -76, -387
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_GetData time_stamp11=3574390682790, stype =1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akm_wrapper_calibrate is 27.539999, -31.980000, -34.259998
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log Enter wrapper_set_mag
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_akm_wrapper_set_mag(uT) , -80, -108, -422,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_SetData time_stamp = 3574410679463, stype = 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setData_gprm(uT) , 459, -533, -571,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setData_data(uT) , -80, -108, -422,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_setv_mag(uT) , 459, -533, -571,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log setv_mag-hdt_ag(msQ4) = 319
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_Enter DOEEX Calib
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_SetData time_stamp_afterSetVector = 3574410679463, stype = 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: Enter AKL_CalcFusion
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log pg_mag_lili(uT): 28, -33, -35, -1, 6, 7, dt: 319
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log pg_mag(uT): 319, 462, -532, -570, -76, 460, dt: 554
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akm_pg_amp_limit, akm_d6d_phone_state is 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log lili_pg_gyr(d/s*16*1000): -1955, 279, -1909, dt: 319
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: Enter if, typeis: 1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log save data:2,2
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: PGLILI TimeStamp:3574410679463, PGLILI Mag data:-80.250000, -108.750008,-422.550018 ,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_GetData lili_time_stamp_GetData:3574322956760, stype =1, ,
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akl_getv_mag(uT) , 27, -31, -34, Lv: 2
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akl_getv_mag(uT) offset: -107, -76, -387
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log AKM_GetData time_stamp11=3574410679463, stype =1
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log akm_wrapper_calibrate is 27.719999, -31.920000, -34.200001
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log Enter wrapper_set_magNull
10-01 22:51:41.228 721 823 E android.hardware.sensors@2.0-service-mediatek: akm_log Enter wrapper_set_magNull

The only way to make it stop is to disable all the sensors via the tile in developer options. Also it looks like disabling sensors per app doesn't work at all. I mean the stock one which can be accessed via app info and also the one that crDroid provides in its settings.

The same thing happens when GPS gets a fix.