Initial iio-sensor-proxy support for proximity
This needs cleanup (and i need to backport the iio-sensor-proxy and kernel patches and hwdb needs an update) but then it does the trick.
This should do the trick initially. Once we wlr-output-power-management
is merged upstream i'll bring that into phosh so we can turn off the backlight on proximity. We can also add a dbus interface so that makes proximity detection 'opt-in' later on (e.g. only when a call is going on) but having initial support will help the current situation.
There's one issue issue that if the user moves the phone to the head too fast we'll see an initial click on the settings menu but that will go away with phoc#82.
Once that is in i'll look at rotation which then will allow us to drop all oh phosh private dbus protocol (phoc#88).
Tested with iio-sensor-proxy with no iio-sensor-proxy and with and without proximity support.
Closes #120 (closed) (with a newer version of iio-sensor-proxy)