https://github.com/jucr-io/modem-kick
Wake your ModemManager-powered modem when it changes its registration state.
https://github.com/jucr-io/modem-kick
dbus iot modem modem-manager
Last synced: 12 months ago
JSON representation
Wake your ModemManager-powered modem when it changes its registration state.
- Host: GitHub
- URL: https://github.com/jucr-io/modem-kick
- Owner: jucr-io
- License: gpl-2.0
- Created: 2024-10-08T15:22:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-15T15:31:07.000Z (over 1 year ago)
- Last Synced: 2025-06-12T07:48:21.119Z (about 1 year ago)
- Topics: dbus, iot, modem, modem-manager
- Language: C
- Homepage: https://github.com/jucr-io
- Size: 17.6 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# modem-kick
Many modems take a very long time to recover from denied registration when the
reason for the denial is solved. They often require a power state change.
This tool automates that process by detecting a long period (about 10 minutes)
of denied or idle registration and moving the modem to low-power mode and back
to enabled. This is often enough to "kick" the modem back into successful
registration, as long as the reason registration was denied has been solved.
`modem-kick` runs as a systemd service which listens to ModemManager for
registration state changes and performs the necessary power operations.
## Building
`modem-kick` depends on glib and libmm-glib (ModemManager's client library)
development headers and libraries. Once you have those installed:
```
make
sudo make install
systemctl daemon-reload
systemctl enable modem-kick
systemctl start modem-kick
```