Add pymt support for mtdev

Bug #617368 reported by Henrik Rydberg on 2010-08-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mtdev
Wishlist
Mathieu Virbel

Bug Description

Adding pymt support for mtdev would be nice.

Mathieu Virbel (tito-bankiz) wrote :

I already started the python binding, will be published very soon.

Henrik Rydberg (rydberg) wrote :

Has it been published somewhere? :-)

Mathieu Virbel (tito-bankiz) wrote :

It's committed : http://github.com/tito/pymt/commit/4ecfad4c046c69db1b3ef2044557f648c2187cc0

Packaging for next version is < 2 days

Changed in mtdev:
status: New → In Progress
Henrik Rydberg (rydberg) wrote :

I checked it out at github. Running touchtracer seems to work fine. Great!

Mathieu Virbel (tito-bankiz) wrote :

Can you paste the log at startup ?
I really want to be sure that it use mtdev and not hidinput :)

On 09/06/2010 03:07 PM, Mathieu Virbel wrote:

> Can you paste the log at startup ?
> I really want to be sure that it use mtdev and not hidinput :)
>

It says it uses mtdev, and I put "mtdev,/dev/input/eventX"
in the config file. I doubt hidinput is capable of showing seven fingers?

Henrik
---

touchtracer>PYTHONPATH=/home/rydberg/code/mtuser/pymt python touchtracer.py
[INFO ] PyMT v0.5.1-dev
[WARNING] [Core ] Accelerate module not available <No module named c_accelerate>
[INFO ] [Logger ] Record log in /home/rydberg/.pymt/logs/pymt_10-09-06_4.txt
[WARNING] [Core ] Execute "python setup.py build_ext--inplace"
[WARNING] [Extensions] c_graphx not available: <No module named c_graphx>
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
there is no soundcard
[INFO ] [Camera ] using <gstreamer> as camera provider
[INFO ] [Text ] using <pygame> as text provider
[INFO ] [Video ] using <gstreamer> as video provider
[WARNING] [Spelling] Unable to use <enchant> as spellingprovider
[CRITICAL] [Spelling] Unable to find any valuable Spelling providerat all!
[INFO ] [OSC ] using <multiprocessing> for socket
[INFO ] [Loader ] using <pygame> as thread loader
/home/rydberg/code/mtuser/pymt/pymt/lib/transformations.py:1779: UserWarning:
failed to import module _transformations
  warnings.warn("failed to import module " + module_name)
[INFO ] [Window ] use Pygame as window provider.
[WARNING] [WinPygame] Video: failed (multisamples=2)
[WARNING] [Video ] trying without antialiasing
[INFO ] [Window ] OpenGL version <2.1 Mesa 7.8.2>
[INFO ] [MTD ] Read event from </dev/input/event5>
[INFO ] [Base ] Start application main loop
[INFO ] [MTD ] </dev/input/event5> range position X is -4824 - 5342
[INFO ] [MTD ] </dev/input/event5> range position Y is -172 - 5820
[INFO ] [MTD ] </dev/input/event5> range touch major is 0 - 2048
[INFO ] [MTD ] </dev/input/event5> range touch minor is 0 - 2048
[INFO ] [MTD ] </dev/input/event5> range pressure is 0 - 255
[INFO ] [Base ] Leaving application in progress...
touchtracer>

Mathieu Virbel (tito-bankiz) wrote :

hidinput read directly from kernel, and i've got a stantum screen using it with 12 touches :)
ok, thanks for testing !

Changed in mtdev:
assignee: nobody → Mathieu Virbel (tito-bankiz)
importance: Undecided → Wishlist
Mathieu Virbel (tito-bankiz) wrote :

It's already done and released inside PyMT 0.5.1.
And for the pure binding, it's available here : http://github.com/tito/python-mtdev

Duncan McGreggor (oubiwann) wrote :

Very cool, Mathieu!

I'm wondering, though... where is the appropriate place for this? Seems like it should be in the mtdev codebase. And that, to use it, pymt could optionally (at the discretion of the user) depend upon mtdev.

Henrik, Mathieu, what are your thoughts?

Henrik Rydberg (rydberg) wrote :

I already fended this off strongly, on the basis that mtdev is moving towards the kernel, and having python dependencies would be very awkward. If Mathieu feels the generic python part should be someplace else, perhaps we should think about adding another package, with support tools of various kinds.

Duncan McGreggor (oubiwann) wrote :

Okay, cool. Good to know about mtdev heading toward the kernel.

In that case, I do suggest we create a new project and package for python-mtdev. We can get help from Chase on pacakging, and get it ready for Natty. This way, folks who want to use it for their own projects can just depend upon it directly.

Duncan McGreggor (oubiwann) wrote :

Mathieu,

Done: https://launchpad.net/hci/python-mtdev

I've added you as an admin of the team. We can open some tickets in that project for getting stuff moved over and packaged up for Natty.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers