Commit Graph

56 Commits

Author SHA1 Message Date
Arnaud Ferraris
2469757af4 d/changelog: release version 0.1.1-1 2020-12-18 01:42:39 +01:00
Arnaud Ferraris
514b00cc9c d/control: build-depend on gudev 2020-12-18 01:42:01 +01:00
Arnaud Ferraris
e078b8bc09 New upstream release 0.1.1 2020-12-18 01:41:39 +01:00
Arnaud Ferraris
2a18b1cb0c meson.build: release version 0.1.1 0.1.1 2020-12-18 01:38:58 +01:00
Arnaud Ferraris
067c01b685 manager: rename suspend_source to suspend_timer
This makes its role more explicit.
2020-12-18 01:38:27 +01:00
Arnaud Ferraris
62a07f9c51 src: add udev watcher to improve modem recovery
Most of the modem issues follow a (incomplete) USB device reset. Instead 
of relying solely on the existing timer, this patch adds a udev monitor 
which resets the modem as soon as its associated USB device is reset, 
which greatly improves recovery time.
2020-12-18 01:37:06 +01:00
Arnaud Ferraris
74b91c7d58 manager: make sure we don't reset the modem twice in a row
This patch adds a 3s delay when resetting the modem during which we 
avoid triggering a new reset. This makes sure we don't trigger a reset 
twice in a row.

It also disables any related running timer to avoid being re-triggered 
unnecessarily.
2020-12-18 00:45:58 +01:00
Arnaud Ferraris
c39000bf93 suspend: increase modem detection delay by 1s
Sometimes it takes just a little bit longer than usual, so this avoids 
unnecessary modem recovery.
2020-12-18 00:35:32 +01:00
Arnaud Ferraris
d976c75fa2 d/changelog: release version 0.1.0-1 2020-12-14 16:46:02 +01:00
Arnaud Ferraris
f86d0ef062 New upstream release 0.1.0 2020-12-14 16:44:51 +01:00
Arnaud Ferraris
fdbc2cfa69 Merge branch 'fix_gerror_pointer' into 'master'
mm-iface: fix GError pointer

See merge request mobian1/devices/eg25-manager!2
0.1.0
2020-12-14 00:29:58 +00:00
fortysixandtwo
aa85cd873c mm-iface: fix GError pointer 2020-12-13 16:54:10 +01:00
Arnaud Ferraris
a8e6da534c Merge branch 'autofree_gerror' into 'master'
use g_autoptr for GError

