2019-08-28 08:27:48 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2023-11-02 08:07:41 +00:00
|
|
|
# Maintainer: Arnav Singh <me@arnavion.dev>
|
|
|
|
# Co-Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-pine64-pinephone
|
device-pine64-pinephone: automatically recover modem when it dies (MR 4937)
eg25-manager is supposed to watch for the modem going away and recover it
automatically, but it doesn't seem to actually do anything.
Manually restarting eg25-manager in this situation does recover the modem.
This upstream issue https://gitlab.com/mobian1/eg25-manager/-/issues/47
is probably the same, and as that issue says, manually restarting eg25-manager
in this situation does recover the modem.
So this change adds a udev rule to automatically restart eg25-manager when
the modem dies. Common triggers for the modem dying are:
1. When the phone wakes up from suspend.
2. When an incoming call is disconnected, especially if the disconnect happens
very quickly after the call started, such as what happens when
phosh-antispam identified the call as spam.
3. When plugging or unplugging the phone from USB power, and when plugging
or unplugging other USB devices like keyboard from a connected dock.
udev shouldn't be used for spawning long-lasting processes,
but `rc-service start` will parent the process to the service manager and exit,
so that's fine. It does take a few seconds during which udev is blocked and
can't process other events, which udev also recommends against,
but in this case it's not a big deal IMO.
Fixes #2641
[ci:skip-build]: already built successfully in CI
2024-03-16 20:27:26 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2019-08-28 08:27:48 +00:00
|
|
|
pkgdesc="PINE64 PinePhone"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-01-26 21:46:42 +00:00
|
|
|
subpackages="
|
2023-01-29 17:36:08 +00:00
|
|
|
$pkgname-camera
|
2021-12-08 22:44:57 +00:00
|
|
|
$pkgname-gnome
|
2023-01-29 17:34:35 +00:00
|
|
|
$pkgname-kirigami:kirigami
|
2021-01-26 21:46:42 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
device-pine64-pinephone: automatically recover modem when it dies (MR 4937)
eg25-manager is supposed to watch for the modem going away and recover it
automatically, but it doesn't seem to actually do anything.
Manually restarting eg25-manager in this situation does recover the modem.
This upstream issue https://gitlab.com/mobian1/eg25-manager/-/issues/47
is probably the same, and as that issue says, manually restarting eg25-manager
in this situation does recover the modem.
So this change adds a udev rule to automatically restart eg25-manager when
the modem dies. Common triggers for the modem dying are:
1. When the phone wakes up from suspend.
2. When an incoming call is disconnected, especially if the disconnect happens
very quickly after the call started, such as what happens when
phosh-antispam identified the call as spam.
3. When plugging or unplugging the phone from USB power, and when plugging
or unplugging other USB devices like keyboard from a connected dock.
udev shouldn't be used for spawning long-lasting processes,
but `rc-service start` will parent the process to the service manager and exit,
so that's fine. It does take a few seconds during which udev is blocked and
can't process other events, which udev also recommends against,
but in this case it's not a big deal IMO.
Fixes #2641
[ci:skip-build]: already built successfully in CI
2024-03-16 20:27:26 +00:00
|
|
|
$pkgname-openrc
|
2021-01-24 14:39:54 +00:00
|
|
|
$pkgname-plasma-mobile:plasma_mobile
|
2023-01-29 17:36:08 +00:00
|
|
|
$pkgname-sensorfw
|
|
|
|
$pkgname-shelli
|
2021-05-24 16:11:43 +00:00
|
|
|
$pkgname-upower
|
2021-11-06 21:28:00 +00:00
|
|
|
$pkgname-vccq-mod:vccq_mod
|
2023-02-05 01:41:47 +00:00
|
|
|
$pkgname-sway
|
|
|
|
$pkgname-x11
|
2021-01-26 21:46:42 +00:00
|
|
|
"
|
2020-10-07 11:22:26 +00:00
|
|
|
depends="
|
2021-12-12 14:39:24 +00:00
|
|
|
alsa-ucm-conf>=1.2.6.2
|
2020-10-07 11:22:26 +00:00
|
|
|
atinout
|
2020-12-22 05:53:11 +00:00
|
|
|
eg25-manager
|
|
|
|
eg25-manager-openrc
|
2021-01-08 23:49:47 +00:00
|
|
|
iw
|
2021-08-31 00:58:20 +00:00
|
|
|
linux-postmarketos-allwinner>=5.14
|
2020-10-07 11:22:26 +00:00
|
|
|
mesa-egl
|
|
|
|
postmarketos-base
|
2021-05-27 12:07:03 +00:00
|
|
|
u-boot-pinephone>=2021.01_git20201228-r2
|
2021-04-27 14:06:44 +00:00
|
|
|
u-boot-tools
|
2022-10-09 14:22:38 +00:00
|
|
|
fwupd>=1.8.6
|
2020-10-07 11:22:26 +00:00
|
|
|
"
|
2023-05-11 08:08:05 +00:00
|
|
|
# FIXME: use upstream alsa-ucm-conf instead, once it works the same (pma#2115)
|
|
|
|
replaces="alsa-ucm-conf"
|
2021-11-06 21:28:00 +00:00
|
|
|
makedepends="devicepkg-dev dtc"
|
2021-09-07 21:08:48 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-upgrade"
|
2021-01-08 23:49:47 +00:00
|
|
|
source="
|
2021-01-26 21:46:42 +00:00
|
|
|
00_alsa_pinephone_dshare.conf
|
2020-07-14 17:21:48 +00:00
|
|
|
10-pinephone-proximity.rules
|
2021-12-08 22:44:57 +00:00
|
|
|
50_sleep.gschema.override
|
2022-07-26 01:18:16 +00:00
|
|
|
51_keyboard.gschema.override
|
2021-01-24 14:39:54 +00:00
|
|
|
60-flashlight.rules
|
2021-01-08 23:49:47 +00:00
|
|
|
70-wifi-pm.rules
|
2019-12-11 21:15:52 +00:00
|
|
|
90-modem-eg25.rules
|
device-pine64-pinephone: automatically recover modem when it dies (MR 4937)
eg25-manager is supposed to watch for the modem going away and recover it
automatically, but it doesn't seem to actually do anything.
Manually restarting eg25-manager in this situation does recover the modem.
This upstream issue https://gitlab.com/mobian1/eg25-manager/-/issues/47
is probably the same, and as that issue says, manually restarting eg25-manager
in this situation does recover the modem.
So this change adds a udev rule to automatically restart eg25-manager when
the modem dies. Common triggers for the modem dying are:
1. When the phone wakes up from suspend.
2. When an incoming call is disconnected, especially if the disconnect happens
very quickly after the call started, such as what happens when
phosh-antispam identified the call as spam.
3. When plugging or unplugging the phone from USB power, and when plugging
or unplugging other USB devices like keyboard from a connected dock.
udev shouldn't be used for spawning long-lasting processes,
but `rc-service start` will parent the process to the service manager and exit,
so that's fine. It does take a few seconds during which udev is blocked and
can't process other events, which udev also recommends against,
but in this case it's not a big deal IMO.
Fixes #2641
[ci:skip-build]: already built successfully in CI
2024-03-16 20:27:26 +00:00
|
|
|
90-modem-eg25-openrc.rules
|
2021-09-14 08:51:10 +00:00
|
|
|
UPower.conf
|
2021-01-08 23:49:47 +00:00
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2021-01-08 23:49:47 +00:00
|
|
|
hwtest.ini
|
2021-02-05 14:07:23 +00:00
|
|
|
kirigami-lowpower.sh
|
2022-10-09 17:45:35 +00:00
|
|
|
kxkbrc
|
2021-02-07 06:25:06 +00:00
|
|
|
modemmanager.conf
|
2021-09-14 08:51:10 +00:00
|
|
|
pinephone-vccq-mod.dts
|
|
|
|
pulse-pinephone.conf
|
|
|
|
sensorfw/90-pinephone.conf
|
2020-06-25 12:29:04 +00:00
|
|
|
setup-modem.sh
|
2023-01-13 23:43:12 +00:00
|
|
|
sun50i-a64-psci.dts
|
2021-01-08 23:49:47 +00:00
|
|
|
uboot-script.cmd
|
2021-11-06 21:28:00 +00:00
|
|
|
uboot-user.cmd
|
2021-01-08 23:49:47 +00:00
|
|
|
ucm/HiFi.conf
|
|
|
|
ucm/PinePhone.conf
|
|
|
|
ucm/VoiceCall.conf
|
2022-05-17 00:47:46 +00:00
|
|
|
ppkb.sh
|
2023-02-05 01:41:47 +00:00
|
|
|
sway-pinephone-keyboard.conf
|
|
|
|
x11-pinephone-keyboard.conf
|
2020-06-25 12:29:04 +00:00
|
|
|
"
|
2020-10-29 05:29:48 +00:00
|
|
|
# workaround to purge the -elogind subpackage that was previously
|
|
|
|
# created/installed
|
|
|
|
provides="$pkgname-elogind=$pkgver-r$pkgrel"
|
2024-02-13 20:33:32 +00:00
|
|
|
_pmb_recommends="$pkgname-nonfree-firmware"
|
2019-08-28 08:27:48 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2021-01-26 21:46:42 +00:00
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
|
|
|
-d "$srcdir"/uboot-script.cmd \
|
|
|
|
"$srcdir"/boot.scr
|
2021-11-06 21:28:00 +00:00
|
|
|
# Build user U-boot script for vccq-mod
|
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos-user \
|
|
|
|
-d "$srcdir"/uboot-user.cmd \
|
|
|
|
"$srcdir"/user.scr
|
|
|
|
# Build Device Tree Overlay for vccq-mod
|
|
|
|
dtc \
|
|
|
|
-@ \
|
|
|
|
-I dts \
|
|
|
|
-O dtb \
|
|
|
|
-o "$srcdir"/pinephone-vccq-mod.dtbo \
|
|
|
|
"$srcdir"/pinephone-vccq-mod.dts
|
2023-01-13 23:43:12 +00:00
|
|
|
# Build Device Tree Overlay for psci cpu
|
|
|
|
dtc \
|
|
|
|
-@ \
|
|
|
|
-I dts \
|
|
|
|
-O dtb \
|
|
|
|
-o "$srcdir"/sun50i-a64-psci.dtbo \
|
|
|
|
"$srcdir"/sun50i-a64-psci.dts
|
2019-08-28 08:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2020-07-21 18:04:51 +00:00
|
|
|
install -Dm644 "$srcdir"/boot.scr \
|
2019-08-28 08:27:48 +00:00
|
|
|
"$pkgdir"/boot/boot.scr
|
2020-06-17 17:18:14 +00:00
|
|
|
|
2023-01-13 23:43:12 +00:00
|
|
|
install -Dm644 "$srcdir"/sun50i-a64-psci.dtbo \
|
|
|
|
"$pkgdir"/boot/sun50i-a64-psci.dtbo
|
|
|
|
|
2021-01-26 21:46:42 +00:00
|
|
|
# Make /boot/allwinner/sun50i-a64-pine64-pinephone*.dtb resolve to
|
|
|
|
# /boot/sun50i-a64-pine64-pinephone*.dtb. This is because the device tree
|
|
|
|
# names in u-boot include the vendor and the one in postmarketOS doesn't.
|
2020-06-17 17:18:14 +00:00
|
|
|
ln -s .. "$pkgdir"/boot/allwinner
|
|
|
|
|
2020-07-21 18:04:51 +00:00
|
|
|
install -Dm644 "$srcdir"/hwtest.ini \
|
2019-09-09 11:54:06 +00:00
|
|
|
"$pkgdir"/usr/share/hwtest.ini
|
2019-11-30 23:12:15 +00:00
|
|
|
|
2020-07-14 17:21:48 +00:00
|
|
|
install -D -m644 "$srcdir"/10-pinephone-proximity.rules \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/10-pinephone-proximity.rules
|
2022-07-29 00:19:24 +00:00
|
|
|
install -Dm644 "$srcdir"/60-flashlight.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
2019-12-11 21:15:52 +00:00
|
|
|
|
2019-11-30 23:12:15 +00:00
|
|
|
# Alsa usecase manager config
|
2021-12-12 14:39:24 +00:00
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/PinePhone \
|
|
|
|
"$srcdir"/HiFi.conf \
|
2022-07-01 07:19:23 +00:00
|
|
|
"$srcdir"/PinePhone.conf \
|
2021-12-12 14:39:24 +00:00
|
|
|
"$srcdir"/VoiceCall.conf
|
2022-07-01 07:19:23 +00:00
|
|
|
mkdir -p "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card
|
|
|
|
ln -s /usr/share/alsa/ucm2/PinePhone/PinePhone.conf \
|
|
|
|
"$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf
|
2019-09-10 04:21:13 +00:00
|
|
|
|
2021-05-19 17:19:14 +00:00
|
|
|
# Pulseaudio config
|
|
|
|
install -Dm644 "$srcdir"/pulse-pinephone.conf \
|
|
|
|
"$pkgdir"/etc/pulse/daemon.conf.d/89-pinephone.conf
|
|
|
|
|
2020-02-20 16:44:45 +00:00
|
|
|
# Modem
|
2020-06-25 12:29:04 +00:00
|
|
|
install -Dm755 "$srcdir"/setup-modem.sh \
|
|
|
|
"$pkgdir"/usr/bin/pinephone_setup-modem
|
2021-01-26 21:46:42 +00:00
|
|
|
install -Dm644 "$srcdir"/90-modem-eg25.rules -t \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/
|
2021-02-07 06:25:06 +00:00
|
|
|
install -Dm644 "$srcdir"/modemmanager.conf \
|
|
|
|
"$pkgdir"/etc/conf.d/modemmanager
|
2020-07-21 18:04:51 +00:00
|
|
|
|
2021-01-08 23:49:47 +00:00
|
|
|
# Wifi / PM
|
2021-01-26 21:46:42 +00:00
|
|
|
install -Dm644 "$srcdir"/70-wifi-pm.rules -t \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/
|
2022-05-17 00:47:46 +00:00
|
|
|
|
|
|
|
# Keyboard config
|
|
|
|
install -Dm755 "$srcdir"/ppkb.sh "$pkgdir"/etc/profile.d/ppkb.sh
|
2019-08-28 08:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2020-10-27 23:57:49 +00:00
|
|
|
pkgdesc="Wifi, Bluetooth and Autofocus firmware"
|
2021-01-26 21:46:42 +00:00
|
|
|
depends="
|
|
|
|
linux-firmware-rtlwifi
|
|
|
|
linux-firmware-rtl_bt
|
|
|
|
firmware-pine64-rtl8723bt
|
|
|
|
firmware-pine64-ov5640
|
|
|
|
"
|
2019-08-28 08:27:48 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2020-07-10 13:40:40 +00:00
|
|
|
|
device-pine64-pinephone: automatically recover modem when it dies (MR 4937)
eg25-manager is supposed to watch for the modem going away and recover it
automatically, but it doesn't seem to actually do anything.
Manually restarting eg25-manager in this situation does recover the modem.
This upstream issue https://gitlab.com/mobian1/eg25-manager/-/issues/47
is probably the same, and as that issue says, manually restarting eg25-manager
in this situation does recover the modem.
So this change adds a udev rule to automatically restart eg25-manager when
the modem dies. Common triggers for the modem dying are:
1. When the phone wakes up from suspend.
2. When an incoming call is disconnected, especially if the disconnect happens
very quickly after the call started, such as what happens when
phosh-antispam identified the call as spam.
3. When plugging or unplugging the phone from USB power, and when plugging
or unplugging other USB devices like keyboard from a connected dock.
udev shouldn't be used for spawning long-lasting processes,
but `rc-service start` will parent the process to the service manager and exit,
so that's fine. It does take a few seconds during which udev is blocked and
can't process other events, which udev also recommends against,
but in this case it's not a big deal IMO.
Fixes #2641
[ci:skip-build]: already built successfully in CI
2024-03-16 20:27:26 +00:00
|
|
|
openrc() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel eg25-manager-openrc"
|
|
|
|
depends="eg25-manager-openrc"
|
|
|
|
install -Dm644 "$srcdir"/90-modem-eg25-openrc.rules -t \
|
|
|
|
"$subpkgdir"/usr/lib/udev/rules.d/
|
|
|
|
}
|
|
|
|
|
2023-01-29 17:36:08 +00:00
|
|
|
camera() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-default-camera"
|
|
|
|
depends="megapixels"
|
|
|
|
mkdir -p "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-01-29 17:34:35 +00:00
|
|
|
kirigami() {
|
2021-02-05 14:07:23 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel kirigami2"
|
|
|
|
install -Dm644 "$srcdir"/kirigami-lowpower.sh "$subpkgdir"/etc/profile.d/kirigami-lowpower.sh
|
2021-01-24 14:39:54 +00:00
|
|
|
}
|
|
|
|
|
2021-12-08 22:44:57 +00:00
|
|
|
gnome() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel gnome-control-center"
|
|
|
|
install -Dm644 "$srcdir"/50_sleep.gschema.override \
|
|
|
|
"$subpkgdir"/usr/share/glib-2.0/schemas/50_sleep.gschema.override
|
2022-07-26 01:18:16 +00:00
|
|
|
install -Dm644 "$srcdir"/51_keyboard.gschema.override -t \
|
|
|
|
"$subpkgdir"/usr/share/glib-2.0/schemas
|
2021-12-08 22:44:57 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 17:34:35 +00:00
|
|
|
plasma_mobile() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-plasma-mobile"
|
|
|
|
install -Dm644 "$srcdir"/kxkbrc -t "$subpkgdir"/etc/xdg
|
|
|
|
}
|
|
|
|
|
2021-05-24 16:11:43 +00:00
|
|
|
upower() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel upower"
|
2021-05-30 14:37:21 +00:00
|
|
|
replaces="upower"
|
2021-05-24 16:11:43 +00:00
|
|
|
|
|
|
|
# Shutdown when PMIC reports critical battery level
|
2021-05-30 14:37:21 +00:00
|
|
|
install -Dm644 "$srcdir"/UPower.conf \
|
2021-05-24 16:11:43 +00:00
|
|
|
"$subpkgdir"/etc/UPower/UPower.conf
|
|
|
|
}
|
|
|
|
|
2021-01-26 21:46:42 +00:00
|
|
|
shelli() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel shelli"
|
|
|
|
|
|
|
|
# Alsa default audio must be stereo
|
|
|
|
install -Dm644 "$srcdir"/00_alsa_pinephone_dshare.conf \
|
|
|
|
"$subpkgdir"/etc/alsa/conf.d/00_alsa_pinephone_dshare.conf
|
|
|
|
}
|
2021-11-06 21:28:00 +00:00
|
|
|
|
|
|
|
vccq_mod() {
|
|
|
|
pkgdesc="Install only if you have done the Vccq hardware mod https://postmarketos.org/pp-vccq-mod"
|
|
|
|
install -Dm644 "$srcdir"/user.scr \
|
|
|
|
"$subpkgdir"/boot/user.scr
|
|
|
|
install -Dm644 "$srcdir"/pinephone-vccq-mod.dtbo \
|
|
|
|
"$subpkgdir"/boot/pinephone-vccq-mod.dtbo
|
|
|
|
}
|
2021-09-14 08:51:10 +00:00
|
|
|
|
|
|
|
sensorfw() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel sensorfw"
|
|
|
|
|
|
|
|
install -Dm644 -t "$subpkgdir"/etc/sensorfw/sensord.conf.d \
|
|
|
|
"$srcdir"/90-pinephone.conf
|
|
|
|
}
|
2023-02-05 01:41:47 +00:00
|
|
|
sway() {
|
2024-02-24 17:22:40 +00:00
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel sway"
|
2023-02-05 01:41:47 +00:00
|
|
|
install -Dm644 "$srcdir"/sway-pinephone-keyboard.conf \
|
|
|
|
"$subpkgdir"/etc/sway/config.d/pinephone_keyboard.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
x11() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel xorg-server"
|
|
|
|
install -Dm644 "$srcdir"/x11-pinephone-keyboard.conf \
|
|
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/pinephone-keyboard.conf
|
|
|
|
}
|
2021-05-13 16:54:18 +00:00
|
|
|
sha512sums="
|
|
|
|
5736444fd38ab4351d148ae96c479085f469bd1e51a692fb1827f8ac921a584389f7696985e1fba21c2deac88709910531f4ece282f45ff54e590c2b54b84ba3 00_alsa_pinephone_dshare.conf
|
2021-01-27 09:19:21 +00:00
|
|
|
b53cc6f2531854cc9c1e4c334185a20551d64c8675ee8a8eaa03b99d80808fad421a0f6e99e5be212a974d88c85f461a71ba59ac59c29f298c82f211e3be1ef4 10-pinephone-proximity.rules
|
2021-12-08 22:44:57 +00:00
|
|
|
bac664c504d9a3adc6e3d25f24ac63cf7c449a82374544a5b56c259dc25af580897b9dc992865ac83f854f95d17c439b7deb47bfb9557aabcb2e80c3942e22be 50_sleep.gschema.override
|
2022-07-26 01:18:16 +00:00
|
|
|
2d68ffe143f633a86670f30e45dbad1cc313f219f22b7cd3319ab44bb7209c20cb29f2ff2c60c92390154af9c9a6815c4186be555364cf31552005eba024c0e7 51_keyboard.gschema.override
|
2021-01-27 09:19:21 +00:00
|
|
|
9170da7ac869254644f2fc8d914102f2c16e917dbeb53e33b96c76936711d0540f55fa5c2526d73d5fe244500bc2728bc9d629e2524cf52c573d11e833aee666 60-flashlight.rules
|
|
|
|
8b6fa7b12c15f439c561901f3ffe24a1ef2a0c343401c0a79281060854ab29e08a1fb5e7adae8684b12aa9f535ed99e2dad993dce9724822cb0fbf2497dd86e5 70-wifi-pm.rules
|
2022-11-10 17:50:46 +00:00
|
|
|
7dc2b7c20b4a2b15f597a6417bd01797643dad84a3683b0dee648e030fb6326e9d020307643fdcdf1bb43fc44af9975697e417003bd359610bae2d8ce614fc00 90-modem-eg25.rules
|
device-pine64-pinephone: automatically recover modem when it dies (MR 4937)
eg25-manager is supposed to watch for the modem going away and recover it
automatically, but it doesn't seem to actually do anything.
Manually restarting eg25-manager in this situation does recover the modem.
This upstream issue https://gitlab.com/mobian1/eg25-manager/-/issues/47
is probably the same, and as that issue says, manually restarting eg25-manager
in this situation does recover the modem.
So this change adds a udev rule to automatically restart eg25-manager when
the modem dies. Common triggers for the modem dying are:
1. When the phone wakes up from suspend.
2. When an incoming call is disconnected, especially if the disconnect happens
very quickly after the call started, such as what happens when
phosh-antispam identified the call as spam.
3. When plugging or unplugging the phone from USB power, and when plugging
or unplugging other USB devices like keyboard from a connected dock.
udev shouldn't be used for spawning long-lasting processes,
but `rc-service start` will parent the process to the service manager and exit,
so that's fine. It does take a few seconds during which udev is blocked and
can't process other events, which udev also recommends against,
but in this case it's not a big deal IMO.
Fixes #2641
[ci:skip-build]: already built successfully in CI
2024-03-16 20:27:26 +00:00
|
|
|
c6d9b65100072687df11ed2231edf3a007a6a54941e321fc5416131e881291eaf5853a4f6f7819510c460adcc487fce59bfd4eeb001363ddc87cae7ef85e3e98 90-modem-eg25-openrc.rules
|
2021-09-14 08:51:10 +00:00
|
|
|
ed0e03f7e1c0348c06be9a7922414469245604ce813bbf0c8910ef211cb993bbb0d0d4615c9c961d50712415f85d6b73e0cf02780ac784666aac56e4889341e4 UPower.conf
|
2023-08-02 17:06:01 +00:00
|
|
|
87751806329118272bc887691a0d5b588fa7a601fb048594785032a661b7e48a86c9d97f8bfa99edf247051a81799f2e628e5bf7c129cf2919c2abf0c146e031 deviceinfo
|
|
|
|
218d1361622418a0f79bd661a601baf586aec3995cf32304399b47664caf92bac006466ae1e59afa90f6ab4b9ed6acd16147a696fffd0dcab2492e2428ecc0b0 modules-initfs
|
2021-01-27 09:19:21 +00:00
|
|
|
3dd6d612c381cb0002049d1974d8fb5aa5a53a1eb4d6bcbf62eb2ad52cfdc45f0f6ad24a699716d3513b0371aa1316f25dc72afc10d7176cc3b99d0965c3f030 hwtest.ini
|
2021-02-05 14:07:23 +00:00
|
|
|
6bc22b369b2d9058b702ac7a7862abaefaf8179b43491868bdb008d181b59104f1ded89db1da51a810e1ccdc803a579b924a438674283a65afc3a9c4d2894caf kirigami-lowpower.sh
|
2022-10-09 17:45:35 +00:00
|
|
|
03d547ece68445579352d0419bf16a43ca1c567c1b0b14a977982cc8adddd34f1f8e8691465f1420091a5d33fa50daaefcee404d9d4b89e7598c4ad43a72469e kxkbrc
|
2021-05-22 13:55:47 +00:00
|
|
|
c5006c38828eb519917d57756f7831c4552feffef2d4922a384073f6a551535f615ad397d784e313818e0b943e1f6212bcca0aff9ce37da60b29547b1631f24b modemmanager.conf
|
2021-09-14 08:51:10 +00:00
|
|
|
d66ecef1fa5481ff138fe4e12b194903ceacab9d0649e716049f32e56ec6d9be09b97e2ff769ebc5c9fbced542986b9214f47ed14511ad761d80a41b19e02df7 pinephone-vccq-mod.dts
|
|
|
|
9c472065b19141dd4c7555869b955de2e679b36e597f9fa3bdac18d0e9460986b0e2fffe1e04751301305f1b6474c1375803afb7d6212eeae91b4905d0bf8ff8 pulse-pinephone.conf
|
|
|
|
967e3a43c7e91ed37fc932a7c580cd168ca11d8ec7f60ff60ece7f286e5144f27faead95162fa7d571a2317ed0da970fd86f5bc9ed0235a25c0be9182d42d64d 90-pinephone.conf
|
2021-08-26 07:34:46 +00:00
|
|
|
420ee1d7522d4d56c2909580fd6ba7580483ca5455b13eb6d22e700063ce0c1a5c6d2f5b161dfce0d777636fe9a712aa82f38a0585f2feabea3785b02bae7515 setup-modem.sh
|
2023-01-13 23:43:12 +00:00
|
|
|
1f573b4a6686dac30b6e20507ec6590764a9e9e60c5373bda3838b1f25370b447a3220670710c43a64eb518a4aa54d4ab3beb942513ef269e596a73653c6528e sun50i-a64-psci.dts
|
|
|
|
3c5c7cb57dee019fbc53b40023097f39be08bbaabd111d9d0b71c2d6190280bcbc54a98506cce5640aa064747d6eeb63a9bc3defdddf41ddc16c123112ad35ee uboot-script.cmd
|
2021-11-06 21:28:00 +00:00
|
|
|
f28902517bebe16f7ddbdbf9f4c52d5c97319e3b5ba7326ba96ed0e094d3d2a39c87061326893cdc34336bbfd56de084b2f217918ebba7ca6a080088cd0bd409 uboot-user.cmd
|
2021-05-23 14:20:30 +00:00
|
|
|
f963898fa2ce66bc830e56feeec6ffc9888834e14cc1591d72908ef45ad82532bc3ef5fb32413e07b6722749c9d03e7cf92f06f1fcb859c38b9297cf58e5cedd HiFi.conf
|
2021-08-31 00:58:20 +00:00
|
|
|
4b0c51ab169aebe8177c5c43eba41afa90370098a5a54e710d17e97ec1651869a20cb5d780a6132028c864916609e3b4f4a13158835310d0441bdb4915872372 PinePhone.conf
|
2021-05-23 14:20:30 +00:00
|
|
|
e093f71c37370927468de35a987150a3db3e1cc1c76c144bf58918a09c688c3da84303b5533241e691a6aa0758589e2a6498b1097974117782e909f0bbc6bf71 VoiceCall.conf
|
2022-05-17 00:47:46 +00:00
|
|
|
43f67e94491791685cdbb4874bb3034b1d297bdf3d23e7405c45ba8c58de72b4fb6a9943b79f46ef7b8f4dbc4d9db254ebec8eb3453d720a5a8fad277c6a9d88 ppkb.sh
|
2023-02-05 01:41:47 +00:00
|
|
|
bb11151e246d16e071761ebb35ca7f8b8cedbad8366e9bac6aed30554a795877cc9dccbe69ecca4b19b6f72bd87e613705f3ae4f2f40d2f9c2d09cc179999d59 sway-pinephone-keyboard.conf
|
|
|
|
a7b49a638f664f7682ce6b00eb4d1ae26a429e89354056de05fb49d25fc9555d7f80e6d8f4b0a250878a4e7823860fd156068ed6604ce6cf58badef45c545161 x11-pinephone-keyboard.conf
|
2021-05-13 16:54:18 +00:00
|
|
|
"
|