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?
你好,請問這個問題有進一步的更新嗎?
我在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.
在我们的BSP中,使用的是xinput-calibrator,试试这个。
Weidong
你好,
在Yocto使用的是weston的架構,只有看到weston-touch-calibrator,沒有看到xinput-calibrator。
請問要在哪裡執行?
Thanks.
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
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 */
/* 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
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?
How can I remove this error? I see this library under / use /lib /.
Hello Jiehuai,
看来你要去修patch了,看这里,把它打上去!
[V2,2/2] libxkbcommon: RDEPENDS on libx11-locale - Patchwork
Have a nice day!
Weidong
你好!
我按照这个补丁修改sources/poky/meta/recipes-graphics/xorg-lib/libxkbcommon_0.8.0.bb 添加为如下
当我修改完运行bitbake fsl-image-qt5-validation-imx进行构建时,他会报如下错误
我搭建yocto为
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
你好
我用
能不能跟踪一下,看看校准的数据有没有被保存下来。
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
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?
thank you for your reply
I set weston.ini as follows
But his touch restart still needs to be calibrated
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