Trying to connect using a GSM modem without SIM card is not reported to user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ModemManager |
Fix Released
|
Medium
|
|||
NetworkManager |
Confirmed
|
Wishlist
|
|||
gnome-shell (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
modemmanager (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
network-manager (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
network-manager-applet (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
networkmanagement (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When the user tries to connect using a GSM modem that lacks a SIM card, NM just gives the user a general connection failure message; it does not give any hint about the missing SIM card. This can fool the user into thinking something other is wrong than the fact that he forgot to insert the SIM card, or inserted it improperly.
Latest modemmanager master branch gives in log:
Feb 2 20:21:24 marius-T1005 ModemManager[1105]: <warn> Modem couldn't be initialized: Couldn't check unlock status: SIM failure
but there is no indication to the user (nm-applet behaves as if mobile broadband is unavailable).
Seems I get (from "src/mm-
{ MM_MOBILE_
but should have got:
{ MM_MOBILE_
Anyway (any of them should be enough hint to the user), it seems like the error state is not propagated (src/mm-
static void
iface_modem_
{
GError *error = NULL;
/* If the modem interface fails to get initialized, we will move the modem
* to a FAILED state. Note that in this case we still export the interface. */
if (!mm_iface_
/* Report the new FAILED state */
mm_warn ("Modem couldn't be initialized: %s", error->message);
/* Jump to the firmware step. We allow firmware switching even in failed
* state */
ctx->step = INITIALIZE_
return;
}
Network Manager logs:
20:21:24 marius-T1005 NetworkManager[
description: | updated |
description: | updated |
description: | updated |
Changed in network-manager: | |
importance: | Unknown → Wishlist |
status: | Unknown → Confirmed |
Changed in modemmanager: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gnome-shell (Ubuntu): | |
status: | New → Invalid |
description: | updated |
Changed in networkmanagement (Ubuntu): | |
status: | New → Invalid |
Changed in modemmanager: | |
status: | New → Fix Released |
The first step is to let MM say why it is in Failed state; then the UI can pick that up and show the proper message to the user.
See https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 691778