https://github.com/hadess/iio-sensor-proxy is going to be the preferred way to access sensors on non-Android Linux systems, covering Accelerometers, Light Sensors and Compass support. Compass when implemented in iio-sensor-proxy will probably be proxied through Geoclue2, so this shouldn't be a blocker. The 2 other types should be implementable already.
Any update on this ticket and this one which I think is related?: https://bugs.webkit.org/show_bug.cgi?id=81352
Bastien, what do you expect WebKit to do with iio-sensor-proxy?
(In reply to Michael Catanzaro from comment #2) > Bastien, what do you expect WebKit to do with iio-sensor-proxy? Use it to implement W3C sensor APIs, report issues to iio-sensor-proxy any problems or limitations encountered while implementing said APIs.