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

Fixes for --no-timeout and compiler warnings #45

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

Conversation

jefflasslett
Copy link
Contributor

--no-timeout seemed to only prevent the display of the timeout progress indicator. It didn't actually prevent the timeout.

Also eliminated some compiler warnings.

Jeff Lasslett added 7 commits January 9, 2013 16:54
I think this commit fixes the issue reported by Tokoyami.  Calibration
values were really wrong.  The issue seemed to be caused by the commits
bfeaf2e (which is a broken commit) and 07978b9.  git-bisect told me
this.

Also removed duplication of calibration code "finish()" between evdev.cpp
and calibrator.cpp.  Added "compensateForDevice()" virtual function to
handle adjustments needed to compensate for the device.
Also, explicitly use double types in calibration calculations.  Due to the
use of fp constants without a suffix, double was always the type within the
scaling arithmetic anyway.
@jefflasslett
Copy link
Contributor Author

I've also fixed a few problems with the calibrator now. Calibrates properly when axes swapping is required. I've removed some code duplication too.

@tias
Copy link
Owner

tias commented Feb 7, 2013

Thanks, I have to look into the fix in more detail.

The problem is that the behaviour of the evdev driver changed, so depending on your evdev version you will either fix or break it...

@tias
Copy link
Owner

tias commented Feb 7, 2013

Can you tell me what version of evdev you are running? Thanks

@jefflasslett
Copy link
Contributor Author

Hi Tias,

Sorry for the late reply.
Here's an excerpt from my /var/log/Xorg.0.log:

14.544 Module evdev: vendor="X.Org Foundation"
[ 14.544] compiled for 1.13.0, module version = 2.7.3
[ 14.544] Module class: X.Org XInput Driver
[ 14.544] ABI class: X.Org XInput driver, version 18.0

Looks like 2.7.3

Cheers,
Jeff

On 8 February 2013 07:41, Tias Guns [email protected] wrote:

Can you tell me what version of evdev you are running? Thanks


Reply to this email directly or view it on GitHubhttps://github.com//pull/45#issuecomment-13258409.

@schnitzeltony schnitzeltony mentioned this pull request Feb 14, 2013
ramok pushed a commit to ramok/xinput_calibrator that referenced this pull request Mar 4, 2015
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