Skip to content

Instantly share code, notes, and snippets.

@level323
level323 / voyo-vbook-v3-touchscreen-calibration-set-via-xinput.sh
Created March 30, 2017 04:38
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.
@level323
level323 / 99-voyo-v3-n4200-touchpad.rules
Created March 30, 2017 05:59
Voyo VBook V3 (Apollo Lake N4200): PERMANENT Touchscreen calibration adjustment that works for me. Set via `udev` rules. Survives reboot.
# Note: Tested and works on Debian Stretch (2017-03-29)
# Locate at /etc/udev/rules.d/99-voyo-v3-n4200-touchpad.rules
KERNEL=="event*",SUBSYSTEM=="input",ATTRS{name}=="silead_ts",ENV{LIBINPUT_CALIBRATION_MATRIX}="-2.072 0 1 0 -2.698 1"
@level323
level323 / altnetworking.sh
Created August 3, 2016 21:14
Run a command inside a customised networking environment (using cgroups)
#!/bin/bash
# === INFO ===
# altnetworking.sh
# Description: Run the specified application in a custom networking environment.
# Uses cgroups to run process(es) in a network environment of your own choosing (within limits!)
VERSION="0.1.0"
# Author: John Clark
# Requirements: Debian 8 Jessie (plus iptables 1.6 from unstable)
#