Add support for touch on motorola-shamu (#1093)

This commit is contained in:
Eric Hosmer 2018-01-07 02:55:13 -05:00 committed by Oliver Smith
parent 7fc0216fc9
commit db394a8af5
3 changed files with 11 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-motorola-shamu"
pkgdesc="Motorola Google Nexus 6"
pkgver=0.1
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -9,7 +9,7 @@ arch="noarch"
options="!check"
depends="linux-motorola-shamu mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo"
source="deviceinfo initfs-hook.sh"
build() {
devicepkg_build $startdir $pkgname
@ -17,6 +17,9 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/initfs-hook.sh \
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
}
sha512sums="40bff906976c61fa5a80bf564fa356249cd70b373508d81be517f8cdd0324c4ebf530436b110494e4a9f232e2a03fd3d1470a1760807f16b2f72cf187336d837 deviceinfo"
sha512sums="13c79ab6154aaea987a6214d0cc22bd940c111ef4759064ef1abb32b5148b1e07932ab011441f7e97ce39d9bc84a21a5064c2e0940d7818f7d5085d768445057 deviceinfo
61ca4daae82a27775463d95d7857324ea542bec47dc1f9b0106d1dadd3d9da66bba5a5c9a4e28a8330fd117a49432ea063ef4a0e27e9c6b0826d3abcf11f7e44 initfs-hook.sh"

View file

@ -15,7 +15,7 @@ deviceinfo_keyboard="false"
deviceinfo_external_disk="false"
deviceinfo_screen_width="1440"
deviceinfo_screen_height="2560"
deviceinfo_dev_touchscreen=""
deviceinfo_dev_touchscreen="/dev/input/event0"
deviceinfo_dev_touchscreen_calibration=""
deviceinfo_dev_keyboard=""
deviceinfo_msm_refresher="false"

View file

@ -0,0 +1,4 @@
#!/bin/sh
# enable touchscreen
echo 1 > /sys/devices/f9966000.i2c/i2c-1/1-004a/drv_irq