multi-touch-dev team mailing list archive
-
multi-touch-dev team
-
Mailing list archive
-
Message #00411
Re: evemu - Kernel device emulation
Freakin' brilliant!!! Henrik, this is huge, thanks. I can't wait to
start playing with it, scripting against it, etc.
I've put it up on Launchpad already, under canonical-multitouch:
https://edge.launchpad.net/canonical-multitouch/utouch-evemu
I've pre-populated a wiki page with the content from Henrik's email here:
https://wiki.ubuntu.com/Multitouch/Testing/uTouchEvEmu
Thanks again, Henrik!
d
On Sun, Sep 19, 2010 at 6:46 AM, Henrik Rydberg <rydberg@xxxxxxxxxxx> wrote:
> As part of the effort to produce an MT device and gesture testing framework,
> meet evemu, which provides tools to emulate kernel evdev devices. The
> project can currently be found at
>
> http://bitmath.org/code/evemu/
>
> and will appear on bazaar and utouch during the week.
>
> Compared to evtest, the major differences are that these tools allow you to
> first setup a device based on a description, hook something to it like pymt or
> mtview, and then playback events through the device. And it works for MT [1].
>
> To describe a device in your machine:
>
> sudo evemu-describe /dev/input/eventX > device.prop
>
> To record data from your device:
>
> sudo evemu-record /dev/input/eventX > device.event
>
> To remotely setup a copy of the device:
>
> sudo evemu-device device.prop
>
> The device node will be printed on the terminal, and will stay valid until the
> program is terminated. To replay the input stream (beware that pointer clicks
> can execute commands in your window manager):
>
> sudo evemu-play /dev/input/eventY < device.event
>
> More interestingly, one can first setup a program like mtview to grab the input:
>
> sudo mtview /dev/input/eventY
>
> and then replay the data, which will show every individual finger on the screen.
>
> Given the evemu lib, one can time gestures by first setting up the device,
> replay gestures on the device, and time the appearance of gestures in grail.
>
> Enjoy,
> Henrik
>
> [1] For MT slots devices, a kernel patch is needed that is not upstream yet.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~multi-touch-dev
> Post to : multi-touch-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~multi-touch-dev
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References