Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Knetworkmanager scans networks but can't connect...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ZHQ
n00b
n00b


Joined: 31 Dec 2009
Posts: 59
Location: Here

PostPosted: Fri Jun 17, 2011 8:40 am    Post subject: [SOLVED] Knetworkmanager scans networks but can't connect... Reply with quote

Hi guys, I'm currently in the middle of the huge mess that is KDE wireless network managers.

I'm trying to get Knetworkmanager working. I followed the instructions on the gentoo wireless wiki about it: http://en.gentoo-wiki.com/wiki/KNetworkManager

After some struggling, I got it to start automatically when I log in and it also recognizes my wireless interface. When I click on it, it shows me a (correct) list of networks. I presume that it's able to scan, etc properly then. However, when I click on my WEP network and enter in my passkey and then hit connect, it does absolutely nothing. The network is not stored in the manager and knetworkmanager remains "unconnected". I found a few topics that have the same problem on here and off of google, but all of the solutions I tried did nothing to change it.

I originally thought it was a problem with wpa_supplicant, since wpa_gui couldn't contact wpa_supplicant. I added "ctrl_interface=users" to my /etc/conf.d/net file and it was able to see my interface and scan as well. However, it also did nothing when I tried to connect. KnetworkManager is still the same. (I guess I assumed that if I fixed wpa_supplicant, Knetworkmanager would also be fixed. Emerge made it seem like knetworkmanager depends on wpa_supplicant) This leads me to believe two things:

1) The problem is affecting wpa_supplicant and knetworkmanager so it is probably a more general issue, most likely to do with my xorg conf or wireless settings?

2) wpa_supplicant has nothing to do with knetworkmanager

Which leads me to a side question. Why does knetworkmanager pull in the wpa_supplicant package when emerge'd and can I emerge knetworkmanager without emerge wpa_supplicant or ppp?

Any help on getting the managers to connect to networks would be excellent. Thanks!

PS: I have both wireless tools and wpa on my machine, with wpa taking priority as specified in /etc/conf.d/net. Also, my user is in the plugdev and wheel groups.


Last edited by ZHQ on Fri Jul 22, 2011 4:50 am; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sun Jun 19, 2011 10:41 pm    Post subject: Reply with quote

Do you have a /etc/init.d/net.wlan0 init script? If yes, udev will start it automatically and it will cause a conflict with NetworkManager. Remove or blacklist the script.

Also check that
Code:
# ck-list-sessions
shows your session as active.
Back to top
View user's profile Send private message
ZHQ
n00b
n00b


Joined: 31 Dec 2009
Posts: 59
Location: Here

PostPosted: Tue Jun 21, 2011 7:04 am    Post subject: Reply with quote

I've removed net.wlan0 and net.eth0 from any runlevels that might be started by OpenRC. I've also have:

Code:
rc_hotplug="!net.eth* !net.wlan*"


in my /etc/rc.conf.

Also,

Code:

$ ck-list-sessions
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-06-21T01:10:16.936057Z'
        login-session-id = '4294967295'


Thanks for the response! :o
Back to top
View user's profile Send private message
ZHQ
n00b
n00b


Joined: 31 Dec 2009
Posts: 59
Location: Here

PostPosted: Sat Jun 25, 2011 2:42 am    Post subject: Reply with quote

Um, sorry for the noise but... bump. :P
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jun 25, 2011 2:59 am    Post subject: Reply with quote

chithanh wrote:
Do you have a /etc/init.d/net.wlan0 init script? If yes, udev will start it automatically


ZHQ wrote:
I've removed net.wlan0 and net.eth0 from any runlevels that might be started by OpenRC.


removing script != removing script from runlevel

if the script is there at all, udev will start it automatically
you need to rm the script (or the symlink)
Back to top
View user's profile Send private message
ZHQ
n00b
n00b


Joined: 31 Dec 2009
Posts: 59
Location: Here

PostPosted: Sun Jun 26, 2011 11:56 pm    Post subject: Reply with quote

Ah I see. I removed the symlinks to net.wlan0 and net.eth0. I restarted and the result was the same. :(

Thanks for the reply!
Back to top
View user's profile Send private message
ZHQ
n00b
n00b


Joined: 31 Dec 2009
Posts: 59
Location: Here

PostPosted: Fri Jul 22, 2011 4:50 am    Post subject: Reply with quote

Solution was here: https://forums.gentoo.org/viewtopic-t-885434.html

Go figure...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum