KnetworkManager fails to connect wlan, but ifup method works

I am struggling to use knetworkmanager.
After installing the rpms compat-wireless and kernel-firmware my wireless card
(RealTek RTL8188CE on a new lenovo T520i) works on opensuse11.4 (64bit) - thanks to the developers for this!

However, it only works when configured by yast to use the traditional ifup.

When I tried to use knetworkmanager, it just won’t connect to my network.
There is no feedback via the knetworkmanager gui, just nothing.
It does show all publicaly viewable SSIDs, so it does successfully do a scan.
ifconfig shows that we get no ip address though, so it really is getting nowhere.

Looking in /var/log/NetworkManager I see…


Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): new 802.11 WiFi device (driver: 'rtl8192ce' ifindex: 3)
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): now managed
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): device state change: 1 -> 2 (reason 2)
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): bringing up device.
Sep 24 12:24:35 jmbs nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/netcontrol_services' exited with error status 127.
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): preparing device.
Sep 24 12:24:35 jmbs NetworkManager[1394]: <info> (wlan0): deactivating device (reason: 2).
Sep 24 12:24:35 jmbs NetworkManager[1394]: supplicant_interface_acquire: assertion `mgr_state == NM_SUPPLICANT_MANAGER_STATE_IDLE' failed
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;info&gt; modem-manager is now available
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;warn&gt; bluez error getting default adapter: The name org.bluez was not provided by any .service files
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;info&gt; Trying to start the supplicant...
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;info&gt; (wlan0): supplicant manager state:  down -&gt; idle
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;info&gt; (wlan0): device state change: 2 -&gt; 3 (reason 0)
Sep 24 12:24:35 jmbs NetworkManager[1394]: &lt;info&gt; (wlan0): supplicant interface state:  starting -&gt; ready

My guess is the /etc/NetworkManager/dispatcher.d/netcontrol_services’ exited line indicates the problem.

But I cannot find anything helpful on the web regarding this.
Can anyone help?

Thanks!

On 09/24/2011 09:16 AM, jonb62 wrote:

> My guess is the -/etc/NetworkManager/dispatcher.d/netcontrol_services’
> exited- line indicates the problem.

That section is openSUSE specific, and yours is the first report of a problem
there. Error 127 usually means that something was not found.

First of all, please check that /etc/sysconfig/network/scripts/ exists and
contains files and links. Use ‘ls -l’ and check that the files are owned by
“root:root” and that they are executable.

I do not have any suggested fix other than reinstalling NetworkManager using
YaST => Software Management.

Thanks for the fast response.

Files and links are present in there, and have execute perms, and are owned by root with group root.
Will attempt a reinstallation of networkmanager asap… (unless anyone else has a bright idea!).
Have tried looking at the script concerned that fails, but though it’s short, I don’t know the
parameters passed to it so am not sure why it fails.

OK, so I’ve uninstalled NetworkManager (and related rpms) and reinstalled, and the problem is identical.

So there seems to be a defect associated with the script /etc/NetworkManager/dispatcher.d/netcontrol_services.
Since I’m not sure what the parameters that are passed to it are, I am struggling to debug the problem.
Does anyone have any knowledge in this area that can help?

Interestingly, my old laptop (also a thinkpad) also has a similar problem. I am only running opensuse 11.3
on that one, and the /var/log/NetworkManager log does not show any errors to me, but it also does not
work at all with Knetworkmanager, but does work fine with ifup.

So, does anyone have any ideas? Thanks in advance…

JonB

Bump! I’m having the same problem with knetworkmanager-kde3 on OpenSUSE 12.1. I’m not sure how to start to debug NetworkManager, so any hints are appreciated.

I had same problem, I don’t know how to describe the situation
some SSIDs just can’t connect, but others are OK
so I switch to ifup method and install wicd and wicd-kde to control wireless network

Happy to see this thread
I look at the script /etc/NetworkManager/dispatcher.d/netcontrol_services
knowing that if no /etc/sysconfig/network/ this script will exit
so I try move /etc/sysconfig/network/ to /etc/sysconfig/network-orig as a backup

mv etc/sysconfig/network etc/sysconfig/network-orig

and restart computer
SEEM solve the problem
You may try it