From 82cdba421e687c6925dad98ef7bc04eefec73504 Mon Sep 17 00:00:00 2001 From: Gavin Lilly Date: Wed, 28 Aug 2019 18:49:36 +0100 Subject: [PATCH] device-motorola-lux: enabled touchscreen (!584) --- device/device-motorola-lux/APKBUILD | 8 ++++---- device/device-motorola-lux/initfs-hook.sh | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 device/device-motorola-lux/initfs-hook.sh diff --git a/device/device-motorola-lux/APKBUILD b/device/device-motorola-lux/APKBUILD index ce4282c67..65744ed34 100644 --- a/device/device-motorola-lux/APKBUILD +++ b/device/device-motorola-lux/APKBUILD @@ -1,7 +1,7 @@ # Reference: pkgname="device-motorola-lux" pkgdesc="Motorola Moto X Play" -pkgver=0.1 +pkgver=0.2 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -9,7 +9,7 @@ arch="armhf" options="!check !archcheck" depends="postmarketos-base linux-motorola-lux mkbootimg mesa-dri-swrast msm-fb-refresher" makedepends="devicepkg-dev" -source="deviceinfo" +source="deviceinfo initfs-hook.sh" build() { devicepkg_build $startdir $pkgname @@ -19,5 +19,5 @@ package() { devicepkg_package $startdir $pkgname } - -sha512sums="f58d2ee1acfcd8188872f016595893e2492b75c55aadc0711cc28398ab6715769b43485eb8a293f6d1d024b0b743c9f34a18bd27a7e4f81511c993420c4105f3 deviceinfo" +sha512sums="f58d2ee1acfcd8188872f016595893e2492b75c55aadc0711cc28398ab6715769b43485eb8a293f6d1d024b0b743c9f34a18bd27a7e4f81511c993420c4105f3 deviceinfo +1777c382a73b6e45ee6b4f34b1fd996ad1bae42801dec6de6742f9bf6bf0a0fb5648a7b51ac5b79b7df6d026deca3d4b14a13fae02938e845ed564a9a741c171 initfs-hook.sh" diff --git a/device/device-motorola-lux/initfs-hook.sh b/device/device-motorola-lux/initfs-hook.sh new file mode 100644 index 000000000..e818eabf5 --- /dev/null +++ b/device/device-motorola-lux/initfs-hook.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# activate touchscreen +echo 1 > /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/drv_irq