I have tried all afternoon to fix this, but now I give up. I am trying to set up an old XP PC with Lubuntu 14.04. It works perfectly fine, except for the wireless connection. Connecting with ethernet works fine.
I have a D-Link DWL-G122, trying to connect to a Fritz!Box 7170 with WPA (TKIP) – I switched from WPA + WPA2, but no effect.
I have tried with wicd, where it hangs at trying to optain an ip address from the dhcp server. i tried a static IP, it did connect to the wifi, but I had no internet connection then. Also, I didn't like the hack, since it's my parents PC, where I'd like to have everything set up properly for when I am not around.
I removed wicd, and with the network-manager service stopped, i tried it with terminal and
sudo dhclient -v wlan0 but I still could not get an ip address. I tried with the network-manager (removed and reinstalled), but I just can't get it to connect.
When I click the icon in the tray, the connection properties pop up and in the connection is only listed lo and eth0. My
/etc/network/interfaces looks like this:
interfaces(5) file used by ifup(8) and ifdown(8)
iface lo inet loopback
iface wlan0 inet dhcp
#iface eth0 inet dhcp
#iface ath0 inet dhcp
if you need any output of anything, I will do that.
How do I make the connection?
The outcome of the wireless_script (as suggested) can be found here http://pastebin.ubuntu.com/7281731/
ieee80211 phy0: rt2x00lib_autowakeup: Error - Device failed to wakeup
ieee80211 phy0: rt2500usb_set_device_state: Error - Device failed to enter state 3 (-16)
can be found repeating. So I googled the first one and found that proposal:
sudo /etc/init.d/network-manager stop
sudo iwconfig wlan0 power off
sudo service network-manager restart
And it works, right after the second line. I do have to click the tray icon and select wlan0, but then it works.
However I have to do that every time after I login. And it takes now 2 minutes more to boot, because lubuntu tries to configure the network.