Skip to contentSkip to conversation

Using uinput

DISCUSSION Jonathan Cameron 1 participant 2 messages Aug 30, 2010 – Aug 31, 2010 IIO

lore
Share & tools
lore
#0 lore raw

Hi All,

In a thread to do with the cma3000 accelerometer on lkml Dmitry (input maintainer) in passing mentioned that an iio to input bridge might exist in userspace using uinput.

Looks to me like this might kill two birds with one stone for us.

* Would finally provide a route for all those who want their sensor drivers in input because they want to use them for games.
* Would provide a fairly good test of the generality of the user space interfaces.

What do people think of this rather than an in kernel bridge?

Given it would trivially have access to all of the info on what the sensor is producing it actually looks much easier to do than the kernel bridge (which was going to need a userspace configuration element or a lot of changes to our internal structure).

Jonathan

#1 lore raw
Quoted 12 lines · Jonathan Cameron

Hi All,

In a thread to do with the cma3000 accelerometer on lkml Dmitry (input maintainer) in passing mentioned that an iio to input bridge might exist in userspace using uinput.

Looks to me like this might kill two birds with one stone for us.

* Would finally provide a route for all those who want their sensor drivers in input because they want to use them for games.
* Would provide a fairly good test of the generality of the user space interfaces.

Quoted 6 lines

What do people think of this rather than an in kernel bridge?

Given it would trivially have access to all of the info on what the sensor is producing it actually looks much easier to do than the kernel bridge (which was going to need a userspace configuration element or a lot of changes to our internal structure).

If anyone is curious, I just cc'd the list in on the mega lkml thread because my post includes a quick and dirty hacked together bridge. It works.

Annoying my test platform is currently rather unstable (stargate2). Git bisect fun tomorrow.

Jonathan