imx8mm touch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mm touch

6,568 Views
jieh朱
Contributor III

I used imx8mm yocto to build the environment as DISTRO = fsl-imx-wayland. When the board started, I ran weston-touch-calibrator to calibrate the touch screen. After calibration, he worked well, but I need to calibrate every time I restart. Once, is there any way to make him calibrate once?

0 Kudos
15 Replies

6,116 Views
tzuhsuan_chen
Contributor I

你好,請問這個問題有進一步的更新嗎?

 

我在imx8mq yocto 4.14.98也有遇到一樣的問題,根據上面的回覆,也解決了libxkbcommon的問題,

但是touch calibration後,重開機也要重新校淮。

 

我去追蹤save_touch_device_calibration,有執行helper_cmd:

"/bin/echo" '/sys/devices/platform/30a30000.i2c/i2c-1/1-0038/input/input1/event1' 0.931197 -0.000506 0.032512 0.008672 0.957371 0.019685

 

請問這樣就有存校準資料了嗎?校淮資料會存在哪裡?

或是有辦法每次開機都根據之前得到的校淮資料下command校淮嗎?

 

Thanks.

0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

在我们的BSP中,使用的是xinput-calibrator,试试这个。

Weidong

0 Kudos

6,116 Views
tzuhsuan_chen
Contributor I

你好,

在Yocto使用的是weston的架構,只有看到weston-touch-calibrator,沒有看到xinput-calibrator。

請問要在哪裡執行?

Thanks.

0 Kudos

6,116 Views
jieh朱
Contributor III

Sorry, I didn't mention the linux version. I use linux4.14.98. I checked the weston patch and checked the patch in weston in yocto. He is already patched by default

pastedImage_1.png

0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jiahuai,

    

    You should follow the steps to operate touch calibrator:

# weston-touch-calibrator   /* List all touch devices */

For example, probably like this:   /* Yours may be different from below, but simliar */

could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
device "/sys/devices/platform/5a800000.i2c/i2c-16/16-002c/input/input1/event1" - head "DPI-1"
#  weston-touch-calibrator /sys/devices/platform/5a800000.i2c/i2c-16/16-002c/input/input1/event1

/* calibrate touch screen */

[comment] 

   You can add some DEBUG messages into "save_touch_device_calibration()" function to check if data has been save.

Have a nice day!

BR,

Weidong

0 Kudos

6,116 Views
jieh朱
Contributor III

I run weston-touch-calibrator and it will prompt xkbcommon error. Is this the reason that it needs to be calibrated every time it restarts?

pastedImage_2.png

How can I remove this error? I see this library under / use /lib /.

pastedImage_3.png

0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Jiehuai,

    看来你要去修patch了,看这里,把它打上去!

[V2,2/2] libxkbcommon: RDEPENDS on libx11-locale - Patchwork 

pastedImage_3.png

Have a nice day!

Weidong

0 Kudos

6,116 Views
jieh朱
Contributor III

你好!

   我按照这个补丁修改sources/poky/meta/recipes-graphics/xorg-lib/libxkbcommon_0.8.0.bb 添加为如下

   pastedImage_1.png

   当我修改完运行bitbake fsl-image-qt5-validation-imx进行构建时,他会报如下错误

pastedImage_3.png

   我搭建yocto为

   

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b imx8mmevk_wayland
bitbake fsl-image-qt5-validation-imx
0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jiahuai,

    我的电脑里有4.14.98_2.2.0,和你的环境基本一致,我刚刚测试了一下,没有问题,以下是我的步骤:

1. 和你的方式一样,加入那句话到bb文件。

2.运行命令

# cd imx-yocto-bsp

# source setup-envronment build

# bitbake libxkbcommon -c fetch

# bitbake libxkbcommon -c compile

# bitbake libxkbcommon -c install

bitbake fsl-image-qt5-validation-imx

没有出现错误

Have a nice day!

Weidong

0 Kudos

6,116 Views
jieh朱
Contributor III

你好

   我用

DISTRO=fsl-imx-xwayland 构建的的rootfs.tar.bz不会再报
xkbcommon: ERROR: couldn't find a Compose file for locale "C"的错误了,但是触摸还是每次重启都需要校准才可以正常
0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

能不能跟踪一下,看看校准的数据有没有被保存下来。

0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Jiehuai,

     You should configure weston.ini file.  On it descriptions, see the link, please!

Weston: man/weston.ini.man | Fossies 

... ...

touchscreen_calibrator=true

calibration_helper=/bin/echo

......

See above 2 parameters, please!

Have a nice day!

BR,

Weidong

 

0 Kudos

5,401 Views
Ahmet_Cihan_AKINCA
Contributor III

I have the same problem. I added these lines to weston.ini file but nothing have changed. Calibration is not permanent. It changes after reboot. How can I make calibration permanent?

0 Kudos

6,116 Views
jieh朱
Contributor III

thank you for your reply
I set weston.ini as follows

pastedImage_1.png

But his touch restart still needs to be calibrated

0 Kudos

6,116 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jiahuai,

   I don't know which version of linux BSP you are using, but you can check if your source code has the code on saving touch data. if these code doesn't exist in your bsp source code, you can add them. see the patch, please!

[PATCH weston v2 10/12] weston: add touchscreen_calibrator option 

Have a nice day!

BR,

Weidong

0 Kudos