pmaports w/ reMarkable 1 packages
Find a file
Arnav Singh d67aa6b44d
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-23 10:12:14 +01:00
.ci CI: add more tests for CODEOWNERS (MR 4940) 2024-03-18 08:01:26 +00:00
.githooks Add githooks from alpine (MR 4008) 2023-04-12 16:42:45 +02:00
.gitlab/issue_templates issue_template: set EOL date for v23.06 2023-12-18 01:32:29 +01:00
cross cross/busybox-static-*: upgrade to 1.36.1-r21 2024-03-17 17:30:24 +00:00
device device-pine64-pinephone: automatically recover modem when it dies (MR 4937) 2024-03-23 10:12:14 +01:00
main devicepkg-dev: fix call to dc (MR 4959) 2024-03-23 11:46:12 +03:00
modem modem/{pd-mapper,tqftpserv}: take over maintainership (MR 4942) 2024-03-18 12:14:43 +01:00
temp temp/gtk4.0: upgrade to 4.14.1, clean up compile command (MR 4951) 2024-03-21 12:49:39 +01:00
.clang-format Add .clang-format file (!465) 2019-06-26 22:36:15 +02:00
.ecrc CI: .ecrc: Exclude temp from check (MR 4858) 2024-02-27 08:24:53 -08:00
.editorconfig editorconfig: add CODEOWNERS (MR 4940) 2024-03-17 22:48:52 +00:00
.gitignore CI: wiki: adjust for 'pmbootstrap ci' (MR 3608) 2022-11-17 19:10:56 +01:00
.gitlab-ci.yml CI: do ruff check when .gitlab-ci.yml changes (MR 4838) 2024-02-18 19:39:20 +00:00
.mrhlpr.json mrhlpr.json: accept all generic package commits (MR 3131) 2023-03-15 21:37:37 +00:00
channels.cfg channels.cfg: mark v23.06 as unsupported 2024-01-28 19:06:21 +00:00
CODEOWNERS linux-postmarketos-grate: take co-maintainership (MR 4948) 2024-03-19 21:44:24 +00:00
COMMITSTYLE.md COMMITSTYLE: introduce (MR 3908) 2023-03-21 08:32:10 +01:00
LICENSE Add GPLv3 again 2018-08-23 21:44:22 +02:00
pmaports.cfg pmaports.cfg: set pmbootstrap_min_version=2.2.0 (MR 4756) 2024-02-06 16:05:55 -08:00
README.md README: add mention to COMMITSTYLE (MR 4010) 2023-04-13 23:22:01 -07:00