The drop-in's header still presented the boot-time libssc crash as live; the udev rule from the previous commit removes the probe that caused it. Comment only, no behaviour change; bumped so the rebuilt package carries it.
64 lines
3.4 KiB
Text
64 lines
3.4 KiB
Text
# Device-critical FP6 configuration that no upstream package ships yet —
|
|
# every piece here was once a hand-applied /etc file on the dev phone that a
|
|
# reinstall silently lost:
|
|
# - masked sleep targets: wifi and BT share the WCN combo chip; idle-suspend
|
|
# (and BT-off) resets the shared firmware and kills wifi for ~40 minutes
|
|
# - inv-icm42600-spi module-load: the IMU sits on bitbanged SPI with a
|
|
# fallback-only DT node, so udev coldplug never autoloads it
|
|
# - accel poll udev rule: inv_icm42600 exposes scan_elements without a
|
|
# trigger; iio-sensor-proxy must use its poll backend or auto-rotate is dead
|
|
# - no-SSC udev rule: iio-sensor-proxy 3.9 tags fastrpc-adsp for its libssc
|
|
# drivers; the compass discover() probes the absent SSC registry ~100 s at
|
|
# start and a proximity claim in that window is registered but never
|
|
# polled (near stuck false), a second one crashes it. No hexagonrpcd here;
|
|
# the sensors are IIO
|
|
# - iio-sensor-proxy restart drop-in: generic on-failure safety net; the
|
|
# boot-time libssc crash it was written for is prevented by the rule above
|
|
# - modem-gnss drop-in: this modem's LOC engine answers QMI 94 NotSupported
|
|
# to NMEA-type config, which is permanent, so pmOS's modem-gnss.service
|
|
# retried it every 30 s forever (its StartLimit never trips)
|
|
maintainer="Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net>"
|
|
pkgname=fp6-device-tweaks
|
|
pkgver=5
|
|
pkgrel=1
|
|
pkgdesc="Fairphone 6 device-critical system configuration"
|
|
url="https://forgejo.catcrafts.net/Catcrafts/fp6-img"
|
|
arch="noarch"
|
|
license="MIT"
|
|
# apk-native ban: with this meta installed, the resolver routes Plasma
|
|
# Mobile's audio through real PulseAudio, which claims the card and runs
|
|
# wireplumber in a video-only profile - no sinks, ever
|
|
depends="!postmarketos-base-ui-audio-backend-pulseaudio"
|
|
options="!check"
|
|
source="
|
|
inv-icm42600.conf
|
|
81-fp6-accel-poll.rules
|
|
iio-sensor-proxy-restart.conf
|
|
modem-gnss-nmea-optional.conf
|
|
91-fp6-no-ssc-sensors.rules
|
|
"
|
|
|
|
package() {
|
|
for t in sleep suspend hibernate hybrid-sleep; do
|
|
mkdir -p "$pkgdir/etc/systemd/system"
|
|
ln -s /dev/null "$pkgdir/etc/systemd/system/$t.target"
|
|
done
|
|
install -Dm644 "$srcdir"/inv-icm42600.conf \
|
|
"$pkgdir"/etc/modules-load.d/inv-icm42600.conf
|
|
install -Dm644 "$srcdir"/81-fp6-accel-poll.rules \
|
|
"$pkgdir"/etc/udev/rules.d/81-fp6-accel-poll.rules
|
|
install -Dm644 "$srcdir"/iio-sensor-proxy-restart.conf \
|
|
"$pkgdir"/etc/systemd/system/iio-sensor-proxy.service.d/restart.conf
|
|
install -Dm644 "$srcdir"/modem-gnss-nmea-optional.conf \
|
|
"$pkgdir"/etc/systemd/system/modem-gnss.service.d/10-nmea-types-optional.conf
|
|
install -Dm644 "$srcdir"/91-fp6-no-ssc-sensors.rules \
|
|
"$pkgdir"/etc/udev/rules.d/91-fp6-no-ssc-sensors.rules
|
|
}
|
|
|
|
sha512sums="
|
|
5e60fef47cb09cec7cab73464183dfd9e9cb32cebd1d20a67922c10c5a747eca8d106b66737d06af5c5c162a6baf37ab62a82709cc20911044face100d482919 inv-icm42600.conf
|
|
cc13f6abc4538fef976c59893992dd2c193cd0eac5da37a9fb01ba421b3ba8ff303aa438ec2fe4d10f50165f90be211d4b2c39dc6ef58d0d320fba8182ccf287 81-fp6-accel-poll.rules
|
|
f74c6c5d0ba3015cf123808452e9677c1d087e9540ea7037c30316e48a5c5bbdafe712ff0b07f17969337b1576a34cdfef4319c464ffe38c092a67d313129b57 iio-sensor-proxy-restart.conf
|
|
8fec832be59ca616d3e6a4c0a5ef8067d25f767c79155d8b0ef5761b8d21532932235a3236807305937029efe6255a16696d05523e3e654e2dc2212a281fe12c modem-gnss-nmea-optional.conf
|
|
1c5fd4a5a2a2c19165dca1381c8c6550fb61c6311561be450c9c6f88046d7649e4c7c6f4a86b163a2ecc1ef5ec93cc1dac1e2aded933a6b3d6d68292a1b609d0 91-fp6-no-ssc-sensors.rules
|
|
"
|