Are elographics working now?

Ivan Afonichev ivan.afonichev at gmail.com
Fri Sep 9 16:03:26 PDT 2011


I don't see any usage of calibration options MaxX MinX MaxY MinY in
http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/tree/src/xf86Elo.c
after this commit
http://cgit.freedesktop.org/xorg/driver/xf86-input-elographics/commit/src/xf86Elo.c?id=447f547fbb7d11ec56ea578292908192175b3828

Also my elographics(GeneralTouch) device are shown as [floating slave] in
xinput list. When I xinput reattach it, it acts as not calibrated.

I think we should add something like
int width = priv->max_x - priv->min_x;
int height = priv->max_y - priv->min_y;
cur_x = (priv->screen_width * (cur_x - priv->min_x)) / width;
cur_y = (priv->screen_height -
(priv->screen_height * (cur_y - priv->min_y)) / height);

in xf86EloReadInput(InputInfoPtr pInfo)

or use xf86ScaleAxis()

or use correct screen and max/min values in this stuff

	/* I will map coordinates myself */
	InitValuatorAxisStruct(dev, 0,
			       axis_labels[0],
			       -1, -1,
			       9500,
			       0     /* min_res */,
			       9500  /* max_res */,
			       Absolute);

	InitValuatorAxisStruct(dev, 1,
			       axis_labels[1],
			       -1, -1,
			       10500,
			       0     /* min_res */,
			       10500 /* max_res */,
			       Absolute);






I'am going to try first way soon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20110910/4fe94436/attachment.html>


More information about the xorg mailing list