Skip to content

Conversation

@piggz
Copy link
Contributor

@piggz piggz commented Sep 9, 2020

This is a bit hacky but read on.
Currently, ofono assumes the sim slot / imei is known immediately. With
the pinephone, ofono and gobi plugin, the imei is signalled after
startup. If lipstick is started before the imei/slots are known, then
it assumes no mobile network, unless it is restarted.

This adds 2 service changes.

  1. Make ofono wait 30 seconds, and then write a file to indicate it has
    finished startup
  2. Make lipstick wait until this file has been created before starting.

It is done this way becuase ofono is a system service, and lipstick is a
user-session service, so making them depend on eachother wasnt working.

This is a bit hacky but read on.
Currently, ofono assumes the sim slot / imei is known immediately.  With
the pinephone, ofono and gobi plugin, the imei is signalled after
startup.  If lipstick is started before the imei/slots are known, then
it assumes no mobile network, unless it is restarted.

This adds 2 service changes.
1. Make ofono wait 30 seconds, and then write a file to indicate it has
   finished startup
2. Make lipstick wait until this file has been created before starting.

It is done this way becuase ofono is a system service, and lipstick is a
user-session service, so making them depend on eachother wasnt working.
@piggz piggz merged commit 4e2d11c into master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants