“How to calibrate the touchscreen”的版本间的差异

来自百问网嵌入式Linux wiki
(创建页面,内容为“Category:How_to Category:How_to_run_use_cases ”)
 
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
[[Category:How_to ]][[Category:How_to_run_use_cases ]]
+
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 :
 +
{{ReviewsComments|JCT w905: it would have been nice to have these lines already, per default, in weston.ini. Maybe, a future improvement?}}
 +
* 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/wily/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
 +
 
 +
  {{Board$}} systemctl restart weston
 +
 
 +
* List all the touchscreen devices
 +
  {{Board$}} 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 "DSI-1"
 +
 +
* 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:
 +
  {{Board$}} 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.
 +
 
 +
==References==
 +
<references />
 +
 
 +
<noinclude>
 +
{{PublicationRequestId | Auto}}
 +
[[Category:How to run use cases]]
 +
[[Category:Wayland Weston]]
 +
</noinclude>

2020年5月8日 (五) 22:54的最新版本

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 : <securetransclude src="ProtectedTemplate:ReviewsComments" params="JCT w905: it would have been nice to have these lines already, per default, in weston.ini. Maybe, a future improvement?"></securetransclude>{{#set:Has reviews comments=true}}

  • 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.
 Board $> vi /etc/xdg/weston/weston.ini
 [...]
 [libinput]
 touchscreen_calibrator=true
 calibration_helper=/bin/echo
 [...]
  • Restart weston
 Board $> systemctl restart weston
  • List all the touchscreen devices
 Board $> 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 "DSI-1"

  • 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:

 Board $> 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.

References


<securetransclude src="ProtectedTemplate:PublicationRequestId" params="Auto | |"></securetransclude>