aboutsummaryrefslogtreecommitdiff
path: root/gobook-xr1.sh
blob: 472092214c5206d0f6b7bf79bd9f9d7c00af5aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Enable touchscreen
sudo install -m 755 gobook-xr1-touchscreen /etc/init.d/
sudo /etc/init.d/gobook-xr1-touchscreen start
sudo update-rc.d gobook-xr1-touchscreen defaults

# Calibrate touchscreen
if ! test -e /usr/share/X11/xorg.conf.d/99-calibration.conf; then
  sudo apt-get install -y xinput-calibrator
  xinput_calibrator | sed -n -e '/Section/,/EndSection/p' > 99-calibration.conf
  test -s 99-calibration.conf &&
    sudo install -m 644 99-calibration.conf /usr/share/X11/xorg.conf.d/
  rm 99-calibration.conf
fi

# Fix sound
sudo install -m 644 blacklist-gobook-xr1-sound.conf /etc/modprobe.d/