[SOLVED] Restarting X kills wireless

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
aparigraha

[SOLVED] Restarting X kills wireless

Post by aparigraha »

I have a USB wireless card that has worked well on Ubuntu since 8.04, but now I just switched over to Linux Mint KDE Julia 64 and I got problems when I log out or restart X (through the enabled classic CTRL+ALT+BACKSPACE).

This kills my wireless connection, and I can't seem to get it working again. Both Network-manager and WICD keep asking me for the WPA2 pass again, but it will not accept it. WICD claims it is the wrong key when authenticating. Network-manager just keeps doing nothing.

wicd.log gives me this:

Code: Select all

2011/08/19 22:54:01 :: setting wireless interface wlan0
2011/08/19 22:54:01 :: setting wired interface eth0
2011/08/19 22:54:01 :: setting wpa driver wext
2011/08/19 22:54:01 :: setting automatically reconnect when connection drops 1
2011/08/19 22:54:01 :: setting backend to external
2011/08/19 22:54:01 :: Setting dhcp client to 0
2011/08/19 22:54:31 :: Connecting to wireless network IRR
2011/08/19 22:54:31 :: attempting to set hostname with dhclient
2011/08/19 22:54:31 :: using dhcpcd or another supported client may work better
2011/08/19 22:54:31 :: attempting to set hostname with dhclient
2011/08/19 22:54:31 :: using dhcpcd or another supported client may work better
2011/08/19 22:54:31 :: Putting interface down
2011/08/19 22:54:31 :: Releasing DHCP leases...
2011/08/19 22:54:31 :: attempting to set hostname with dhclient
2011/08/19 22:54:31 :: using dhcpcd or another supported client may work better
2011/08/19 22:54:32 :: Setting false IP...
2011/08/19 22:54:32 :: Stopping wpa_supplicant
2011/08/19 22:54:32 :: Flushing the routing table...
2011/08/19 22:54:32 :: Putting interface up...
2011/08/19 22:54:34 :: Generating psk...
2011/08/19 22:54:34 :: Attempting to authenticate...
2011/08/19 22:55:09 :: wpa_supplicant authentication may have failed.
2011/08/19 22:55:09 :: connect result is Failed
2011/08/19 22:55:09 :: exiting connection thread
2011/08/19 22:55:09 :: Sending connection attempt result bad_pass
2011/08/19 22:55:09 :: attempting to set hostname with dhclient
2011/08/19 22:55:09 :: using dhcpcd or another supported client may work better
2011/08/19 22:55:10 :: attempting to set hostname with dhclient

lsusb
:

Code: Select all

Bus 001 Device 003: ID 07d1:3c03 D-Link System AirPlus G DWL-G122 Wireless Adapter(rev.C1) [Ralink RT73]
I've been using rt73usb earlier and lsmod | grep rt gives me this:

Code: Select all

rt73usb                24308  0 
rt2x00usb              11316  1 rt73usb
rt2x00lib              31575  2 rt73usb,rt2x00usb
led_class               3393  1 rt2x00lib
mac80211              266657  2 rt2x00usb,rt2x00lib
cfg80211              170293  2 rt2x00lib,mac80211
parport_pc             30086  1 
parport                37032  3 ppdev,lp,parport_pc
crc_itu_t               1739  2 rt73usb,firewire_core
I try to ifdown , rmmod, ifup and sudo modprobe... not working.

A brief look in syslog gives me this:

Code: Select all

Aug 19 22:55:02 statch kernel: [ 1496.147128] wlan0: authenticate with 00:23:69:c0:c4:50 (try 1)
Aug 19 22:55:02 statch kernel: [ 1496.150785] wlan0: authenticated
Aug 19 22:55:02 statch kernel: [ 1496.152256] wlan0: associate with 00:23:69:c0:c4:50 (try 1)
Aug 19 22:55:02 statch kernel: [ 1496.154390] wlan0: RX AssocResp from 00:23:69:c0:c4:50 (capab=0x411 status=0 aid=1)
Aug 19 22:55:02 statch kernel: [ 1496.154395] wlan0: associated
Aug 19 22:55:02 statch wpa_supplicant[1183]: No network configuration found for the current AP
Aug 19 22:55:02 statch kernel: [ 1496.222560] wlan0: deauthenticating from 00:23:69:c0:c4:50 by local choice (reason=3)
Aug 19 22:55:02 statch wpa_supplicant[1183]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
But when I reboot everything works fine, but not when I log out and in again, or kill X through CTRL+ALT+BACKSPACE. Anyone got a clue... please help?!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mads

Re: Restarting X kills wireless

Post by mads »

If your wireless uses rt73usb module (run 'inxi -N' to be sure), I guess you should add it to /etc/modules:

Code: Select all

sudo su
echo rt73usb >> /etc/modules
exit
aparigraha

Re: Restarting X kills wireless

Post by aparigraha »

mads wrote:If your wireless uses rt73usb module (run 'inxi -N' to be sure), I guess you should add it to /etc/modules:

Code: Select all

sudo su
echo rt73usb >> /etc/modules
exit
Thx for the reply, but this just didn't work

inxi -N just gives me the mod for the Ethernet eth0 card which isn't relevant.
And I don't think that echo rt73usb >> /etc/modules would matter since I already have a working wireless network when booting and rebooting... but I could be wrong here.

I have been experiencing problems with network-manager and WPA on earlier KDE releases, so I just figured I would try un-installing those packages and only keep WICD.
And that just worked :D

This is what I completely removed:

modemmanager
network-manager
network-manager-openconnect
network-manager-openvpn
network-manager-pptp
network-manager-vpnc
knm-runtime
network-manager-kde
plasma-widget-networkmanagement


And then I made sure all the following packages were installed:

python-urwid
python-wicd
wicd
wicd-cli
wicd-curses
wicd-daemon
wicd-gtk



Rebooted... and I now have NO WIRELESS PROBLEMS when logging out and in again, or when killing X through CTRL+ALT+BACKSPACE.

SOLVED
randomizer

Re: [SOLVED] Restarting X kills wireless

Post by randomizer »

Wicd runs happily as a background daemon if you configure it right, and is totally independent of X. NetworkManager should be able to do the same but in Ubuntu it is probably not configured to run this way.
Locked

Return to “Networking”