8df6c1c0f7
iio-sensor-proxy wants to know when to report "near" status. Add an udev rule defining that value as a workaround untl it can be passed from the DT. [ci:skip-build] already built successfully in CI
11 lines
455 B
Text
11 lines
455 B
Text
# iio-sensor-proxy
|
|
# Set PROXIMITY_NEAR_LEVEL for iio-sensor-proxy to pick up the proximity sensor
|
|
|
|
# This is a temporary workaround until the next kernel release where the value
|
|
# is provided via DT.
|
|
# See https://lore.kernel.org/linux-iio/20211125125646.54831-1-nikita@trvn.ru/
|
|
# for related kernel changes.
|
|
|
|
# Set the sensor type for all the types we recognise
|
|
ACTION=="add", SUBSYSTEM=="iio", TEST=="in_proximity_raw", ENV{PROXIMITY_NEAR_LEVEL}="75"
|
|
|