Clone this repo:
  1. 092f197 Fix a type error by Jingyuan Liang · 10 months ago factory-brya-15684.B firmware-cr50-prepvt-15608.B main release-R114-15437.B release-R115-15474.B release-R116-15509.B release-R117-15572.B release-R118-15604.B release-R119-15633.B release-R120-15662.B stabilize-15429.B stabilize-15432.B stabilize-15437.42.B stabilize-15437.57.B stabilize-15437.59.B stabilize-15439.B stabilize-15446.B stabilize-15474.38.B stabilize-15474.53.B stabilize-15474.70.B stabilize-15483.B stabilize-15485.B stabilize-15509.37.B stabilize-15509.63.B stabilize-15509.72.B stabilize-15511.B stabilize-15519.B stabilize-15531.B stabilize-15532.B stabilize-15561.B stabilize-15562.B stabilize-15563.B stabilize-15564.B stabilize-15572.16.B stabilize-15572.39.B stabilize-15572.4.B stabilize-15572.50.B stabilize-15572.57.B stabilize-15572.63.B stabilize-15588.B stabilize-15604.16.B stabilize-15604.45.B stabilize-15604.56.B stabilize-15610.B stabilize-15633.44.B stabilize-15642.B stabilize-15654.B stabilize-15677.B
  2. b8db0f7 Add OWNERS by Sean O'Brien · 1 year, 4 months ago factory-brya-15231.B factory-corsola-15196.B factory-corsola-15197.B factory-nissa-15199.B factory-skyrim-15384.B factory-trogdor-15210.B firmware-corsola-15194.B firmware-duplo-15151.B firmware-nissa-15217.126.B firmware-nissa-15217.253.B firmware-nissa-15217.45.B firmware-nissa-15217.B firmware-skyrim-15369.B firmware-skyrim-15390.B firmware-ti50-mp-15224.B firmware-ti50-prepvt-15086.B release-R106-15054.B release-R107-15117.B release-R108-15183.B release-R109-15236.B release-R110-15278.B release-R111-15329.B release-R112-15359.B release-R113-15393.B stabilize-15032.B stabilize-15033.B stabilize-15054.115.B stabilize-15054.26.B stabilize-15054.98.B stabilize-15072.B stabilize-15083.B stabilize-15086.B stabilize-15117.111.B stabilize-15117.48.B stabilize-15117.86.B stabilize-15120.B stabilize-15122.B stabilize-15129.B stabilize-15167.B stabilize-15174.B stabilize-15183.14.B stabilize-15183.69.B stabilize-15183.82.B stabilize-15185.7.B stabilize-15185.B stabilize-15207.B stabilize-15208.B stabilize-15236.66.B stabilize-15245.B stabilize-15251.B stabilize-15278.64.B stabilize-15300.B stabilize-15301.B stabilize-15317.B stabilize-15329.44.B stabilize-15329.59.B stabilize-15335.B stabilize-15359.45.B stabilize-15359.50.B stabilize-15359.58.B stabilize-15361.B stabilize-15364.B stabilize-15381.B stabilize-15393.48.B stabilize-15393.58.B stabilize-15395.B stabilize-15415.B stabilize-quickfix-15183.78.B stabilize-quickfix-15278.72.B stabilize-testbranch-15185.10.B
  3. c838b13 Move touch action definitions to shared repo by Sean O'Brien · 2 years, 7 months ago factory-14162.B factory-14778.B factory-ambassador-14265.B factory-asurada-13929.B factory-brya-14517.B factory-brya-14909.124.B factory-cherry-14455.B factory-firmware-ti50-guc-14778.B factory-foobar-15000.B factory-guybrush-14600.B factory-guybrush-14908.B factory-keeby-14162.B factory-kukui-14374.B factory-strongbad-13963.B firmware-14947.B firmware-brya-14505.534.B firmware-brya-14505.71.B firmware-brya-14505.B firmware-chameleon-14280.B firmware-chameleon-14947.B firmware-cherry-14454.B firmware-cr50-stab-14294.B firmware-cr50-stab-mp-14300.B firmware-guybrush-14500.B firmware-keeby-14119.B release-R100-14526.B release-R101-14588.B release-R102-14695.B release-R103-14816.B release-R104-14909.B release-R105-14989.B release-R92-13982.B release-R93-14092.B release-R94-14150.49.B release-R94-14150.B release-R96-14268.B release-R97-14324.B release-R98-14388.B release-R99-14469.B stabilize-13935.B stabilize-13942.B stabilize-13970.B stabilize-13971.B stabilize-13974.B stabilize-13982.51.B stabilize-13982.60.B stabilize-13982.69.B stabilize-13982.70.B stabilize-13982.82.B stabilize-13982.88.B stabilize-13983.B stabilize-14013.B stabilize-14023.B stabilize-14026.B stabilize-14029.B stabilize-14031.B stabilize-14057.B stabilize-14092.57.B stabilize-14092.66.B stabilize-14093.B stabilize-14094.B stabilize-14106.B stabilize-14149.B stabilize-14150.376.B stabilize-14150.43.B stabilize-14150.64.B stabilize-14150.734.B stabilize-14150.74.B stabilize-14150.881.B stabilize-14150.882.B stabilize-14150.883.B stabilize-14151.B stabilize-14163.B stabilize-14178.B stabilize-14179.B stabilize-14189.B stabilize-14217.B stabilize-14235.B stabilize-14238.B stabilize-14249.B stabilize-14267.B stabilize-14268.51.B stabilize-14268.52.B stabilize-14268.67.B stabilize-14285.B stabilize-14312.B stabilize-14321.B stabilize-14324.13.B stabilize-14324.41.B stabilize-14324.62.B stabilize-14324.72.B stabilize-14333.B stabilize-14336.B stabilize-14345.B stabilize-14385.B stabilize-14388.52.B stabilize-14388.61.B stabilize-14388.62.B stabilize-14395.B stabilize-14396.B stabilize-14411.B stabilize-14438.B stabilize-14442.B stabilize-14469.41.B stabilize-14469.58.B stabilize-14469.8.B stabilize-14469.9.B stabilize-14477.B stabilize-14496.B stabilize-14498.B stabilize-14526.57.B stabilize-14526.67.B stabilize-14526.73.B stabilize-14526.84.B stabilize-14526.89.B stabilize-14528.B stabilize-14532.B stabilize-14536.B stabilize-14588.123.B stabilize-14588.14.B stabilize-14588.98.B stabilize-14589.B stabilize-14616.B stabilize-14633.B stabilize-14682.B stabilize-14695.107.B stabilize-14695.85.B stabilize-14771.B stabilize-14790.B stabilize-14803.B stabilize-14816.131.B stabilize-14816.136.B stabilize-14816.138.B stabilize-14816.82.B stabilize-14816.84.B stabilize-14839.B stabilize-14909.100.B stabilize-14918.B stabilize-14964.B stabilize-14989.107.B stabilize-14989.85.B stabilize-14998.B stabilize-RUST-13932.B stabilize-RUST-14057.B stabilize-ambassador-14268.43.B stabilize-quickfix-14526.91.B stabilize-quickfix-14695.124.B stabilize-quickfix-14695.187.B stabilize-quickfix-14909.132.B stabilize-rust-14220.B stabilize-rust-14224.B stabilize-rust-14225.B stabilize-voshyr-14637.B stabilize-wristpin-14469.59.B
  4. df90771 Add oppressive language presubmit by Sean O'Brien · 2 years, 10 months ago factory-puff-13813.B firmware-asurada-13885.B firmware-quiche-13883.B release-R90-13816.B release-R91-13904.B stabilize-13799.B stabilize-13816.40.B stabilize-13816.51.B stabilize-13816.53.B stabilize-13816.55.B stabilize-13816.63.B stabilize-13816.64.B stabilize-13816.80.B stabilize-13816.82.B stabilize-13821.B stabilize-13851.B stabilize-13856.B stabilize-13895.B stabilize-13904.34.B stabilize-13904.41.B stabilize-13904.42.B stabilize-13904.43.B stabilize-13904.44.B stabilize-13904.47.B stabilize-13904.48.B stabilize-13904.49.B stabilize-13904.55.B stabilize-13904.58.B stabilize-13904.59.B stabilize-13904.62.B stabilize-13904.66.B stabilize-13904.67.B stabilize-LTS-13816.60.B stabilize-coil-13902.B stabilize-glibc-13901.B stabilize-quickfix-13816.67.B stabilize-quickfix-13904.98.B stabilize-rust-13795.B stabilize-rust-13836.B
  5. 055a8a0 Add OWNERS file by Sean O'Brien · 2 years, 10 months ago

