Wireless network doesn't auto-connect [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Re: Wireless network doesn't auto-connect [Solved]

Postby Ymo » Thu Oct 20, 2011 0:48

I got same problem, fresh install of SL7 Xfce.

nm-applet + NetworkManager does not remember settings, I cant add 3G connection, I can connect to wifi network but only by typing root password. nm-applet manager looks wird (default gtk+2 theme, not like rest of the system)

Error log: http://pastebin.com/7hhCRtW1
Ymo
Baby Hen
 
Posts: 2
Joined: Thu Oct 20, 2011 0:44
Location: middle of nowhere

Re: Wireless network doesn't auto-connect [Solved]

Postby kashiura » Thu Oct 20, 2011 4:24

I admit I was a little hasty proposing this issue "solved". In fact, it was really far from solved.

As I said on my last post, killall and sudo NetworkManager process worked -- and now I don't know why -- for my home wifi network, but I realized only latter that it didn't worked for all other networks.

So I tried something else, and now NetworkManager auto-connect to every wifi I once connect successfully.

I had already noticed the problem lied within the "ifnet" plugin, so I disabled it on "/etc/NetworkManager/nm-system-settings.conf", leaving only the "keyfile" plugin, as the following:

Code: Select all
[main]
plugins=keyfile


This was enough to make almost all wifi connections be remembered by NetworkManager. The "keyfile" plugin creates a file on "/etc/NetworkManager/system-connections" for every wifi connection accessed, then use this file latter to connect automatically when this wifi network is again available, as these two examples, for WEP and WPA passwords (the parameters' list can be found on: http://projects.gnome.org/NetworkManager/developers/api/08/settings-spec-08.html)

Code: Select all
[connection]
id=Auto WIFI-A
uuid=
type=802-11-wireless

[802-11-wireless]
ssid=WIFI-A
mode=infrastructure
mac-address=
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=none
auth-alg=open
wep-key0=wifi-a-passw
wep-key-type=1

[ipv4]
method=auto

[ipv6]
method=auto


Code: Select all
[connection]
id=Auto WIFI-B
uuid=
type=802-11-wireless

[802-11-wireless]
ssid=WIFI-B
mode=infrastructure
mac-address=
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=wifi-b-password

[ipv4]
method=auto

[ipv6]
method=auto


But this worked for most connections: until today there was one on my workplace that did not connected, not even manually, no matter how much I tried. It kept refusing the wpa password, although it was correct -- and this network used to work perfectly before all changes I've done on NetworkManager. It seemed, as I investigated, there was a "conflict" (or something alike) between the keyfile and "/etc/wpa_supplicant/wpa_supplicant.conf". The only -- yet unsophisticated -- solution I could imagine was turning off the wpa_supplicant service, what I've done using the "Services" application available on Programs/Others.

Now all wifi networks I use (home, university, work etc) are working perfectly and connecting automatically. I hope it works for you all either.
kashiura
Baby Hen
 
Posts: 6
Joined: Sat Oct 15, 2011 0:03
Location: São Paulo, Brasil

Re: Wireless network doesn't auto-connect [Solved]

Postby Thema89 » Thu Oct 20, 2011 15:43

Well done kashiura !! It seems that you've found "the guilty", thank you :D

I've just tested your workaround fix and it works fine... but let me give you a little hint:
you can disable that plugin by setting to false his boolean flag instead of phisically remove it from config file...
just set managed flag to false and you're done !


Here's a very simple walktrough if someone is interested in kashiura's method:

Press ALT+F2, write the following command and press enter:
Code: Select all
sudo gedit /etc/NetworkManager/nm-system-settings.conf

edit the "managed" flag: set it to FALSE as following:
Code: Select all
[main]
plugins=ifnet,keyfile

[ifnet]
managed=false
auto_refresh=false


You're done! :alien:


kashiura wrote:But this worked for most connections: until today there was one on my workplace that did not connected, not even manually, no matter how much I tried. (...) It seemed, as I investigated, there was a "conflict" (or something alike) between the keyfile and "/etc/wpa_supplicant/wpa_supplicant.conf". The only -- yet unsophisticated -- solution I could imagine was turning off the wpa_supplicant service, what I've done using the "Services" application available on Programs/Others.

I haven't noticed this issue yet, but I'll keep investigating if something similar happens to me too :wink:
God's in his Heaven. All's right with the world.
Image
Image
Image
Image
User avatar
Thema89
Baby Hen
 
Posts: 11
Joined: Mon Oct 17, 2011 16:54
Location: Italy (Roma)

Re: Wireless network doesn't auto-connect [Solved]

Postby Ymo » Thu Oct 20, 2011 17:32

This solution solves only auto connection problem.
But still I cant connect to 3G network. Connection is listed in "cell connection" but after left clikc on nm-applet icon I see only wired and wireless connection, no 3G/cell.
Ymo
Baby Hen
 
Posts: 2
Joined: Thu Oct 20, 2011 0:44
Location: middle of nowhere

Re: Wireless network doesn't auto-connect [Solved]

Postby kashiura » Thu Oct 20, 2011 19:34

I'm glad it worked for you either, Thema89. And thanks for the tip concerning the much more elegant edition of nm-system-settings.conf. I'm no expert, I told I done this the unsophisticated way.

The trouble with 3g connections (Ymo) are out of my grasp. I have no 3g network on my laptop. And the problem seems really not the same kind of the original one of this issue, so I suggest Ymo to address a new specific post in the forum.
kashiura
Baby Hen
 
Posts: 6
Joined: Sat Oct 15, 2011 0:03
Location: São Paulo, Brasil

Re: Wireless network doesn't auto-connect [Solved]

Postby joe74 » Sat Oct 22, 2011 20:01

Thema89 wrote:Well done kashiura !! It seems that you've found "the guilty", thank you :D


Thank you, both of you. It worked for me :)
joe74
Baby Hen
 
