Bug 262334 - gnome-main-menu says wired connection although a wireless connection is being used
Summary: gnome-main-menu says wired connection although a wireless connection is being...
Status: RESOLVED FIXED
: 343033 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Alpha 2
Hardware: Other openSUSE 10.2
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Federico Mena Quintero
QA Contact: E-mail List
URL:
Whiteboard: gnomeup-gnome-main-menu gnome-wrong-o...
Keywords:
Depends on:
Blocks: main-menu-behavior
  Show dependency treegraph
 
Reported: 2007-04-08 18:29 UTC by Martin Jürgens
Modified: 2009-01-14 17:37 UTC (History)
5 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch1 (344 bytes, text/plain)
2008-04-30 04:54 UTC, Magnus Boman
Details
gnome-main-menu-bnc262334-detect-no-nm-running.patch (3.67 KB, patch)
2008-05-07 11:41 UTC, Magnus Boman
Details | Diff
Screenshot of gnome-main-menu Network: (154.40 KB, image/png)
2008-06-22 06:45 UTC, Casual J. Programmer
Details
screenshot of gnome-main-menu ( Computer/Network: ) (262.15 KB, image/png)
2008-06-24 04:23 UTC, Casual J. Programmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jürgens 2007-04-08 18:29:30 UTC
Gnome-main-menu always says that the network connection is wired when having configured interfaces via YaST.

This also applies for wireless connections configured via YaST: Gnome-main-menu calls them wired.
Comment 1 Magnus Boman 2007-11-14 21:16:53 UTC
On 10.3 the following will happen (when not using NM);

1. Having a wired connection, then loading Slab; Slab will say Wireless
2. Having no connection, then loading Slab; Slab will say No Connection
3. Starting the network after 2, Slab will say No Connection

We decided to move this bug to 11.0. If the fix is easy enough, then it should be backported to 10.2/10.3.
Comment 2 Magnus Boman 2007-11-20 23:10:07 UTC
*** Bug 343033 has been marked as a duplicate of this bug. ***
Comment 4 Casual J. Programmer 2007-12-17 21:53:20 UTC
Actually this seems to work now ( at least using ifup and ipw3945 ). The Gnome Main Menu shows:

Network: Wreless
Connected to: xxxx

Hardware: Notebook FSC Amilo Si1520 
Graphics: Intel 945 GM, LCD 1280*800
Wireless: Intel ipw3945
Sound:    Intel ICH7
Desktop:  GNOME
OS:       openSUSE 11.0 (i586) Alpha0 VERSION = 11.0
Kernel:   2.6.24-rc5-git2-2-default

rpm -qa | grep gnome

