[poky] Calibrating touch screen

Gary Thomas gary at mlbassoc.com
Mon Mar 25 08:23:53 PDT 2013


On 2013-03-25 07:54, Burton, Ross wrote:
> On 25 March 2013 13:34, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
>> Ross: Any thoughts here? This isn't good coming up to release.
>
> xinput-calibrate is the answer, which is sadly in meta-oe still.  This
> needs to be merged.  Last time I looked at this there was on-going
> rewriting of it's startup, I'll see if that's integrated so we can
> migrate it.
>
> What hardware/touchscreen are you using?

Sadly it's proprietary and not public.

Basically OMAP4 (like a Panda) with LCD+touch.

For my case, I found that I could just adjust these things in
the Xorg.conf.  I use this file as /etc/X11/xorg.conf.d/11-touchscreen.conf
   Section "InputClass"
   Identifier "ADS7846 Touchscreen"
   MatchProduct "ADS7846 Touchscreen"
   MatchDevicePath "/dev/input/event*"
   Driver "evdev"
   Option "SwapAxes" "false"
   Option "InvertX" "false"
   #Option "InvertY" "true"
   Option "Calibration" "102 3768 3590 275"
   EndSection
The calibration values came from xinput-calibrate which I imported for
just this project.  As you say, that should get moved to OE-core.

The code in /etc/X11/Xsession.d/30xTs_Calibrate.sh seems totally
broken (and is how I came to my original question)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the poky mailing list