Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving config to calibrator's generic format and restoring calibration from this file #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

navrocky
Copy link

New parameters is: --output-type calibrator, --restore config

This can be useful in case when I don't have access to xorg.conf. So now I can save calibration config to file:

xinput_calibrator --output-type calibrator --output-filename calibration.conf

later I can restore calibration:

xinput_calibrator --restore calibration.conf

@tias
Copy link
Owner

tias commented Feb 13, 2014

Hi Navrocky,

I don't oppose the patch, but I don't really see the use case: you save the clicks to a file, and at a later moment in time you pretend that those clicks have just been clicked?
That could make sense in a testing environment, but you have another use for it?

Also, 'restore' sounds as if you want to restore a previous calibration. However, it looks like you are not restoring (you do not save a previous configuration, but rather the new clicks) but rather emulating? Do you agree?

Kind regards,
Tias

@navrocky
Copy link
Author

14.02.2014 02:42, Tias Guns пишет:

Hi Navrocky,

I don't oppose the patch, but I don't really see the use case: you
save the clicks to a file, and at a later moment in time you pretend
that those clicks have just been clicked?
That could make sense in a testing environment, but you have another
use for it?

I'm writing a terminal GUI. At the first terminal start it is a
calibration step. I checks that calibration config file isn't exists and
starts xinput_calibrator to generate this one, otherwise I execute my
terminal gui as usual. It's much easier to save calibration results into
the config file than modify X11 config from a batch file.

Also, 'restore' sounds as if you want to restore a previous
calibration. However, it looks like you are not restoring (you do not
save a previous configuration, but rather the new clicks) but rather
emulating? Do you agree?

I confirm that i save user clicks to the file. Restore action just
replays this clicks from the file without showing xinput_calibrator gui.
This method just works as expected for me.

Best regards, Vladislav Navrocky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants