07-29-2022, 06:39 AM
(07-29-2022, 02:02 AM)jsch Wrote: I had a similar issue, caused by the proximity sensor.
Can you please check what
Code:grep . /sys/bus/iio/devices/iio\:device*/in_proximity_{nearlevel,raw}
provides.
In my case it helped to peel of the screen protector (before raw was always above 25, whereas 15 and above indicate "phone is placed near the ear -- blank screen").
I forgot about the proximity sensor!
$ grep . /sys/bus/iio/devices/iio\:device*/in_proximity_{nearlevel,raw}
/sys/bus/iio/devices/iio:device0/in_proximity_nearlevel:15
/sys/bus/iio/devices/iio:device0/in_proximity_raw:17
That's with the phone face-up on a desk and me a couple feet away. If I put my hand over the phone at varying distances the raw value ranged from 19 to 408. I hate to lose the screen protector. I tried echoing a new value into in_proximity_nearlevel but kept getting "permssion denied" so I'm searching for info on tweaking that.