Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save level323/9b3f240cdfeafe66bc945f71da46a791 to your computer and use it in GitHub Desktop.
Save level323/9b3f240cdfeafe66bc945f71da46a791 to your computer and use it in GitHub Desktop.
Voyo VBook V3 (Apollo Lake N4200): Touchscreen calibration adjustment that works for me. Set via `xinput`
#!/bin/sh
#
# This script adjusts the Calibration Matrix for Debian Stretch running on my Voyo VBook V3 (Apollo Lake N4200)
# This calibration matrix works for me. It's likely the manufacturer changes the touchscreen sensor setup
# from time to time and so these particular factors may not work for you.
#
# Tested on Debian Stretch ONLY.
#
# Note: Debian Stretch uses libinput for touchscreen settings. Thus, xinput_calibrator didn't work for me so I had
# to research and roll-my-own solution, which is as shown below.
#
# Note: The silead_ts driver for the MSSL1680 needs to be installed and fully functioning (including the firmware). See:
# - https://github.com/sigboe/gslX68X for the driver and installation instructions
# - https://github.com/onitake/gsl-firmware for instructions on how to extract the touchpad firmware for the machine.
# I successfully extracted the firmware from the original driver files which were supplied on the SSD of the laptop
# when I received it. I hope to post the drivers and instructions to the above repo in due course.
#
# Note: Requires the 'xinput' package to be installed.
#
# Note: These calibration settings will not be preserved across reboots.
#
xinput --set-prop 'silead_ts' --type=float 'libinput Calibration Matrix' -2.072 0 1 0 -2.698 1 0 0 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment