After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709043 - Wifi labeled as "off" when it should say "disconnected"
Wifi labeled as "off" when it should say "disconnected"
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: system-status
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
3.10.1
: 709565 709639 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-29 15:50 UTC by Allison Karlitskaya (desrt)
Modified: 2013-10-09 16:41 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10


Attachments
Network: show Not Connected instead of Off when wifi radio is on (1.38 KB, patch)
2013-10-02 16:01 UTC, Giovanni Campagna
reviewed Details | Review
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state (1.10 KB, patch)
2013-10-02 16:01 UTC, Giovanni Campagna
needs-work Details | Review
Network: show Not Connected instead of Off when wifi radio is on (1.38 KB, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
committed Details | Review
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state (1.10 KB, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
committed Details | Review
NetworkMenu/NMConnectionDevice: grab the connection before using it (2.76 KB, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
committed Details | Review
Bluetooth: fix ngettext call (902 bytes, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
committed Details | Review
NetworkMenu/NMConnectionDevice: fix status text (1.07 KB, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
committed Details | Review
NetworkMenu/NMDeviceModem: fix status texts for airplane mode (1.48 KB, patch)
2013-10-03 12:37 UTC, Giovanni Campagna
none Details | Review
NetworkMenu/NMDeviceModem: fix status texts for airplane mode (1.48 KB, patch)
2013-10-03 12:50 UTC, Giovanni Campagna
committed Details | Review
NetworkMenu/NMDeviceModem: use the operator name when we have it (2.08 KB, patch)
2013-10-03 12:50 UTC, Giovanni Campagna
committed Details | Review

Description Allison Karlitskaya (desrt) 2013-09-29 15:50:08 UTC
When the wifi is enabled, but disconnected, the status label in the menu says "Off", which is particularly confusing because one of the labels when you open the subsection says "Turn off" (to actually disable the radio).

This label should say "disconnected" or "not connected" instead.
Comment 1 Allan Day 2013-10-01 09:38:11 UTC
This issue is also mentioned in bug 708967. 

I agree with the report - "off" and "not connected" are different states that need to be identified. The wireframes indicate that this state should be described as "Not Connected".
Comment 2 Giovanni Campagna 2013-10-02 16:01:28 UTC
Created attachment 256289 [details] [review]
Network: show Not Connected instead of Off when wifi radio is on

When wifi is powered but not connected, show Not Connected instead
of off. This avoids a Off status next to a Turn Off menu item.
Comment 3 Giovanni Campagna 2013-10-02 16:01:32 UTC
Created attachment 256290 [details] [review]
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state

Since we connect to signals for that, we need to sync on that, or
we can miss a notification.
Comment 4 Giovanni Campagna 2013-10-02 16:02:09 UTC
The same fix is needed for WWAN too, but I can't test it right now, because my bluetooth adapter stopped working.
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-10-02 16:08:30 UTC
Review of attachment 256290 [details] [review]:

I don't understand this one.
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-10-02 16:09:40 UTC
Review of attachment 256289 [details] [review]:

OK.

::: js/ui/status/network.js
@@ +1056,3 @@
+            return ssidToLabel(ap.get_ssid());
+        else if (!this._client.wireless_hardware_enabled)
+            return _("Hardware disabled");

double-check on this string please. Caps is inconsistent with "Not Connected" below.
Comment 7 Giovanni Campagna 2013-10-02 16:55:57 UTC
(In reply to comment #5)
> Review of attachment 256290 [details] [review]:
> 
> I don't understand this one.

Oh it's simple: we connect to state-changed signal (which is the signal for NMDevice::state), but we use the state from the ActiveConnection. If the DBus signals are out of order, we never sync the UI properly and end up with a stuck connecting icon.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-10-02 17:00:31 UTC
(In reply to comment #7)
> Oh it's simple: we connect to state-changed signal (which is the signal for
> NMDevice::state), but we use the state from the ActiveConnection. If the DBus
> signals are out of order, we never sync the UI properly and end up with a stuck
> connecting icon.

We should connect to the notify::state signal on the ActiveConnection, then.

(The connecting icon issue is a dbus-glib issue, and danw was looking into it)
Comment 9 Giovanni Campagna 2013-10-02 17:03:47 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Oh it's simple: we connect to state-changed signal (which is the signal for
> > NMDevice::state), but we use the state from the ActiveConnection. If the DBus
> > signals are out of order, we never sync the UI properly and end up with a stuck
> > connecting icon.
> 
> We should connect to the notify::state signal on the ActiveConnection, then.

Why? We use the device state everywhere else (See NMConnectionDevice._getStatus() etc.)

> (The connecting icon issue is a dbus-glib issue, and danw was looking into it)

Interesting, because changing the state variable fixed it here.
Comment 10 Giovanni Campagna 2013-10-03 12:37:16 UTC
Created attachment 256360 [details] [review]
Network: show Not Connected instead of Off when wifi radio is on

When wifi is powered but not connected, show Not Connected instead
of off. This avoids a Off status next to a Turn Off menu item.
Comment 11 Giovanni Campagna 2013-10-03 12:37:21 UTC
Created attachment 256361 [details] [review]
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state

Since we connect to signals for that, we need to sync on that, or
we can miss a notification.
Comment 12 Giovanni Campagna 2013-10-03 12:37:26 UTC
Created attachment 256362 [details] [review]
NetworkMenu/NMConnectionDevice: grab the connection before using it

If the active connection for the device is not the primary or
activating globally, it won't have the _connection and _primaryDevice
expando properties, so grab them from the settings object.
Comment 13 Giovanni Campagna 2013-10-03 12:37:31 UTC
Created attachment 256363 [details] [review]
Bluetooth: fix ngettext call
Comment 14 Giovanni Campagna 2013-10-03 12:37:35 UTC
Created attachment 256364 [details] [review]
NetworkMenu/NMConnectionDevice: fix status text

Be consistent with v4 mockups
Comment 15 Giovanni Campagna 2013-10-03 12:37:40 UTC
Created attachment 256365 [details] [review]
NetworkMenu/NMDeviceModem: fix status texts for airplane mode

Show "Hardware Disabled" when disabled by HW switch, and
generically "Disabled" when airplane mode is active, as
indicated by v4 mockups.
Note that bluetooth is not affected by NM handling of airplane
mode (and generally the firmware makes the USB bluetooth
adapter disappear when rfkilled), so this is in NMDeviceModem
instead of NMConnectionDevice.
Comment 16 Giovanni Campagna 2013-10-03 12:50:22 UTC
Created attachment 256375 [details] [review]
NetworkMenu/NMDeviceModem: fix status texts for airplane mode

Show "Hardware Disabled" when disabled by HW switch, and
generically "Disabled" when airplane mode is active, as
indicated by v4 mockups.
Note that bluetooth is not affected by NM handling of airplane
mode (and generally the firmware makes the USB bluetooth
adapter disappear when rfkilled), so this is in NMDeviceModem
instead of NMConnectionDevice.
Comment 17 Giovanni Campagna 2013-10-03 12:50:52 UTC
Created attachment 256376 [details] [review]
NetworkMenu/NMDeviceModem: use the operator name when we have it

Instead of the connection name, as the operator name is usually
shorter and more useful.
Comment 18 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:31:28 UTC
Review of attachment 256360 [details] [review]:

OK.
Comment 19 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:33:13 UTC
Review of attachment 256362 [details] [review]:

::: js/ui/status/network.js
@@ +306,3 @@
+            // This list is guaranteed to have only one device in it.
+            let device = a.get_devices()[0]._delegate;
+            a._primaryDevice = device;

Can we have function ensureActiveConnectionProps(a, settings) {} so we don't duplicate code?
Comment 20 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:33:36 UTC
Review of attachment 256363 [details] [review]:

OK.
Comment 21 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:33:56 UTC
Review of attachment 256364 [details] [review]:

OK.
Comment 22 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:35:24 UTC
Review of attachment 256376 [details] [review]:

Whoops. This was my fault.
Comment 23 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:35:42 UTC
Review of attachment 256361 [details] [review]:

OK.
Comment 24 Jasper St. Pierre (not reading bugmail) 2013-10-03 13:36:00 UTC
Review of attachment 256375 [details] [review]:

Yep.
Comment 25 Giovanni Campagna 2013-10-03 14:08:08 UTC
Pushing (with suggested changes) the patches that don't require string
freeze approval.

Attachment 256361 [details] pushed as 843f076 - NetworkMenu/NMDeviceWireless: use the device state instead of active connection state
Attachment 256362 [details] pushed as e898e29 - NetworkMenu/NMConnectionDevice: grab the connection before using it
Attachment 256363 [details] pushed as fdb732c - Bluetooth: fix ngettext call
Comment 26 Giovanni Campagna 2013-10-07 18:04:03 UTC
*** Bug 709565 has been marked as a duplicate of this bug. ***
Comment 27 Jasper St. Pierre (not reading bugmail) 2013-10-08 14:31:06 UTC
*** Bug 709639 has been marked as a duplicate of this bug. ***
Comment 28 Giovanni Campagna 2013-10-09 16:40:58 UTC
Attachment 256360 [details] pushed as 6a154ef - Network: show Not Connected instead of Off when wifi radio is on
Attachment 256364 [details] pushed as c79bdd9 - NetworkMenu/NMConnectionDevice: fix status text
Attachment 256375 [details] pushed as 777c7a9 - NetworkMenu/NMDeviceModem: fix status texts for airplane mode
Attachment 256376 [details] pushed as bde5cfc - NetworkMenu/NMDeviceModem: use the operator name when we have it