aboutsummaryrefslogtreecommitdiff
path: root/gobook-xr1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gobook-xr1.sh')
-rwxr-xr-xgobook-xr1.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/gobook-xr1.sh b/gobook-xr1.sh
new file mode 100755
index 0000000..cacefce
--- /dev/null
+++ b/gobook-xr1.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Enable touchscreen
+sudo install -m 755 gobook-xr1-touchscreen /etc/init.d/
+sudo update-rc.d gobook-xr1-touchscreen defaults
+
+# Calibrate touchscreen
+sudo apt-get install -y xinput-calibrator
+xinput_calibrator | sed -n -e '/Section/,/EndSection/p' > 99-calibration.conf
+sudo install -m 644 99-calibration.conf /usr/share/X11/xorg.conf.d/
+rm 99-calibration.conf