Posts: 18
Joined: Sat Oct 22, 2011 19:55
Location: Nicaragua

Re: Wireless network doesn't auto-connect [Solved]

Postby aquarius » Sun Oct 23, 2011 22:25

I've filed this as a bug. Hope it would be fixed and new users won't experience this problem :)
Gnome2 is dead! Long live... E17!

System76 Gazelle Professional:
Intel Core i7-2670QM
Nvidia GeForce GTX 560M
16GB DDR3 SDRAM
750GB HDD + 120GB SSD
15.6" Full HD LED-Backlit Matte Display

powered by Sabayon amd64 E17
User avatar
aquarius
Simple Hen
 
Posts: 75
Joined: Sun Jun 26, 2011 22:17
Location: L'viv, Ukraine

Re: Wireless network doesn't auto-connect [Solved]

Postby mhzuchini » Mon Oct 24, 2011 4:04

Hi, fellows.

I can confirm the solution:
Thema89 wrote:Well done kashiura !! It seems that you've found "the guilty", thank you :D


It worked pretty well for me. Fresh install, SL7-amd64-G, the problem becomes obvious at first as I tried to auto-connect.
Thema89 suggestion of simply disable the ifnet module works pretty well.

Thanks all for the tips.
______
Sony Vaio VGN-NW150AJ - 4GB RAM - Sabayon Linux amd64 8 GNOME
Linux 3.1.0-sabayon #1 SMP Sat Dec 31 00:06:24 UTC 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz GenuineIntel GNU/Linux
User avatar
mhzuchini
Simple Hen
 
Posts: 46
Joined: Mon Aug 20, 2007 18:46
Location: Campinas, Brazil

Re: Wireless network doesn't auto-connect [Solved]

Postby mhzuchini » Mon Oct 24, 2011 5:07

... as soon you "think" you won, as fast the problems come out...

New problem is: after disable ifnet, wireless auto-connect flawlessly. But, if I disable the wireless (through network applet or through the hardware switch) it simply dies forever... wlan0 simply disappeared.
I've tried to switch on and off many times, tried through Gnome applet (which insists on the "Airplane Mode -> ON", no matter how many times I switched it to OFF).

Found in /var/log/messages that wlan0 was apparently removed:
Code: Select all
Oct 24 01:11:31 localhost NetworkManager[7336]: <info> (wlan0): device state change: activated -> unavailable (reason 'none') [100 20 0]
Oct 24 01:11:31 localhost NetworkManager[7336]: <info> (wlan0): deactivating device (reason 'none') [0]
Oct 24 01:11:31 localhost dhcpcd[7729]: wlan0: removing interface
Oct 24 01:11:31 localhost avahi-daemon[7487]: Withdrawing address record for 192.168.1.103 on wlan0.
Oct 24 01:11:31 localhost avahi-daemon[7487]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.103.
Oct 24 01:11:31 localhost avahi-daemon[7487]: Interface wlan0.IPv4 no longer relevant for mDNS.
Oct 24 01:11:31 localhost NetworkManager[7336]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 7729
Oct 24 01:11:31 localhost kernel: [  993.155905] wlan0: deauthenticating from 00:1d:0f:ee:f4:ac by local choice (reason=3)
Oct 24 01:11:31 localhost NetworkManager[7336]: <info> (wlan0): removing resolv.conf from /sbin/resolvconf
Oct 24 01:11:31 localhost NetworkManager[7336]: <info> (wlan0): taking down device.
Oct 24 01:11:31 localhost avahi-daemon[7487]: Interface wlan0.IPv6 no longer relevant for mDNS.
Oct 24 01:11:31 localhost avahi-daemon[7487]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::224:2bff:feef:befd.
Oct 24 01:11:31 localhost avahi-daemon[7487]: Withdrawing address record for fe80::224:2bff:feef:befd on wlan0.
Oct 24 01:11:31 localhost NetworkManager[7336]: <warn> (pid 7729) unhandled DHCP event for interface wlan0

I tried ifconfig:
Code: Select all
calvin ~ # ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill

The problem disappears on reboot, but is nonsense reboot your computer only to have your wireless card back.
Any clues?
______
Sony Vaio VGN-NW150AJ - 4GB RAM - Sabayon Linux amd64 8 GNOME
Linux 3.1.0-sabayon #1 SMP Sat Dec 31 00:06:24 UTC 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz GenuineIntel GNU/Linux
User avatar
mhzuchini
Simple Hen
 
Posts: 46
Joined: Mon Aug 20, 2007 18:46
Location: Campinas, Brazil

Re: Wireless network doesn't auto-connect [Solved]

Postby operative.terminus » Sun Nov 13, 2011 15:28

Thema89 wrote:
Here's a very simple walktrough if someone is interested in kashiura's method:

Press ALT+F2, write the following command and press enter:
Code: Select all
sudo gedit /etc/NetworkManager/nm-system-settings.conf

edit the "managed" flag: set it to FALSE as following:
Code: Select all
[main]
plugins=ifnet,keyfile

[ifnet]
managed=false
auto_refresh=false


You're done! :alien:



Fixed for me! Thank you :D
User avatar
operative.terminus
Baby Hen
 
Posts: 4
Joined: Sun Nov 13, 2011 15:08

PreviousNext

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 0 guests