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 709638 - "Network unavailable" icon is displayed only after wifi disconnect, but not after cable disconnect
"Network unavailable" icon is displayed only after wifi disconnect, but not a...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-10-08 12:51 UTC by Kamil Páral
Modified: 2013-10-08 19:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: make the icon visible again when going from ethernet to nothing (945 bytes, patch)
2013-10-08 18:27 UTC, Dan Winship
committed Details | Review

Description Kamil Páral 2013-10-08 12:51:47 UTC
When I boot my laptop with no connection available (ethernet cable pulled out and wifi networks set to not autoconnect), I see "network unavailable" icon in top right corner. If I connect to a wifi network, it disappears (rightly so). If I disconnect from the network, it appears again (great). When I plug in cable, it disappears again (perfect). But when I disconnect the cable, it does not appear once again (booo).

The 'network unavailable' icon is only visible upon boot (if the conditions match) or after wifi disconnect, but not after cable disconnect.

gnome-shell-3.10.0.1-1.fc20.x86_64
NetworkManager-0.9.9.0-12.git20130913.fc20.x86_64

When I disconnect the cable, the journalctl log says:

Oct 08 14:50:15 medusa kernel: e1000e: em1 NIC Link is Down
Oct 08 14:50:15 medusa NetworkManager[948]: <info> (em1): link disconnected (deferring action for 4 seconds)
Oct 08 14:50:19 medusa NetworkManager[948]: <info> (em1): link disconnected (calling deferred action)
Oct 08 14:50:19 medusa NetworkManager[948]: <info> (em1): device state change: activated -> unavailable (reason 'carrier-changed') [100 20 40]
Oct 08 14:50:19 medusa NetworkManager[948]: <info> (em1): deactivating device (reason 'carrier-changed') [40]
Oct 08 14:50:19 medusa NetworkManager[948]: <info> (em1): canceled DHCP transaction, DHCP client pid 6712
Oct 08 14:50:19 medusa avahi-daemon[947]: Withdrawing address record for 10.34.29.153 on em1.
Oct 08 14:50:19 medusa dnsmasq[1562]: reading /etc/resolv.conf
Oct 08 14:50:19 medusa avahi-daemon[947]: Leaving mDNS multicast group on interface em1.IPv4 with address 10.34.29.153.
Oct 08 14:50:19 medusa dnsmasq[1562]: using nameserver 10.11.5.19#53
Oct 08 14:50:19 medusa dnsmasq[1562]: using nameserver 10.38.5.26#53
Oct 08 14:50:19 medusa dnsmasq[1562]: using local addresses only for unqualified names
Oct 08 14:50:19 medusa avahi-daemon[947]: Interface em1.IPv4 no longer relevant for mDNS.
Oct 08 14:50:19 medusa NetworkManager[948]: <info> NetworkManager state is now DISCONNECTED
Oct 08 14:50:19 medusa dbus-daemon[980]: dbus[980]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Oct 08 14:50:19 medusa dbus[980]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Oct 08 14:50:19 medusa systemd[1]: Starting Network Manager Script Dispatcher Service...
Oct 08 14:50:19 medusa dbus-daemon[980]: dbus[980]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 08 14:50:19 medusa dbus[980]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 08 14:50:19 medusa systemd[1]: Started Network Manager Script Dispatcher Service.
Oct 08 14:50:19 medusa systemd[1]: Stopping Sendmail Mail Transport Client...
Oct 08 14:50:19 medusa systemd[1]: Stopping Sendmail Mail Transport Agent...
Oct 08 14:50:19 medusa systemd[1]: Starting Sendmail Mail Transport Agent...
Oct 08 14:50:19 medusa sendmail[6826]: starting daemon (8.14.7): SMTP+queueing@01:00:00
Oct 08 14:50:19 medusa systemd[1]: Started Sendmail Mail Transport Agent.
Oct 08 14:50:19 medusa systemd[1]: Starting Sendmail Mail Transport Client...
Oct 08 14:50:19 medusa sm-msp-queue[6863]: starting daemon (8.14.7): queueing@01:00:00
Oct 08 14:50:19 medusa systemd[1]: Started Sendmail Mail Transport Client.
Oct 08 14:50:19 medusa chronyd[982]: Source 178.17.162.12 offline
Oct 08 14:50:19 medusa chronyd[982]: Source 94.23.25.78 offline
Oct 08 14:50:19 medusa chronyd[982]: Source 85.255.214.66 offline
Oct 08 14:50:19 medusa chronyd[982]: Source 193.227.197.2 offline
Oct 08 14:50:19 medusa chronyd[982]: Source 10.192.206.245 offline
Comment 1 Dan Winship 2013-10-08 14:50:16 UTC
Jasper, why do you think this is NM's fault?

> Oct 08 14:50:19 medusa NetworkManager[948]: <info> NetworkManager state is now
DISCONNECTED
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-10-08 15:06:24 UTC
It seems like it's not firing notify::primary-connection on the libnm-glib side.
Comment 3 Dan Winship 2013-10-08 18:27:55 UTC
Created attachment 256749 [details] [review]
network: make the icon visible again when going from ethernet to nothing
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-10-08 18:31:25 UTC
Review of attachment 256749 [details] [review]:

Whoops. Yes.
Comment 5 Dan Winship 2013-10-08 19:16:23 UTC
Attachment 256749 [details] pushed as f7624e5 - network: make the icon visible again when going from ethernet to nothing