diff options
Diffstat (limited to 'gobook-xr1.sh')
-rwxr-xr-x | gobook-xr1.sh | 11 |
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 |