gnome-common-2.18.0-21
gnome-speech-0.4.16-56
gnome-vfs-sharp2-2.16.0-73
gnome-vfs-obexftp-0.4-18
gnome-session-2.20.1-13
gnome-terminal-2.18.2-36
gnome-keyring-manager-2.20.0-36
gnome-netstatus-2.12.1-108
libgail-gnome-devel-1.20.0-36
gnome-certauth-devel-0.3-3
gnome-keyring-2.20-26
gnome-mag-0.14.10-37
libgnomecanvas-2.20.0-24
libgnomeprint-devel-2.18.2-24
gnome-menus-2.20.0-32
libgnomedb-devel-3.1.1-26
NetworkManager-gnome-0.6.5-73
python-gnome-2.20.0-35
libgnomesu0-1.0.0-187
python-gnome-extras-2.19.1-29
libgail-gnome-1.20.0-36
gnome-sharp2-2.16.0-73
gnome-netstatus-lang-2.12.1-108
gnome-games-2.20.0.1-64
libgnomeprintui-doc-2.18.1-25
bundle-lang-gnome-ru-11.0-39
gnome-icon-theme-2.20.0-16
libgnomeprint-doc-2.18.2-24
opensuse-gnomeuser_en-10.3-35
gnome2-user-docs-2.20.0-35
gnome-keyring-devel-2.20-26
gnome-nettool-2.20.0-36
libgsf-gnome-1.14.5-56
OpenOffice_org-gnome-2.3.1.1-2
libgnomesu-1.0.0-187
gnome-bluetooth-0.9.1-19
gnome-desktop-devel-2.20.0-35
gnome-panel-lang-2.20.0-39
gnome-power-manager-2.20.0-41
gnome-pilot-lang-2.0.15-63
yast2-control-center-gnome-2.13.2-126
gnome-python-desktop-2.20.0-65
bundle-lang-gnome-de-11.0-39
gnome-audio-2.0.0-206
libgnomecups-0.2.3-15
gnome-themes-2.20.0-40
gnome-speech-devel-0.4.16-56
gnome-doc-utils-0.10.3-80
libgnomeui-2.20.0-36
gnome-doc-utils-devel-0.10.3-80
libgnomeui-doc-2.20.0-36
gnome-cups-manager-0.32-21
libgnomekbd-2.20.0-35
gnome-spell2-1.0.7-150
gnome-games-lang-2.20.0.1-64
libgnome-2.20.0-36
gnome-menus-devel-2.20.0-32
libgnomesu-devel-1.0.0-187
gnome-screensaver-2.20.0-42
gnome-cups-manager-devel-0.32-21
gnome-panel-extras-2.20.0-39
libgnomebt0-0.9.1-19
gnome-media-2.20.1-59
gnome-media-devel-2.20.1-59
gnome-applets-devel-2.20.0-59
libgnomedb-lang-3.1.1-26
bundle-lang-gnome-en-11.0-39
libgnomecups-devel-0.2.3-15
gnome2-SuSE-10.3-130
libgnomecanvas-devel-2.20.0-24
gnome-vfs2-2.20.0-32
gnome-system-monitor-2.20.0-57
gnome-vfs2-devel-2.20.0-32
gnome-commander-1.2.4-59
gnome-volume-manager-2.17.0-140
libgnomeui-devel-2.20.0-36
gnome-panel-devel-2.20.0-39
gnome-utils-2.20.0.1-39
gnome-main-menu-0.9.8-132
gnome-mount-0.7-26
bundle-lang-gnome-cs-11.0-39
gnome-printer-add-1.0.1-172
libgnome-certauth0-0.3-3
libgnomecanvas-doc-2.20.0-24
gnome-vfs2-doc-2.20.0-32
libgnome-doc-2.20.0-36
bluez-gnome-0.14-19
libgnome-devel-2.20.0-36
gnome-panel-2.20.0-39
gnome-web-photo-0.2-149
gnome-panel-doc-2.20.0-39
libgnomeprintui-devel-2.18.1-25
gnome-pilot-devel-2.0.15-63
libgnomebt-devel-0.9.1-19
gnome-main-menu-devel-0.9.8-132
gnome-applets-2.20.0-59
libgnomeprint-2.18.2-24
libgnomedb-3.1.1-26
gnome-desktop-2.20.0-35
libgnomeprintui-2.18.1-25
libgnomekbd-devel-2.20.0-35
gnome-pilot-2.0.15-63
gnome-bluetooth-lang-0.9.1-19
compiz-gnome-0.5.4-61
Comment 5 Casual J. Programmer 2008-01-28 16:10:46 UTC
In the meantime it's broken again. Maim Menu shows Network: None

Notebook: Fujitsu Siemens Amilo Si 1520
Graphics: Fujitsu Siemens Mobile 945GM/GMS/GME, 943/940GML Express
Monitor:  QUANTADISPLAY LCD Monitor 1280x800@60Hz
Wireless: Intel PRO/Wireless 3945ABG Network Connection
Sound:    82801G (ICH7 Family) High Definition Audio Controller
Desktop:  gnome2-SuSE-10.3-144
YaST GUI: yast2-qt-2.16.18-2
OS:       openSUSE 11.0 (i586) Alpha1 VERSION = 11.0
Kernel:   2.6.24-rc8-git2-5-default

rpm -qa | grep gnome | sort

