xinput_calibrator icon indicating copy to clipboard operation
xinput_calibrator copied to clipboard

distribution packages: persist calibration

Open edrex opened this issue 14 years ago • 5 comments

In the distribution packages, the "Calibrate Touchscreen" menu item should persist the calibration in a way which is appropriate to the distribution.

Perhaps ask the user "Apply calibration system wide or just for this user?"

edrex avatar Sep 17 '10 00:09 edrex

xinput_calibrator could have a "raw" output mode for each output type in which only needed code is outputed and can be redirected to a file.

Example: xinput_calibrator --output-type xorg.conf.d > /usr/share/X11/xorg.conf.d/99-touch-calibration

tonio73 avatar Dec 22 '10 15:12 tonio73

Yes, perhaps an argument like --output-file OUTFILE would be a good idea.

A recent distribution would naturally choose to use the xorg.conf.d mechanism and have it save snippets in the correct directory (file? one file, multiple files?)

One open issue there is that the (sysfs!) name of the touchscreen can not always be detected. (in fact, only if it is the same as the xinput name, which is the case in most cases; unless you have a wicked evdev config which renames stuff).

tias avatar Mar 19 '11 23:03 tias

I was about to open a new issue for the output issue when I stumbled onto this one. A --output xorg-file would be really helpfull!

koenkooi avatar Feb 28 '12 13:02 koenkooi

Indeed.

otavio avatar Feb 28 '12 14:02 otavio

Yes, this is long due.

If anybody wants to quickly do this himself, I would very grateful!

The code is pretty much ready for it: https://github.com/tias/xinput_calibrator/blob/master/src/calibrator/calibratorEvdev.cpp#L465

It would be a matter of giving the output_* functions a FILE argument (which can be STDOUT or a real file handler) and printing to that...

tias avatar Mar 08 '12 09:03 tias