Chromium OS tap test app

This is repository of testing app for Chromium OS.

Python script reads kernel events from specified device and sends parsed information to server via socket.

GUI is Chromium OS application written in javascript. It creates a socket server to port 50008, to which the python app will try to connect. Using of GUI is optional, but recommended, since controlling and configurating the app is a lot easier with it.


This section describes how to configure the program.

App configuration

The default configuration file of application may be found from config/default.cfg. The configuration file is read with ConfigParser. Section names are ignored and may be overwritten.

Available parameters are:

  • Collected touch data is sent to defined IP-address and port.
  • Device path (e.g. /dev/input/event4) can be defined. If not, app will list devices to user and user will choose the device when launching the app.
  • Maximum TCP-packet sending frequency can be set with max_tcp_freq parameter. App will then send more data in one package and reduce traffic in network.
  • Require_gui is used to determine if the program should wait for GUI to connect and control the execution.
  • Client ID is used to differentiate DUTs connected to the same server. Each DUT should have a unique ID.
Mandatory parameters

If GUI is required, no parameter is mandatory. Necessary parameters are obtained from the device and GUI. Mandatory parameters (when running headless) are:

Default parameters

Other parameters will get default values, if not defined in configuration file:

  • port = 50007
  • device_type = stylus
  • max_tcp_freq = 10
  • client_id = 0
  • Device_path has no default, it will be asked from user if the script is started manually