bluez-gnome-0.14-32
bundle-lang-gnome-de-11.0-56
bundle-lang-gnome-en-11.0-56
bundle-lang-gnome-ru-11.0-56
compiz-gnome-0.5.4-73
gnome2-SuSE-10.3-144
gnome2-user-docs-2.20.0-48
gnome-applets-2.21.4-2
gnome-applets-lang-2.21.4-2
gnome-audio-2.0.0-212
gnome-bluetooth-0.9.1-32
gnome-bluetooth-lang-0.9.1-32
gnome-certauth-devel-0.3-3
gnome-commander-1.2.4-72
gnome-commander-debuginfo-1.2.4-72
gnome-common-2.18.0-27
gnome-cups-manager-0.32-35
gnome-cups-manager-devel-0.32-35
gnome-desktop-2.20.0-48
gnome-desktop-devel-2.20.0-48
gnome-doc-utils-0.10.3-94
gnome-doc-utils-devel-0.10.3-94
gnome-games-2.20.0.1-80
gnome-games-lang-2.20.0.1-80
gnome-icon-theme-2.20.0-24
gnome-keyring-2.21.4-8
gnome-keyring-devel-2.21.4-8
gnome-keyring-lang-2.21.4-14
gnome-keyring-manager-2.20.0-45
gnome-keyring-pam-2.21.4-8
gnome-mag-0.14.10-51
gnome-main-menu-0.9.8-147
gnome-main-menu-devel-0.9.8-147
gnome-media-2.20.1-80
gnome-media-devel-2.20.1-80
gnome-menus-2.20.0-45
gnome-menus-devel-2.20.0-45
gnome-mount-0.7-40
gnome-netstatus-2.12.1-121
gnome-netstatus-lang-2.12.1-121
gnome-nettool-2.20.0-49
gnome-panel-2.21.5-5
gnome-panel-devel-2.21.5-5
gnome-panel-doc-2.21.5-5
gnome-pilot-2.0.15-76
gnome-pilot-devel-2.0.15-76
gnome-pilot-lang-2.0.15-76
gnome-power-manager-2.20.0-54
gnome-printer-add-1.0.1-186
gnome-python-desktop-2.20.0-67
gnome-screensaver-2.20.0-55
gnome-session-2.20.1-26
gnome-sharp2-2.16.0-85
gnome-speech-0.4.16-69
gnome-speech-devel-0.4.16-69
gnome-spell2-1.0.7-163
gnome-system-monitor-2.21.4-24
gnome-system-monitor-lang-2.21.4-24
gnome-terminal-2.18.2-49
gnome-themes-2.20.0-54
gnome-utils-2.20.0.1-52
gnome-vfs2-2.20.0-46
gnome-vfs2-devel-2.20.0-46
gnome-vfs2-doc-2.20.0-46
gnome-vfs-obexftp-0.4-31
gnome-vfs-sharp2-2.16.0-85
gnome-volume-manager-2.17.0-153
gnome-web-photo-0.2-162
libgail-gnome-1.20.0-49
libgail-gnome-devel-1.20.0-49
libgnome-2.20.1.1-2
libgnomebt0-0.9.1-32
libgnomebt-devel-0.9.1-32
libgnomecanvas-2.20.0-35
libgnomecanvas-devel-2.20.0-35
libgnomecanvas-doc-2.20.0-35
libgnome-certauth0-0.3-3
libgnomecups-0.2.3-23
libgnomecups-devel-0.2.3-23
libgnomedb-3.1.1-39
libgnomedb-devel-3.1.1-39
libgnomedb-lang-3.1.1-39
libgnome-devel-2.20.1.1-2
libgnome-doc-2.20.1.1-2
libgnomekbd-2.20.0-48
libgnomekbd-devel-2.20.0-48
libgnome-lang-2.20.1.1-2
libgnomeprint-2.18.2-33
libgnomeprint-devel-2.18.2-33
libgnomeprint-doc-2.18.2-33
libgnomeprintui-2.18.1-35
libgnomeprintui-devel-2.18.1-35
libgnomeprintui-doc-2.18.1-35
libgnomesu0-1.0.0-200
libgnomesu-1.0.0-200
libgnomesu-devel-1.0.0-200
libgnomeui-2.21.5-2
libgnomeui-devel-2.21.5-2
libgnomeui-doc-2.21.5-2
libgnomeui-lang-2.21.5-2
libgsf-gnome-1.14.5-69
NetworkManager-gnome-0.7.0-10
OpenOffice_org-gnome-2.3.1.1-9
openssh-askpass-gnome-4.7p1-18
PolicyKit-gnome-libs-0.7-11
python-gnome-2.20.0-48
python-gnome-bluetooth-0.9.1-32
python-gnome-devel-2.20.0-48
python-gnome-extras-2.19.1-42
yast2-control-center-gnome-2.13.2-140


Comment 6 Casual J. Programmer 2008-03-05 08:15:06 UTC
This has now changed again to Network: None, no matter whether connection is wire or wireless.

Notebook: Fujitsu Siemens Amilo Si 1520
Graphics: Fujitsu Siemens Mobile 945GM/GMS/GME, 943/940GML Express
Monitor:  QUANTADISPLAY LCD Monitor 1280x800@60Hz
Wireless: Intel PRO/Wireless 3945ABG Network Connection
Sound:    82801G (ICH7 Family) High Definition Audio Controller
Desktop:  gnome2-SuSE-10.3-163
YaST GUI: yast2-qt-2.16.31-5
OS:       openSUSE 11.0 (i586) Alpha2 VERSION = 11.0
Kernel:   2.6.24.1-6-default

rpm -qa | grep gnome | sort

bluez-gnome-0.15-17
bundle-lang-gnome-en-11.0-87
compiz-gnome-0.5.4-91
gnome2-SuSE-10.3-163
gnome2-user-docs-2.20.1-19
gnome-applets-2.21.91-12
gnome-audio-2.0.0-218
gnome-bluetooth-0.11.0-17
gnome-bluetooth-lang-0.11.0-17
gnome-commander-1.2.4-90
gnome-cups-manager-0.32-54
gnome-desktop-2.21.91-7
gnome-doc-utils-0.12.1-6
gnome-games-2.20.0.1-106
gnome-games-lang-2.20.0.1-106
gnome-icon-theme-2.21.4-9
gnome-keyring-2.21.91-6
gnome-keyring-manager-2.20.0-67
gnome-keyring-pam-2.21.91-6
gnome-mag-0.15.0-17
gnome-main-menu-0.9.8-166
gnome-media-2.20.1-107
gnome-menus-2.21.91-7
gnome-mount-0.7-47
gnome-netstatus-2.12.1-138
gnome-netstatus-lang-2.12.1-138
gnome-nettool-2.20.0-67
gnome-panel-2.21.91-4
gnome-pilot-2.0.15-93
gnome-pilot-lang-2.0.15-93
gnome-power-manager-2.21.1-17
gnome-printer-add-1.0.1-204
gnome-python-desktop-2.21.2-25
gnome-screensaver-2.21.6-7
gnome-session-2.21.91-8
gnome-settings-daemon-2.21.91-7
gnome-sharp2-2.16.0-103
gnome-speech-0.4.18-17
gnome-spell2-1.0.8-18
gnome-system-monitor-2.21.5-29
gnome-terminal-2.21.91.1-7
gnome-themes-2.21.91-7
gnome-utils-2.20.0.1-69
gnome-vfs2-2.21.90-17
gnome-vfs-obexftp-0.4-49
gnome-vfs-sharp2-2.16.0-103
gnome-volume-manager-2.22.1-18
gnome-web-photo-0.2-181
libgail-gnome-1.20.0-66
libgnome-2.21.90-17
libgnomebt0-0.11.0-17
libgnomecanvas-2.20.1.1-13
libgnomecups-0.2.3-37
libgnome-desktop-2-2-2.21.91-7
libgnomekbd-2.21.4.1-20
libgnome-menu2-2.21.91-7
libgnomeprint-2.18.4-6
libgnomeprintui-2.18.2-6
libgnomesu0-1.0.0-218
libgnomesu-1.0.0-218
libgnomeui-2.21.91-6
NetworkManager-gnome-0.7.0-31
OpenOffice_org-gnome-2.4.0-3
opensuse-gnomeuser_en-10.3-51
PolicyKit-gnome-0.7-30
PolicyKit-gnome-libs-0.7-30
python-gnome-2.20.0-64
python-gnome-extras-2.19.1-59
yast2-control-center-gnome-2.13.2-159
Comment 7 Casual J. Programmer 2008-03-09 11:24:47 UTC
Any news here ?
Comment 8 Casual J. Programmer 2008-03-14 13:37:23 UTC
This could also be driver related. On a Sony notebook with Lucent / Agere card the information shows correct data.

Notebook: Sony Vaio PCG-SRX51P
CPU:	  Intel(R) Pentium(R) III Mobile CPU 800MHz
Memory:	  265MB
Disk:     SAMSUNG MP0804H 80GB
Graphics: Intel I815
Monitor:  Sony TFT DISPLAY L150 (CPD-L150) 1024*768
Wireless: Lucent Technologies "WaveLAN/IEEE"
Sound:    Intel 82801BA/BAM AC'97 Audio Controller
Desktop:  gnome2-SuSE-10.3-167
YaST GUI: yast2-qt-2.16.33-2
OS:       openSUSE 11.0 (i586) Alpha2 VERSION = 11.0
Kernel:   2.6.25-rc4-git1-2-pae

rpm -q gnome-panel gnome-main-menu
gnome-panel-2.21.92-3
gnome-main-menu-0.9.9-2

hwinfo --wlan
15: PCMCIA 01.0: 0282 WLAN controller                           
  [Created at pcmcia.84]
  UDI: /org/freedesktop/Hal/devices/pcmcia__1__1
  Unique ID: BnC0.lG4e6KMEdl8
  Parent ID: ul7N.J5lSzbB0WR8
  SysFS ID: /devices/pci0000:00/0000:00:1e.0/0000:01:05.0/1.0
  SysFS BusID: 1.0
  Hardware Class: network
  Model: "Lucent WaveLAN/IEEE"
  Hotplug: CardBus
  Socket: 1
  Vendor: pcmcia 0x0156 "Lucent Technologies"
  Device: pcmcia 0x0002 "WaveLAN/IEEE"
  Driver: "orinoco_cs"
  Driver Modules: "orinoco_cs"
  Device File: eth1
  Features: WLAN
  HW Address: 00:02:2d:5c:f5:ef
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462
  WLAN bitrates: 1 2 5.5 11
  WLAN encryption modes: WEP40 WEP104
  WLAN authentication modes: open sharedkey
  Module Alias: "pcmcia:m0156c0002f06fn00pfn00pa23EB9949pbC562E72ApcD27DEB1Apd00000000"
  Driver Info #0:
    Driver Status: hostap_cs is not active
    Driver Activation Cmd: "modprobe hostap_cs"
  Driver Info #1:
    Driver Status: orinoco_cs is active
    Driver Activation Cmd: "modprobe orinoco_cs"
  Extra Info: Lucent Technologies, WaveLAN/IEEE, Version 01.01
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #2 (CardBus bridge)
Comment 9 Magnus Boman 2008-04-30 04:54:02 UTC
Created attachment 211348 [details]
Patch1

This is patch1 (Step1) to fix this issue;

We currently rely on nm_client_new() to return NULL if NetworkManager is not running. This is not the case. We need to explicitly call nm_client_get_manager_running to get the correct status.


For Step2, we need to either add a poll to check if network connectivity has changed, or check this each time the menu is opened. I don't know which one is the best so I'll leave that to the experts (Federico and Scott).
Comment 10 Magnus Boman 2008-04-30 04:55:26 UTC
Federico,
Would you mind having a look at this and suggest which method to use. Also, feel free to whip up a patch for it :-)
Comment 11 Bjørn Lie 2008-05-04 23:14:53 UTC
Should the status of this bug be needinfo still? Whats missing?
Comment 12 Magnus Boman 2008-05-04 23:16:46 UTC
It's set needinfo to Federico for a patch review.
Comment 13 Federico Mena Quintero 2008-05-06 18:39:30 UTC
Nice catch!  However, this still needs to handle the case where nm_client_new() returns NULL.  This can happen if the system D-bus can't be contacted:

NMClient *
nm_client_new (void)
{
	DBusGConnection *connection;
	GError *err = NULL;

	connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &err);
	if (!connection) {
		g_warning ("Couldn't connect to system bus: %s", err->message);
		g_error_free (err);
		return NULL;
	}

	return (NMClient *) g_object_new (NM_TYPE_CLIENT,
					  NM_OBJECT_DBUS_CONNECTION, connection,
					  NM_OBJECT_DBUS_PATH, NM_DBUS_PATH,
					  NULL);
}

So a simple "if (!(client && nm_client_get_manager_running (...)))" should do the trick :)

As for your Step2, it should be enough to check the status every time the menu is opened, *but* only if NM was seen not to be active the last time we checked (i.e. to avoid polling NM more than necessary).  You can hook this in main-menu-ui.c:present_slab_window().
Comment 14 Magnus Boman 2008-05-06 22:54:45 UTC
It'd be nice to call network_status_agent_get_first_active_device_info when the menu opens, since we can then detect if user changed between ifup/NM.
I'll do some timings to figure out if it's worth it.
Comment 15 Magnus Boman 2008-05-07 11:41:00 UTC
Created attachment 213106 [details]
gnome-main-menu-bnc262334-detect-no-nm-running.patch

