Re: generic touchscreen calibration
Søren Hauberg wrote: Hi, 2009/9/10 Tias t...@ulyssis.org: In the end, I had to hack up the ancient tkxinput because it was the only device independent calibrator (it uses Xinput to read the coordinates). On the other hand, I was impressed by the simplicity of the calibrator that Soren Hauberg sent to this list in july (thread titled 'Evdev touchscreen calibration?'), although it was written for usbtouchscreen driven devices specifically. I figured that a generic calibration program should be device independent when reading calibration data, and device dependent in how to use the data. I've adapted Soren's calibrator to do exactly this: it reads the current calibration from Xinput. When the usbtouchscreen driver is used, it dynamically changes the calibration. Otherwise it prints the new calibration data in xorg.conf format on stdout. Other actions would be possible too, like rewriting the xorg.conf directly, maybe even use some new evdev/Xinput2 goodness ? It's been quite a while since I was working on this (I changed job, so I never got to finish this), so my comments might not actually be true. First, I'd like to add that I'm glad you're spending time on resurecting my old code. Thanks :-) Second, part of this code was added before the 'evdev' X11 driver got support for touchscreens. This driver allows you to set the calibration parameters at run-time without making changes to xorg.conf (hence no restart of X). I think the calibration tool should use this instead of working with xorg.conf. Wauw, it would be great to use this new 'evdev' functionality! Where can I find out the details about this ? Or could somebody provide a code sample or something ? Thanks, Tias ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: generic touchscreen calibration
On Mon, Sep 14, 2009 at 12:26 PM, Tias t...@ulyssis.org wrote: Søren Hauberg wrote: Hi, 2009/9/10 Tias t...@ulyssis.org: In the end, I had to hack up the ancient tkxinput because it was the only device independent calibrator (it uses Xinput to read the coordinates). On the other hand, I was impressed by the simplicity of the calibrator that Soren Hauberg sent to this list in july (thread titled 'Evdev touchscreen calibration?'), although it was written for usbtouchscreen driven devices specifically. I figured that a generic calibration program should be device independent when reading calibration data, and device dependent in how to use the data. I've adapted Soren's calibrator to do exactly this: it reads the current calibration from Xinput. When the usbtouchscreen driver is used, it dynamically changes the calibration. Otherwise it prints the new calibration data in xorg.conf format on stdout. Other actions would be possible too, like rewriting the xorg.conf directly, maybe even use some new evdev/Xinput2 goodness ? It's been quite a while since I was working on this (I changed job, so I never got to finish this), so my comments might not actually be true. First, I'd like to add that I'm glad you're spending time on resurecting my old code. Thanks :-) Second, part of this code was added before the 'evdev' X11 driver got support for touchscreens. This driver allows you to set the calibration parameters at run-time without making changes to xorg.conf (hence no restart of X). I think the calibration tool should use this instead of working with xorg.conf. Wauw, it would be great to use this new 'evdev' functionality! Where can I find out the details about this ? Or could somebody provide a code sample or something ? It makes use of the XI Properties support in newer servers. See the SUPPORTED PROPERTIES section in evdev(4) for the property names. You can then use the xinput tool to adjust the properties at run time. You could probably look at the xinput source code for inspiration on adjusting the properties from a new gui app. -- Dan ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: generic touchscreen calibration
Hi, 2009/9/10 Tias t...@ulyssis.org: In the end, I had to hack up the ancient tkxinput because it was the only device independent calibrator (it uses Xinput to read the coordinates). On the other hand, I was impressed by the simplicity of the calibrator that Soren Hauberg sent to this list in july (thread titled 'Evdev touchscreen calibration?'), although it was written for usbtouchscreen driven devices specifically. I figured that a generic calibration program should be device independent when reading calibration data, and device dependent in how to use the data. I've adapted Soren's calibrator to do exactly this: it reads the current calibration from Xinput. When the usbtouchscreen driver is used, it dynamically changes the calibration. Otherwise it prints the new calibration data in xorg.conf format on stdout. Other actions would be possible too, like rewriting the xorg.conf directly, maybe even use some new evdev/Xinput2 goodness ? It's been quite a while since I was working on this (I changed job, so I never got to finish this), so my comments might not actually be true. First, I'd like to add that I'm glad you're spending time on resurecting my old code. Thanks :-) Second, part of this code was added before the 'evdev' X11 driver got support for touchscreens. This driver allows you to set the calibration parameters at run-time without making changes to xorg.conf (hence no restart of X). I think the calibration tool should use this instead of working with xorg.conf. Third, the code that interacts with the 'usbtouchscreen' kernel module should probably be dropped. It's tied too much to some specific hardware. Since the parameters can just be handled by the 'evdev' X11 driver, I don't think kernel interaction is needed anymore. Let me know if you need anything from me, Søren ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
generic touchscreen calibration
Hello, I needed a calibrator for my dynapro touchscreen. It turned out there are quite a few touchscreen calibration programs, but none are really generic. You can find an overview of the calibration software I discovered on: http://tias.ulyssis.org/calibration/ In the end, I had to hack up the ancient tkxinput because it was the only device independent calibrator (it uses Xinput to read the coordinates). On the other hand, I was impressed by the simplicity of the calibrator that Soren Hauberg sent to this list in july (thread titled 'Evdev touchscreen calibration?'), although it was written for usbtouchscreen driven devices specifically. I figured that a generic calibration program should be device independent when reading calibration data, and device dependent in how to use the data. I've adapted Soren's calibrator to do exactly this: it reads the current calibration from Xinput. When the usbtouchscreen driver is used, it dynamically changes the calibration. Otherwise it prints the new calibration data in xorg.conf format on stdout. Other actions would be possible too, like rewriting the xorg.conf directly, maybe even use some new evdev/Xinput2 goodness ? You can find more information and the code at: http://tias.ulyssis.org/calibration/#xinput_calibrator This is just a proposition towards a generic touchscreen calibration utility. Comments and remarks very welcome! Greetings, Tias ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg