I'm on a lenovo thinkpad x220t running a fresh installation of fedora 22. Everything works fine, except when I connect the tablet to a projector, due to change of resolution the pen is not calibrated anymore. I've tried
xinput_calibrator to adjust it, but since it "auto-detect"s misclicks I can't really get it to work. I tried to turn it off using the option
--misclick 0, but that also didn't work. The option
--precalib doesn't get me anywhere.
I think the best way to work this out for me is to set in manually in
xinput, but I can't find the options in the
xinput manual. So, here is my question:
In the xinput, I want to use the option
--set-int-prop device property format value. The name of the device for me is
"Wacom ISDv4 E6 Pen stylus".
- What shall I use as
- What shall be the
format? I know the available formats are 8, 16, and 32, but which one shall I choose and what do they mean?
- Is there anywhere I can read more about these options?
Alternatively, is there a better way of dealing with this calibration? The
xinput_calibrator manual says I probably have one of the following problems:
- you are bad at clicking on crosses, use a stylus or increase the --misclick threshold
- your device is not properly supported by the kernel, it interprets the clicks wrong
- your screen has a non-linear deformation, 4-point calibration can not help you
well, I'm sure 1 is not the case. It cannot be 2, because it works fine in the original resolution. And it probably isn't 3 since I can really see that it is a linear deformation as the pen gets to the edge of the monitor (not screen) the pointer is on the edge of the screen and in the center they match! I believe all I need is to tell xinput to scale everything by a constant factor, which I don't know how.
Any help would be really appreciated.
UPDATE: The instruction here exactly tells me how to "scale" and "shift" the screen, but it seems like I can't get the numbers right. Here are some of my outputs:
xrandr I get several lines, and among them there are:
1366x768 60.02 + ... 1024x768 60.00* ...
The top one (the one with +) is the highest my monitor supports, and in that resolution I get pen to work properly. The bottom one (the one with *) is my current resolution. The numbers that the link suggest to use are:
c0 = touch_area_width / total_width c2 = touch_area_height / total_height c1 = touch_area_x_offset / total_width c3 = touch_area_y_offset / total_height
c2 = 1 and c3 = 0 for me, since I don't have any problem with width. for c0 and c3 I'm using this numbers: touch_area_width = 1366 total_width = 1024 touch_area_x_offset = -171
I'm getting 171 from (1366 - 1024) / 2.
This translation "almost" works. Does anyone know which of this parameters I'm using wrong, and how do I find its exact value?