-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pine64-pinephone: modem-control ➡ eg25-manager #464
Conversation
I've documented modem managers and how to test them (e.g. "can receive a call when asleep") in https://wiki.pine64.org/wiki/PineModems#Modem_management . I will update this PR once I've completed those tests. |
I've performed the tests listed on https://wiki.pine64.org/wiki/PineModems#Modem_management :
|
Tested working as well:
Should this replace what was previously in |
Good idea. I've updated this PR to include that config. |
I've moved this PR to back to draft, so I can test the changes discussed in #464 (comment). |
Done. The modem still starts successfully on boot, with the most recent change of keeping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modem options needs to be trivial to enable/disable.
Lists in the NixOS modules system won't allow removing items added to them.
Couple that with the fact that eg25-manager
dependencies don't cross-compile, this makes for an awkward situation when trying to build examples/hello
, which should always build successfully.
Furthermore, with the Pinephone Pro, I believe this should be broken out in a more discrete option set that can be used on any device.
So I guess the option should default = false
, since otherwise it would be enabled on irrelevant platforms. Then it should be mkDefault
'ed to true
in the pinephone [and pro] configs. Finally, cross-workarounds
could warn and force disable it [though the warning would always be shown even on platforms not relying on eg25-manager... hmmmm].
Thoughts?
I'm doing related work, I'm just replying to this thread so I'll see future remarks on it. We should sync up over on Matrix. |
Adding some more notes/clues, I think adding them as quirks under the I'm assuming this would also be the same exact implementation for the Pinephone Pro, maybe @wentam can confirm? If it's not, maybe it's something that's not specific to the "host" hardware (the phone), but something specific to the "integration" of the software (kernel, services), and in that case differentiated with an option as needed. |
The setup to run eg25-manager on pinephone pro should be exactly the same as pinephone, yes. I've been running the following in my configuration.nix on PPP (with a locally packaged eg25-manager to get a newer version):
+1 for wrapping it up in a module and providing a simple enable flag. |
[Going through my Github PRs and closing stale ones.] My progress stalled on this a while ago. I'll close to make it clear to other contributors that I don't intend to get back to this. |
Fixes #348 and #463.
Background: There are ways to control the modem's lifecycle on Pinephone:
eg25-manager
and Megi'smodem-power
driver. Other Linux distros have settled on using eg25-manager.This PR moves Mobile NixOS from
modem-power
toeg25-manager
.This has a few benefits:
Notes: