[tslib] Setting ts_calibrate results EVIOCSABS
martink at posteo.de
Sun Jun 18 07:45:15 PDT 2017
On 2017-06-18 15:17, Baruch Siach wrote:
> Hi tslib list,
> Is it possible to set the ts_calibrate results into the kernel input layer
> using the EVIOCSABS ioctl()? That would make the calibration instantly
> available to all touchscreen input device users, independent from the tslib
What version of tslib do you use? You should use a recent version from
Debian sid, for example.
Do you mean the ts_read_mt() tslib samples data? You might mainly use
the linear plugin with ts_calibrate, but it's actually a special case.
> The problem I am facing is that I'm on X11, stuck with an old kernel (pre
> of_touchscreen.c), and a Debian installation that does not package
> xf86-input-tslib. The xf86-input-evdev Calibration option doesn't work at all
> for some reason.
Have you read the README.md documentation, specifically
But xf86-input-tslib can also be installed seperately. It's indeed not
yet packaged for Debian, but available here:
> Looking around I could not find any EVIOCSABS user. The EVIOCSABS ioctl() as
> been in the kernel since pre-git times.
> Am I missing something obvious here?
Actually I don't know how common or useful it would be to edit the real
device' values with EVIOCSABS. I always went the uinput way, creating a
new device, until now.
I'll think about it. Feel free to open an issue if you have a concrete idea.
> FWIW, the touchscreen driver is edt-ft5x06.c, that works nicely except from
> the calibration. Both X and Y are reported x2 at the X11 level.
I have used this driver too. But it shouldn't matter at all.
More information about the tslib