diff --git a/device/testing/device-lenovo-q706f/81-libssc-lenovo-q706f.rules b/device/testing/device-lenovo-q706f/81-libssc-lenovo-q706f.rules new file mode 100644 index 000000000..2f572de35 --- /dev/null +++ b/device/testing/device-lenovo-q706f/81-libssc-lenovo-q706f.rules @@ -0,0 +1,3 @@ +# iio-sensor-proxy with libssc: accelerometer mount matrix +SUBSYSTEM=="misc", KERNEL=="fastrpc-*", ENV{ACCEL_MOUNT_MATRIX}+="0, 1, 0; -1, 0, 0; 0, 0, -1" + diff --git a/device/testing/device-lenovo-q706f/APKBUILD b/device/testing/device-lenovo-q706f/APKBUILD index 5f83a675f..056200323 100644 --- a/device/testing/device-lenovo-q706f/APKBUILD +++ b/device/testing/device-lenovo-q706f/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: chalkin Deng pkgname=device-lenovo-q706f pkgdesc="Lenovo Xiaoxin Pad Pro 12.6 (Lenovo Tab P12 Pro)" -pkgver=2 +pkgver=3 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -10,6 +10,7 @@ arch="aarch64" options="!check !archcheck" depends=" bootmac + hexagonrpcd linux-lenovo-q706f make-dynpart-mappings mesa-vulkan-freedreno @@ -19,11 +20,14 @@ depends=" swclock-offset " makedepends="devicepkg-dev" +replaces="hexagonrpcd-openrc" install="$pkgname.post-install $pkgname.post-upgrade" source=" + 81-libssc-lenovo-q706f.rules alsa-ucm-conf/q706f.conf alsa-ucm-conf/HiFi.conf deviceinfo + hexagonrpcd.confd modules-initfs " @@ -49,6 +53,10 @@ package() { ln -s ../../Lenovo/q706f/q706f.conf \ "$pkgdir/usr/share/alsa/ucm2/conf.d/sm8250/Xiaoxin Pad Pro.conf" + install -Dm644 "$srcdir"/81-libssc-lenovo-q706f.rules \ + "$pkgdir"/usr/lib/udev/rules.d/81-libssc-lenovo-q706f.rules + install -Dm644 "$srcdir"/hexagonrpcd.confd \ + "$pkgdir"/etc/conf.d/hexagonrpcd-sdsp } nonfree_firmware() { @@ -58,6 +66,7 @@ nonfree_firmware() { firmware-lenovo-q706f-adsp firmware-lenovo-q706f-cdsp firmware-lenovo-q706f-cirrus + firmware-lenovo-q706f-hexagonfs firmware-lenovo-q706f-slpi firmware-lenovo-q706f-venus linux-firmware-ath11k @@ -70,8 +79,10 @@ nonfree_firmware() { } sha512sums=" +1e0f02d47ea87d467c6e9d824d3b021c97ff29af8fcdf67ac1b75baa2b835f1dcdfc0c9f308a0bdeb3cdf07a8c1e26d66bff8d1337c9cfab1df94c26e9ccfb81 81-libssc-lenovo-q706f.rules 7c97ffb7ae3e1fa2e62bdb3c504275db2c830cc1e5b57dd409ae14d020a1ff5f5cb922223c5dd776569cff52415afd26cba83b6acd76aef22a79ffdaf18dcfbd q706f.conf 1e93599051d6dfe96a07ca230df9c02ad78126c74ec2295098904d646a9df794378744174b877b4b7ca491fa06c336b0d733c421a81eab23c2bece577610b252 HiFi.conf 800ac1d162f4f3b8b8c93e2b451e7841faeb6563831a1b4c5dc2eb16217aa765c9bbdb2a7a9d052eb4d2fb3a3e82a2699f7df877cf56070ce231ca3f9699ee24 deviceinfo +75b2087fa574fa39ef42fce17effb1330bd1318d945de3a91094a5a22812fcfe458821f1dd76e5f48a90c525e17169247520b848596107cc7f843cbcfcb5e1c7 hexagonrpcd.confd c0634ddd66ecfe4b39e8bff0b17ea141303d8827d7d498c2a9f19729566f0d5a3900c78ac8c71e8ef5d68e67c625d551e67c790ea01b103fcf38848e8aebfdf1 modules-initfs " diff --git a/device/testing/device-lenovo-q706f/device-lenovo-q706f.post-install b/device/testing/device-lenovo-q706f/device-lenovo-q706f.post-install index 1ce77a594..0c86a112a 100644 --- a/device/testing/device-lenovo-q706f/device-lenovo-q706f.post-install +++ b/device/testing/device-lenovo-q706f/device-lenovo-q706f.post-install @@ -1,2 +1,3 @@ #!/bin/sh rc-update add qbootctl default +rc-update add hexagonrpcd-sdsp diff --git a/device/testing/device-lenovo-q706f/hexagonrpcd.confd b/device/testing/device-lenovo-q706f/hexagonrpcd.confd new file mode 100644 index 000000000..b2652f338 --- /dev/null +++ b/device/testing/device-lenovo-q706f/hexagonrpcd.confd @@ -0,0 +1,2 @@ +# Lenovo Tab P12 Pro specific hexagonrpcd firmware directory +hexagonrpcd_fw_dir="/usr/share/qcom/sm8250/Lenovo/q706f/"