I've tested this new patch by switching between ifup/NM etc and seems to work fine.
Comment 16 Federico Mena Quintero 2008-05-07 16:43:17 UTC
Sweet.  I've committed your patch to GNOME's SVN.

(Next time, please use "diff -up" to get patches - it's much nicer to read with the -p option :)

2008-05-07  Magnus Boman  <captain.magnus@gmail.com>

	https://bugzilla.novell.com/show_bug.cgi?id=262334 -
	Show the correct status in the network status tile even if
	NetworkManager is not running.

	* main-menu/src/main-menu-ui.c (create_status_section): Remember
	our network_status widget in the MainMenuUIPrivate.
	(present_slab_window): Update the network tile.

	* main-menu/src/network-status-tile.c (network_tile_update_status):
	New function.

	* main-menu/src/network-status-agent.c (init_nm_connection):
	Handle the case where we obtained a NM client object, but NM is
	not running.

Comment 17 Federico Mena Quintero 2008-05-07 16:47:59 UTC
BTW, feel free to put your patch in our gnome-main-menu package :)
Comment 18 Magnus Boman 2008-05-07 17:00:50 UTC
Federico,
I've got no rights so would be great if you could do it :-)
Comment 19 Federico Mena Quintero 2008-05-07 17:06:03 UTC
Sure, I'll do it.  Reassigning to myself.
Comment 20 Federico Mena Quintero 2008-05-07 19:55:57 UTC
Submitted; this should appear in Beta4.  Thanks for the patch, Captain :)

* Wed May 07 2008 - federico@novell.com
- Added gnome-main-menu-bnc262334-network-status-without-nm.diff to
  fix https://bugzilla.novell.com/show_bug.cgi?id=262334 - Main-menu
  now shows the correct network status even if NetworkManager is not
  running.
Comment 21 Casual J. Programmer 2008-05-23 07:31:26 UTC
Federico: According to official releases there is no Beta4. Does that mean the fix never hits the road ?

"The openSUSE team is proud to announce the _last_ Beta release of openSUSE 11.0!" from openSUSE weekly
Comment 22 Federico Mena Quintero 2008-05-23 17:54:49 UTC
I mean, RC1 :)  It will appear in the final 11.0 for sure.
Comment 23 Casual J. Programmer 2008-06-13 13:06:48 UTC
This still doesn't appear to work properly

gnome-main-menu-0.9.10-28

 rpm -q gnome-main-menu --changelog
* Wed May 21 2008 sreeves@suse.de
- Fix for bnc#393101 - Crash checking title

* Tue May 13 2008 sreeves@suse.de
- Official release of 0.9.10
  Fix for BNC#308998 - missing translations.
  Fix for BNC#388785 - show banshee-1 in main-menu
  Fix for BNC#381617 - show icon for template docs
  Fix for BNC#372206 - update status when network gets connected.
  Fix for BNC#224885 - update status when network gets connected.

* Mon May 12 2008 tambet@suse.de
- Fix a build issue caused by NetworkManager API breakage.

* Wed May 07 2008 federico@novell.com
- Added gnome-main-menu-bnc262334-network-status-without-nm.diff to
  fix https://bugzilla.novell.com/show_bug.cgi?id=262334 - Main-menu
  now shows the correct network status even if NetworkManager is not
  running.

while I am running wireless (wlan0) with ifup, slab shows

