urfkill does not wait for modem to be powered to online it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
urfkill (Ubuntu) |
Fix Released
|
High
|
Alfonso Sanchez-Beato |
Bug Description
Some times (quite often) urfkill fails to set the Online property with failure
<warning> Could not set Online property in oFono: GDBus.Error:
Taking a look at ofono code, this is returned in case the modem Powered property is not true. The warning happens because urfkill tries to set Online too fast, before the mode has set itself as powered. To solve this, urfkill should wait for the Powered property to be true before trying to set Online.
In the end urfkill is able to Online the modem because set_soft() is called twice for the device:
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: Setting device 100 (WWAN) to unblocked
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: set_soft: Setting WWAN to unblocked
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: Modem found: '/ril_0'
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: Setting device 101 (WWAN) to unblocked
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: set_soft: Setting WWAN to unblocked
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: device_changed_cb: unknown unknown
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: <warning> Could not set Online property in oFono: GDBus.Error:
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: device_changed_cb: unknown unknown
Oct 8 07:56:51 ubuntu-phablet URfkill[1097]: <warning> Could not set Online property in oFono: GDBus.Error:
Oct 8 07:56:53 ubuntu-phablet URfkill[1097]: modem_signal_cb: calling set_soft block: 0
Oct 8 07:56:53 ubuntu-phablet URfkill[1097]: set_soft: Setting WWAN to unblocked
Oct 8 07:56:53 ubuntu-phablet URfkill[1097]: modem_signal_cb: calling set_soft block: 0
Oct 8 07:56:53 ubuntu-phablet URfkill[1097]: set_soft: Setting WWAN to unblocked
thing that also needs to be investigated.
Changed in urfkill (Ubuntu): | |
status: | New → In Progress |
Changed in urfkill (Ubuntu): | |
assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
importance: | Undecided → High |
Changed in urfkill (Ubuntu): | |
status: | In Progress → Fix Released |
Taking a look at urfkill code, it tries to online the modem right after detecting a modem, and after receiving a change of the Powered property in the device-ofono code, so although annoying the warning is not such a big issue.