Logger configuration

Logger configuration is read by default from file config/logging.json. It includes different loggers and their settings. By default, it will log with level DEBUG to file log/devicelog.log. Maximum size is 1MB and can be changed. 10 log files are saved and file rotation used. Size may be raised according to needs.


  1. Create or modify configuration files mentioned above config/default.cfg and config/logging.json.
  2. Copy folder OptoFidelity Touch Test to DUT home (~) folder.
    • Optional: Copy start_touch_test.conf to /etc/init/ to start python script when user logs in.
  3. Install GUI app to chrome at chrome://extensions
    • Option 1: Install OF Touch Test GUI.crx.
    • Option 2:
      • Make sure that Developer mode is on.
      • Load unpacked extension from the folder [OF Touch Test GUI](OF Touch Test GUI) you copied to DUT.
  4. Start app with command:
    python [-c <path_to_your_config_file>] [-l <path_to_your_logging_conf>]
    For example:
    python -c config/default.cfg -l config/logging.json
    • App parses option -c or --config as app configuration file.
    • Other parsed option is -l or --log_config which defines logging configuration file.
    • Help is printed with flag -h or --help
  • Launch the GUI application

Using the GUI

Chromium OS GUI app is quite similar to other OptoFidelity Touch Test applications. There are two input fields, one for ip and another for port number. These are used when DUT is connecting to Sequencer. In addition to those, the input device can be choosed from dropdown list. These devices are listed as /dev/input/event*.

After the GUI has connected to the background Python-script, the “Start testing” button will be enabled. Also the default ip and port will be inserted to according fields when default values are received from Python script.

After pushing the Start testing -button, DUT will connect to the Sequencer with given address and port.

Testing screen may be exited by swiping the screen with non-measured device. This means that if the stylus is tested, touching the screen with finger will stop measurement, and other way around. Measured device (eg. stylus device) cannot emit the touch events, since the device is grabbed to Python script. Thus only other devices will work.


  • Project should not depend on any libraries or modules that are not Python standard libraries.