Network: Wired
using ethernet (wmaste...

Comment 24 Casual J. Programmer 2008-06-13 13:07:21 UTC
.
Comment 25 Magnus Boman 2008-06-21 23:42:41 UTC
Can you please run 'nm-tool' in a terminal and paste the output here.
Comment 26 Casual J. Programmer 2008-06-22 06:44:49 UTC
# nm-tool

** (process:5694): WARNING **: nm_object_get_property: Error getting 'WirelessHardwareEnabled' for /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files


NetworkManager Tool

State: unknown



NetworkManager appears not to be running (could not get its state).

# ps -A | grep nm
 4538 ?        00:00:00 nm-applet
 4554 ?        00:00:00 nm-system-setti

# ifstatus wlan0
    wlan0     device: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
    wlan0     DHCP client (dhcpcd) is running
              IPADDR='192.168.0.32'
              NETMASK='255.255.255.0'
              GATEWAYS='192.168.0.1'
              DNSSERVERS='192.168.0.1'
              REBINDTIME='756000'
              DHCPCHADDR='00:13:02:18:12:ac'
wlan0 is up
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:13:02:18:12:ac brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.32/24 brd 192.168.0.255 scope global wlan0
    inet6 fe80::213:2ff:fe18:12ac/64 scope link 
       valid_lft forever preferred_lft forever
    wlan0     IP address: 192.168.0.32/24
Configured routes for interface wlan0:
  169.254.0.0 - 255.255.0.0 wlan0  
Active routes for interface wlan0:
  192.168.0.0/24  proto kernel  scope link  src 192.168.0.32
  169.254.0.0/16  scope link
  default via 192.168.0.1
1 of 1 configured routes for interface wlan0 up
bssid=00:04:0e:a4:4f:a7
ssid=>manus manum lavat<
id=0
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.0.32


Comment 27 Casual J. Programmer 2008-06-22 06:45:50 UTC
Created attachment 223581 [details]
Screenshot of gnome-main-menu Network:
Comment 28 Magnus Boman 2008-06-22 07:03:32 UTC
Please run nm-tool as yourself, not as root. Also, ps aux|grep -i network would help and perhaps ifconfig
From your screenshot, it looks like NM is actually running (or the applet would not show in the panel).
Comment 29 Casual J. Programmer 2008-06-22 07:19:52 UTC
> nm-tool

** (process:6266): WARNING **: nm_object_get_property: Error getting 'WirelessHardwareEnabled' for /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files


NetworkManager Tool

State: unknown



NetworkManager appears not to be running (could not get its state).

> ps aux|grep -i network
root      4900  0.0  0.0   1840   272 ?        Ss   08:21   0:00 /sbin/dhcpcd -D -K -N -t 999999 -h workstation6l -c /etc/sysconfig/network/scripts/dhcpcd-hook wlan0
1001      6273  0.0  0.0   3064   752 pts/2    R+   09:14   0:00 grep -i network

# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:13:02:18:12:AC  
          inet addr:192.168.0.32  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::213:2ff:fe18:12ac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17462 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14974 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17261206 (16.4 Mb)  TX bytes:3659796 (3.4 Mb)

> From your screenshot, it looks like NM is actually running (or the applet 
> would > not show in the panel).

Where do you see the applet in the panel ?

For whatever reason nm-applet and nm-system-settings are always started, even though NM has been deselected in yast2 lan in favor of ifup.



Comment 30 Magnus Boman 2008-06-22 08:00:45 UTC
Found the issue. The fix that went in to originally correct this works fine. The new bug is in gtop_get_first_active_device_info.

Comment 31 Magnus Boman 2008-06-24 01:18:20 UTC
Can someone try this patch and let me know if it works. I can't get my wlan up and running with ifup for some reason. This basically adds a check to see if the nic has an ip address.

Index: main-menu/src/network-status-agent.c
===================================================================
--- main-menu/src/network-status-agent.c	(revision 471)
+++ main-menu/src/network-status-agent.c	(working copy)
@@ -305,7 +305,8 @@
 		glibtop_get_netload (&net_load, networks[i]);
 
 		if (CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_RUNNING)
-			&& !CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_LOOPBACK))
+			&& !CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_LOOPBACK)
+			&& net_load.address)
 		{
 			sock_fd = iw_sockets_open ();
 
Comment 32 Casual J. Programmer 2008-06-24 04:22:13 UTC
Looks much better now :-) see screenshot.
Comment 33 Casual J. Programmer 2008-06-24 04:23:20 UTC
Created attachment 223905 [details]
screenshot of gnome-main-menu ( Computer/Network: )
Comment 34 Magnus Boman 2008-06-24 07:29:33 UTC
Federico,
Can I commit?
Comment 35 Federico Mena Quintero 2008-06-24 19:53:13 UTC
Yes, please!  And thanks again for debugging this.  I'll keep the bug open to remind myself that I need to put the patch in our gnome-main-menu package (I'll pull the patch from svn once you commit it there).
Comment 36 Magnus Boman 2008-06-24 21:48:18 UTC
Comitted.
Comment 37 Casual J. Programmer 2009-01-14 17:37:56 UTC
OK, closing as in 11.1 it's working properly. Maybe a backport is necessary for 11.0 ?