pinephone-scripts/10-proximity.rules
Xavier Del Campo Romero f39e10ca57
Add 10-proximity.rules
This file fixes a flashing screen during calls even if no objects are
near to the proximity sensor.
2023-09-15 23:07:40 +02:00

8 lines
295 B
Plaintext

# 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"