Registered User mNo edit summary Tag: 2017 source edit |
Registered User mNo edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<noinclude>{{ApplicableFor | <noinclude> | ||
|MPUs list=STM32MP13x, STM32MP15x, STM32MP25x | {{ApplicableFor | ||
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x | |MPUs list=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | ||
}}</noinclude> | |MPUs checklist=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | ||
}} | |||
</noinclude> | |||
Touchscreen is more precise after a calibration, but this action is not mandatory. | Touchscreen is more precise after a calibration, but this action is not mandatory. | ||
Line 11: | Line 13: | ||
* Edit and change the value of the ''touchscreen_calibrator'' to '''true''' in the ''libinput'' section of the ''weston.ini'' Weston configuration file<ref name="weston.ini">[http://manpages.ubuntu.com/manpages/latest/man5/weston.ini.5.html Ubuntu weston.ini manpage]</ref>. ''#[libinput'' shall be uncommented. | * Edit and change the value of the ''touchscreen_calibrator'' to '''true''' in the ''libinput'' section of the ''weston.ini'' Weston configuration file<ref name="weston.ini">[http://manpages.ubuntu.com/manpages/latest/man5/weston.ini.5.html Ubuntu weston.ini manpage]</ref>. ''#[libinput'' shall be uncommented. | ||
{{Board$}}vi /etc/xdg/weston/weston.ini | |||
[...] | |||
[libinput] | |||
touchscreen_calibrator=true | |||
calibration_helper=/bin/echo | |||
[...] | |||
* Restart weston<ref>[[How to stop and start Weston]]</ref> | * Restart weston<ref>[[How to stop and start Weston]]</ref> | ||
{{Board$}}systemctl restart weston-graphical-session | |||
* List all the touchscreen devices | * List all the touchscreen devices | ||
{{Board$}}weston-touch-calibrator | |||
could not load cursor 'dnd-move' | could not load cursor 'dnd-move' | ||
could not load cursor 'dnd-copy' | could not load cursor 'dnd-copy' | ||
Line 33: | Line 35: | ||
* Launch calibration with the input of the touch panel | * Launch calibration with the input of the touch panel | ||
{{Board$}}weston-touch-calibrator /sys/devices/platform/soc/40012000.i2c/i2c-0/0-002a/input/input1/event1 | |||
If the calibration succeeds, no message will be displayed on the console. If it fails, the following message will appear: | If the calibration succeeds, no message will be displayed on the console. If it fails, the following message will appear: | ||
weston-touch-calibrator error: Calibration verification failed, too large error. | |||
Touchscreen identifier may vary, depending on the devices that are connected to the board. Recommendation is to unplug all the additional input devices before booting. Otherwise, it is up to You to adapt the command line. | Touchscreen identifier may vary, depending on the devices that are connected to the board. Recommendation is to unplug all the additional input devices before booting. Otherwise, it is up to You to adapt the command line. |
Latest revision as of 14:17, 7 October 2024
Touchscreen is more precise after a calibration, but this action is not mandatory.
Calibration data are erased after each firmware download into STMicroelectronics boards.
The steps described below have to be performed on a running board :
- Edit and change the value of the touchscreen_calibrator to true in the libinput section of the weston.ini Weston configuration file[1]. #[libinput shall be uncommented.
vi /etc/xdg/weston/weston.ini
[...]
[libinput]
touchscreen_calibrator=true
calibration_helper=/bin/echo
[...]
- Restart weston[2]
systemctl restart weston-graphical-session
- List all the touchscreen devices
DSI-1"weston-touch-calibrator could not load cursor 'dnd-move' could not load cursor 'dnd-copy' could not load cursor 'dnd-none' device "/sys/devices/platform/soc/40012000.i2c/i2c-0/0-002a/input/input1/event1" - head "
- Launch calibration with the input of the touch panel
weston-touch-calibrator /sys/devices/platform/soc/40012000.i2c/i2c-0/0-002a/input/input1/event1
If the calibration succeeds, no message will be displayed on the console. If it fails, the following message will appear:
weston-touch-calibrator error: Calibration verification failed, too large error.
Touchscreen identifier may vary, depending on the devices that are connected to the board. Recommendation is to unplug all the additional input devices before booting. Otherwise, it is up to You to adapt the command line.
1. References[edit | edit source]