Why is my wireless adapter not automatically activating on login?

Asked by NoahY

Recently, my wireless adapter has ceased its normal routine of activating on login. Now I have to push the keyboard button that activates it every time I log in. Here's the relevant log, I think:

Jul 7 11:06:56 my-desktop NetworkManager: <info> Found radio killswitch /org/freedesktop/Hal/devices/platform_acer_wmi_rfkill_acer_wireless_wlan
Jul 7 11:06:56 my-desktop NetworkManager: <info> Found radio killswitch /org/freedesktop/Hal/devices/pci_8086_4232_rfkill_phy0_wlan
Jul 7 11:06:56 my-desktop NetworkManager: <info> (eth5): new Ethernet device (driver: 'ATL1E')
Jul 7 11:06:56 my-desktop NetworkManager: <info> (eth5): exported as /org/freedesktop/Hal/devices/net_00_23_8b_5b_c1_13
Jul 7 11:06:56 my-desktop NetworkManager: <info> (wlan4): driver supports SSID scans (scan_capa 0x01).
Jul 7 11:06:56 my-desktop NetworkManager: <info> (wlan4): new 802.11 WiFi device (driver: 'iwlagn')
Jul 7 11:06:56 my-desktop NetworkManager: <info> (wlan4): exported as /org/freedesktop/Hal/devices/net_00_21_6b_50_f8_12
Jul 7 11:06:56 my-desktop NetworkManager: <info> Trying to start the supplicant...
Jul 7 11:06:56 my-desktop NetworkManager: <info> Trying to start the system settings daemon...
Jul 7 11:06:56 my-desktop NetworkManager: <info> Wireless now disabled by radio killswitch

... some other stuff, then:

Jul 7 11:07:01 my-desktop NetworkManager: <info> (eth5): device state change: 1 -> 2
Jul 7 11:07:01 my-desktop NetworkManager: <info> (eth5): bringing up device.
Jul 7 11:07:01 my-desktop NetworkManager: <info> (eth5): preparing device.
Jul 7 11:07:01 my-desktop NetworkManager: <info> (eth5): deactivating device (reason: 2).
Jul 7 11:07:01 my-desktop NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 7 11:07:01 my-desktop NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 7 11:07:01 my-desktop NetworkManager: <info> (wlan4): device state change: 1 -> 2
Jul 7 11:07:01 my-desktop NetworkManager: <info> (wlan4): bringing up device.
Jul 7 11:07:01 my-desktop NetworkManager: <info> (wlan4): deactivating device (reason: 2).

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#1

Right click on the network manager icon and select edit connections. Go to the wireless tab. Select the name of the connection and select edit. At the top of the window that appears should have connect automatically select that box.

Hope that helps
Shane

Revision history for this message
NoahY (noahy) said :
#2

Thanks for replying, but you are misunderstanding the problem. The wireless adapter itself is off, and it doesn't automatically turn on. I am well aware of how to automatically connect to a wifi network IF the wireless adapter itself turns on as expected on startup.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

run:

gksudo gedit /etc/network/interfaces &

and add the line:

auto wlan4

You can check it IS wlan4 by running:

ifconfig

If it isn't wlan4, change the line I gave to suit. Then save the file and close gedit. The adapter should now come up automagically

If not, you can alays make a script:

#!/bin/sh
ifup wlan4

Which you can then add to the last rc level (so we know all drivers and whatnot are loaded)

Its a bit hacky but works, the intrfaces file is much more graceful.

Revision history for this message
NoahY (noahy) said :
#4

@actionparsnip - Thanks for the tip, but the first one didn't work. Maybe I did it wrong; here's my edited /etc/network/interfaces:

auto lo
auto wlan4
iface lo inet loopback

As for the second suggestion, I don't understand what the "last rc level" is, let alone be able to add something to it :)

Revision history for this message
Al Butler (al-butler) said :
#5

Have you tried disabling networkmanager and setting up connection manually?

if you do this the lines in your /etc/network/interfaces should look something like this:

auto wlan4
iface wlan4 inet dhcp

If you are using WPA for your wireless connection you will need to add these lines:

wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf

Then configure the wpa_supplicant.conf:

sudo nano /etc/wpa_supplicant.conf

and add these lines if you are using WPA-PSK:

ctrl_interface=/var/run/wpa_supplicant

network={
 ssid="my wireless ssid"
 scan_ssid=1
 proto=WPA
 key_mgmt=WPA-PSK
 psk="my wpa passphrase"
}

For configuration for other types of encryption see:
http://hostap.epitest.fi/wpa_supplicant/
&
http://linux.die.net/man/5/wpa_supplicant.conf

Revision history for this message
NoahY (noahy) said :
#6

@Al - Thank you, I would rather not have to disable Network-Manager... I've tried putting the lines in the interfaces file, but it didn't work, I assume because network manager was still enabled? Anyway, isn't there some way to get NetworkManager to start up the wlan4 itself? All it takes is for me to push the button on the keyboard and it is on.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

the interfaces file superceeds the network manager app.

Revision history for this message
NoahY (noahy) said :
#8

@actionparsnip,

I realized that I misunderstood the problem; it is not the network adapter that is off, it is wireless in general that is disabled. When I connect a usb wifi adapter, it still requires me to push the keyboard button for it to work (the notification applet says "wireless disabled" until I do). the internal uses wlan4 and iwlagn driver, the usb uses wlan3 and the zd1211rw driver.

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.