[Bug 1113703] Re: Trying to connect using a GSM modem without SIM card is not reported to user
Thomas Hood
1113703 at bugs.launchpad.net
Tue Feb 5 09:09:19 UTC 2013
** Changed in: gnome-shell (Ubuntu)
Status: New => Invalid
** Description changed:
- Trying to connect using a GSM modem that lacks a SIM card does just give
- the user a general connection failure message without any hints 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.
+ 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-error-helpers.c"):
{ MM_MOBILE_EQUIPMENT_ERROR_SIM_FAILURE,
"simfailure", "SIM failure" },
but should have got:
{ MM_MOBILE_EQUIPMENT_ERROR_SIM_NOT_INSERTED,
"simnotinserted", "SIM not inserted" }
Anyway (any of them should be enough hint to the user), it seems like
the error state is not propagated (src/mm-broadband-modem.c):
static void
iface_modem_initialize_ready (MMBroadbandModem *self,
GAsyncResult *result,
InitializeContext *ctx)
{
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_modem_initialize_finish (MM_IFACE_MODEM (self), result, &error)) {
/* Report the new FAILED state */
mm_warn ("Modem couldn't be initialized: %s", error->message);
g_error_free (error);
mm_iface_modem_update_state (MM_IFACE_MODEM (self),
MM_MODEM_STATE_FAILED,
MM_MODEM_STATE_CHANGE_REASON_UNKNOWN);
/* Jump to the firmware step. We allow firmware switching even in failed
* state */
ctx->step = INITIALIZE_STEP_IFACE_FIRMWARE;
initialize_step (ctx);
return;
}
Network Manager logs:
20:21:24 marius-T1005 NetworkManager[1128]: <warn> (ttyUSB2): unusable
modem detected
** Changed in: networkmanagement (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to networkmanagement in Ubuntu.
https://bugs.launchpad.net/bugs/1113703
Title:
Trying to connect using a GSM modem without SIM card is not reported
to user
To manage notifications about this bug go to:
https://bugs.launchpad.net/modemmanager/+bug/1113703/+subscriptions
More information about the kubuntu-bugs
mailing list