When I do run monitor-sensor
without this gdbus
stuff below I see:
purism@pureos:~$ monitor-sensor
Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== Has ambient light sensor (value: 0.000000, unit: lux)
=== Has proximity sensor (near: 0)
Light changed: 10.440000 (lux)
Proximity value changed: 1
Light changed: 10.200000 (lux)
Light changed: 10.440000 (lux)
Light changed: 9.360000 (lux)
Light changed: 10.920000 (lux)
Light changed: 9.360000 (lux)
Light changed: 9.600000 (lux)
Light changed: 0.000000 (lux)
Light changed: 10.680000 (lux)
Light changed: 10.920000 (lux)
Light changed: 11.160000 (lux)
Light changed: 0.000000 (lux)
Light changed: 11.640000 (lux)
Light changed: 11.160000 (lux)
Light changed: 11.280000 (lux)
Light changed: 11.400000 (lux)
Light changed: 10.800000 (lux)
Light changed: 10.920000 (lux)
When Light
went to 0.0000 it was because I put another phone above the L5. Then I put it away again, Light
came back to 11.xxx, but proximity
never changes back to 0.
Running,
watch -n 1 cat /sys/bus/iio/*/*/in_proximity_raw
shows that the proximity sensor is working fine: it is 5-6, when I put the other phone above, it raises to 24++ and when I withdraw it again, it goes down to 6 again. So, the sensor is working. But monitor-sensor
is not following the situation.