pmaports/device/community/device-wileyfox-crackling/10-crackling-proximity.rules
Nikita Travkin 8df6c1c0f7
wileyfox-crackling: Add udev rule for proximity sensor (MR 2700)
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
2021-12-01 13:11:09 -08:00

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"