aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-15 23:07:31 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-15 23:07:40 +0200
commitf39e10ca57a404f36a9657527969720a1b61b3d6 (patch)
tree56a14e487e48a5ac01c290bc1e8ed0c81a573d21
parent8fb95d8d39ead922f37f13634476693973d2607f (diff)
downloadpinephone-scripts-f39e10ca57a404f36a9657527969720a1b61b3d6.tar.gz
Add 10-proximity.rules
This file fixes a flashing screen during calls even if no objects are near to the proximity sensor.
-rw-r--r--10-proximity.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/10-proximity.rules b/10-proximity.rules
new file mode 100644
index 0000000..8862aab
--- /dev/null
+++ b/10-proximity.rules
@@ -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"