aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--config/sample/mymachine/mymachine.vars6
-rw-r--r--config/sample/mymachine/pointercal1
-rw-r--r--config/sample/mymachine/pointercal.xinput1
-rw-r--r--setup.in10
5 files changed, 20 insertions, 0 deletions
diff --git a/README b/README
index bc2cd57..7211bea 100644
--- a/README
+++ b/README
@@ -27,6 +27,8 @@ Supported features
* Predefined ALSA state file
* Xorg configuration file
* Network interfaces configuration file
+ * Touchscreen calibration file
+ * Xinput-calibrator touchscreen calibration file
* A list of kernel modules for automatic boot time loading
* A list of kernel modules to blacklist from loading
* Extra kernel boot parameters
diff --git a/config/sample/mymachine/mymachine.vars b/config/sample/mymachine/mymachine.vars
index 7779a91..7d6a1b3 100644
--- a/config/sample/mymachine/mymachine.vars
+++ b/config/sample/mymachine/mymachine.vars
@@ -30,6 +30,12 @@ XORG_CONFIG_FILE="xorg.conf"
# This gets installed at /etc/network/interfaces on the target
NETWORK_INTERFACES_FILE="network.interfaces"
+# The touchscreen pointer calibration data
+POINTERCAL_FILE="pointercal"
+
+# The Touchscreen calibration data from xinput-calibrator
+XINPUT_POINTERCAL_FILE="pointercal.xinput"
+
# The kernel modules to be automatically loaded at boot time on the target machine
AUTOLOAD_KERNEL_MODULES="uio iwlwifi"
diff --git a/config/sample/mymachine/pointercal b/config/sample/mymachine/pointercal
new file mode 100644
index 0000000..640053d
--- /dev/null
+++ b/config/sample/mymachine/pointercal
@@ -0,0 +1 @@
+1280 0 1002 0 960 328 65536
diff --git a/config/sample/mymachine/pointercal.xinput b/config/sample/mymachine/pointercal.xinput
new file mode 100644
index 0000000..c082cfa
--- /dev/null
+++ b/config/sample/mymachine/pointercal.xinput
@@ -0,0 +1 @@
+xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 204 3897 3763 178;
diff --git a/setup.in b/setup.in
index 263207a..00538d1 100644
--- a/setup.in
+++ b/setup.in
@@ -93,6 +93,16 @@ if [ "$OLDMACHINE" != "$MACHINE" ]; then
cp -f @appconfdir@/config/${MACHINE}/${NETWORK_INTERFACES_FILE} @sysconfdir@/network/interfaces
fi
+ rm -f @sysconfdir@/pointercal
+ if [ -f "@appconfdir@/config/${MACHINE}/${POINTERCAL_FILE}" ]; then
+ cp -f @appconfdir@/config/${MACHINE}/${POINTERCAL_FILE} @sysconfdir@/pointercal
+ fi
+
+ rm -f @sysconfdir@/pointercal.xinput
+ if [ -f "@appconfdir@/config/${MACHINE}/${XINPUT_POINTERCAL_FILE}" ]; then
+ cp -f @appconfdir@/config/${MACHINE}/${XINPUT_POINTERCAL_FILE} @sysconfdir@/pointercal.xinput
+ fi
+
# Autoload kernel modules
rm -f @sysconfdir@/modules-load.d/autoload.conf
for mod in ${AUTOLOAD_KERNEL_MODULES}; do