See merge request mobian1/devices/eg25-manager!1
2020-12-13 14:33:52 +00:00
fortysixandtwo
1bb2f80fef use g_autoptr for GError 2020-12-13 15:14:11 +01:00
Arnaud Ferraris
9c9169a972 manager: get rid of compiler warnings 2020-12-13 00:55:22 +01:00
Arnaud Ferraris
b495d6c747 gpio: get rid of compiler warnings 2020-12-13 00:52:38 +01:00
Arnaud Ferraris
dd904bc8c1 at: get rid of compiler warnings 2020-12-13 00:52:35 +01:00
Arnaud Ferraris
8c9a2b21f9 gpio: exit if we can't request output GPIOs
This means the system is in a very bad shape as no other software should 
make use of those, so exit the daemon (will be restarted by systemd).
2020-12-13 00:35:17 +01:00
Arnaud Ferraris
90a016a8f6 src: be more careful before dereferencing potentially NULL pointers 2020-12-12 23:59:53 +01:00
Arnaud Ferraris
276c71f223 d/changelog: release version 0.0.6-1 2020-12-11 15:12:08 +01:00
Arnaud Ferraris
1423021f97 d/patches: drop upstreamed patches 2020-12-11 15:11:22 +01:00
Arnaud Ferraris
fc915f570d New upstream release 0.0.6 2020-12-11 15:10:40 +01:00
Arnaud Ferraris
ff60016e5d release version 0.0.6 0.0.6 2020-12-11 15:10:13 +01:00
Arnaud Ferraris
5715138a96 suspend: reset sleep inhibitor if already present upon resume 2020-12-11 15:09:43 +01:00
Arnaud Ferraris
fd6a292a8f manager: don't change modem state after reset
This makes sure the resume commands (disable URC cache and enable GPS)
are executed.
2020-12-11 15:09:38 +01:00
Arnaud Ferraris
5fa345ec92 mm-iface: don't reset USB ID unless quitting
As ModemManager releases the modem while going to sleep, we clear the
USB ID too, which causes a segfault when trying to recover the modem.
2020-12-11 14:34:34 +01:00
Arnaud Ferraris
c77490a2ac d/changelog: release version 0.0.5-2 2020-12-11 14:33:40 +01:00
Arnaud Ferraris
fbd5c0cb86 d/patches: fix crash on modem recovery 2020-12-11 14:33:09 +01:00
Arnaud Ferraris
5bcefbeab0 d/changelog: release version 0.0.5-1 2020-12-11 13:39:22 +01:00
Arnaud Ferraris
f85e8f70c7 New upstream release 0.0.5 2020-12-11 13:38:19 +01:00
Arnaud Ferraris
a9725243ec meson.build: bump version 0.0.5 2020-12-11 13:37:40 +01:00
Arnaud Ferraris
75b0920e9d Revert "manager: split modem_suspend() into _pre() and _post() functions"
This reverts commit ff9b26b831.
2020-12-11 13:36:28 +01:00
Arnaud Ferraris
9713af7ca8 at: fix GPS disabling on suspend 2020-12-11 13:31:11 +01:00
Arnaud Ferraris
664f82d570 at: add default handling for unrecognized responses 2020-12-11 13:31:11 +01:00
Arnaud Ferraris
2da2c9dfe2 d/changelog: release version 0.0.4-1 2020-12-11 12:52:27 +01:00
Arnaud Ferraris
dfaac39162 d/control: build-depend on libusb-1.0 2020-12-11 12:51:36 +01:00
Arnaud Ferraris
7dc0d1678c New upstream release 0.0.4 2020-12-11 12:50:26 +01:00
Arnaud Ferraris
f386d851fa at: make sure we read the full response before processing it 0.0.4 2020-12-11 12:49:31 +01:00
Arnaud Ferraris
5bc8443c38 at: be less strict when checking for error
The response can include the command and an error number, so we want to 
only check it contains ERROR, even if it's replying more than just the 
'ERROR' string.
2020-12-11 12:49:31 +01:00
Arnaud Ferraris
aabe4df41c at: fix suspend/resume sequences
These are set commands, no need to verify the current value.
2020-12-11 12:49:31 +01:00
Arnaud Ferraris
ff9b26b831 manager: split modem_suspend() into _pre() and _post() functions
This way we can make sure the AT commands are executed only once 
ModemManager has released the modem, preventing any race condition.
2020-12-11 12:49:31 +01:00
Arnaud Ferraris
8d31e39e89 manager: only start the modem if it isn't already on 2020-12-11 12:49:10 +01:00
Arnaud Ferraris
397a16a9e3 d/service: restart daemon on failure 2020-12-11 10:49:02 +01:00
Arnaud Ferraris
59219fbd20 d/control: build only on arm64
This package is PinePhone-specific, no need to build on other 
architectures.
2020-12-10 21:42:49 +01:00
Arnaud Ferraris
c953d41436 d/changelog: release version 0.0.3-1 2020-12-10 21:35:11 +01:00
Arnaud Ferraris
82bf80c5f4 New upstream release 0.0.3 2020-12-10 21:33:58 +01:00
Arnaud Ferraris
87c7af7056 manager: actively poll GPIO when quitting
For some reason, during system the main loop exits before we call 
g_main_loop_quit(), so don't rely on it and use a simple polling loop to 
check for modem poweroff.
0.0.3
2020-12-10 21:33:18 +01:00
Arnaud Ferraris
fa21de07f4 src: be more careful when freeing data 2020-12-10 21:31:22 +01:00
Arnaud Ferraris
339faa46dc d/changelog: release version 0.0.2-1 2020-12-10 19:51:42 +01:00
Arnaud Ferraris
cdf92755cb New upstream release 0.0.2 2020-12-10 19:50:32 +01:00