Add 10-proximity.rules

This file fixes a flashing screen during calls even if no objects are
near to the proximity sensor.
This commit is contained in:
Xavier Del Campo Romero 2023-09-15 23:07:31 +02:00
parent 8fb95d8d39
commit f39e10ca57
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2

10-proximity.rules Normal file
View File

@ -0,0 +1,7 @@
# Copy into /etc/udev/rules.d/10-proximity.rules
# # iio-sensor-proxy
# Set PROXIMITY_NEAR_LEVEL for iio-sensor-proxy to pick up the proximity sensor
# Set the sensor type for all the types we recognise
ACTION=="add", SUBSYSTEM=="iio", TEST=="in_proximity_raw", ENV{PROXIMITY_NEAR_LEVEL}="50"