soc-qcom-sdm845: 5.14 feedbackd fix and modemmanager suspend/resume support (MR 2416)

Fix the feedbackd rule as the haptics modules has been renamed.

Although SDM845 doesn't really suspend well, MM needs suspend
and resume support when the device attempts to suspend. Without
which MM will crash and wont resume properly when a suspend
action is triggered.

Depend on msm-modem-uim-selection to configure to modem for modemmanager
This commit is contained in:
Joel Selvaraj 2021-07-24 08:28:23 +05:30 committed by Caleb Connolly
parent 15a851f4fe
commit 487333981f
No known key found for this signature in database
GPG key ID: 0583312B195F64B6
3 changed files with 19 additions and 5 deletions

View file

@ -1 +1 @@
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", SUBSYSTEMS=="input", ATTRS{name}=="pmi8998_haptics", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", SUBSYSTEMS=="input", ATTRS{name}=="spmi_haptics", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"

View file

@ -1,13 +1,17 @@
# Maintainer: Caleb Connolly (kalube) <caleb@connolly.tech>
pkgname=soc-qcom-sdm845
pkgdesc="Common package for Qualcomm SDM845 devices"
pkgver=4
pkgrel=2
pkgver=5
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck !tracedeps"
depends="mesa-dri-gallium swclock-offset"
depends="
mesa-dri-gallium
swclock-offset
msm-modem-uim-selection
"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-ucm
@ -17,12 +21,15 @@ _ucm_commit="f959b6c46165f23eebcf34ffefef14c6be015a55"
source="
alsa-ucm-conf-$_ucm_commit.tar.gz::https://gitlab.com/sdm845-mainline/alsa-ucm-conf/-/archive/$_ucm_commit/alsa-ucm-conf-$_ucm_commit.tar.gz
90-feedbackd-pmi8998.rules
modemmanager.conf
"
package() {
mkdir -p "$pkgdir"
install -Dm644 "$srcdir"/90-feedbackd-pmi8998.rules \
"$pkgdir"/usr/lib/udev/rules.d/90-feedbackd-pmi8998.rules
install -Dm644 "$srcdir"/modemmanager.conf \
"$pkgdir"/etc/conf.d/modemmanager
}
nonfree_firmware() {
@ -42,5 +49,6 @@ ucm() {
sha512sums="
48fba9c041a2a2dfef9f038dfeeb7f636ed4e3b4d1babe2bd9b6ee350a4a34472b0f20d69b57864aa79fb28b24bb38a88ef1542a6d3211db713b361a4d136745 alsa-ucm-conf-f959b6c46165f23eebcf34ffefef14c6be015a55.tar.gz
ea3c7f9664eb9be2ffb6879db044b44cd826747b73c6527d54d79102e58a44e1b32d08d0b1b261329eae43d6a30bc8ef80d89b1d63af1c74ba5dc66ac57911d7 90-feedbackd-pmi8998.rules
4f2c22a3a3fc7d380e200ad977578107d81f0e7ade7918e03bdb15b60a564e8db5f47e13cce22f636d38fd3722696bb46076b8872dae0ca2d8a3838522a1f025 90-feedbackd-pmi8998.rules
e33f41360ccc4900bb76a26cc7b46bde1fb90facdf45c4fbcebc80499386939948401cacd6df9f779eafab10f4ee77ee1fef3e7bd06f483f8c2a4a644c84f327 modemmanager.conf
"

View file

@ -0,0 +1,6 @@
# /etc/conf.d/modemmanager: config file for modemmanager
# Add extra command line options to modemmanager, use with care
# ModemManager --help for possible values
# Use quick suspend/resume hooks
modemmanager_opts="--test-quick-suspend-resume"