iio sensors, acceleration and gyro.

Bastien Nocera hadess at hadess.net
Tue Oct 20 02:53:40 PDT 2015


On Tue, 2015-10-20 at 08:39 +1000, Peter Hutterer wrote:
> On Mon, Oct 19, 2015 at 12:20:27PM -0500, Mike Mestnik wrote:
> > Hello,
> >   I've been working on a project called iio-sensor-proxy, it's a
> > project to take sensor readings and make them available over
> > dbus.  I
> > feel that this takes away from the generic concept that everything
> > is
> > a file.
> > 
> > Does this code perhaps have a better home in libinput?
> > 
> > https://github.com/hadess/iio-sensor-proxy
> 
> I don't think so. iio-sensor-proxy is not at the same level as
> libinput, and
> the dbus API is there for a reason. in theory, a libinput-based
> solution
> would be for libinput to read the sensors and have iio-sensor-proxy
> wrap
> libinput to provide the dbus API that applications require.
> 
> That wouldn't add anything to the current solution though, it'd be
> mostly
> code churn for little benefit. so unless Bastian requests that we add
> this
> to libinput, I don't think this is worth pursuing.

It's at the wrong level (it needs to be system unique, as IIO doesn't
support concurrent uses), and having a single daemon allows us to share
code to support the other sensor types.


More information about the wayland-devel mailing list