Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 12.10 with Gnome 3.6 on a brand-new Samsung NP900X4C.

The installer detected the wireless adapter, took in the SSID and WPA passphrase, wrote these into /etc/network/interfaces and connected perfectly.

Once installation was finished I wanted to switch to using NetworkManager to manage the wireless adapter, since this is much more convenient than fiddling with /etc/network/interfaces every time I find a new hotspot.

Therefore I edited /etc/NetworkManager/NetworkManager.conf to set:

[ifupdown]
managed=true

When I rebooted NetworkManager, the problems started: - The NetworkManager tray applet changed from saying device not managed to device not ready - I lost all internet connectivity as wlan0 would not associate to the Access Point - if I set managed=false in NetworkManager.conf and restarted both NetworkManager and networking services from the command-line, the Gnome desktop "semi-crashed" and lost all its Window Decorations, the panel, the launcher and basically became unusable.

However if I restart the computer completely after setting managed=false, wlan0 once again works perfectly.

share|improve this question
    
In managed=false mode, wlan0 works after reboot because ifup configures it at boot time (if /e/n/i contains auto wlan0). In managed=true mode, ifup doesn't bring interfaces up automatically; but then NetworkManager should do so. I don't know why it said device not ready. –  jdthood Mar 20 '13 at 9:34

1 Answer 1

I ended up fixing this myself, see the exact steps below.

Note that there may be an easier solution but these steps definitely worked.

  1. Make sure network-manager is the latest version (I have 0.9.6.0-0ubuntu7 ). You can check this with: sudo dpkg -l | grep network-manager

  2. Right-click on Network Manager tray icon -> Edit Connections -> Wireless -> Add Manually add the parameters for connecting to your WLAN.

  3. Edit /etc/NetworkManager/NetworkManager.conf to set... [ifupdown] managed=true

    DO NOT restart network-manager service.

  4. Edit /etc/network/interfaces to deactivate the auto-start of your Wireless interface (probably called wlan0).
    For example: From this: auto wlan0 .... to this: #auto wlan0

    DO NOT restart networking service.

  5. Restart the whole computer: sudo shutdown -r now

  6. After reboot Network Manager should automatically connect to the WLAN, and should no longer say "Device not ready"

share|improve this answer
    
Interesting. Commenting out auto wlan0 should cause NetworkManager not to consider the interface an "autoconnect" interface. Yet you say that NetworkManager does bring it up automatically. Sounds like a bug. –  jdthood Mar 20 '13 at 9:37
    
Did you by any chance also define the wireless connection using the NM Connection Editor? –  jdthood Mar 20 '13 at 9:43
    
Guy, you are my savior: managed=true was exactly what I was sought for. My NM refuses to manage all a network connections, and I recalled that it was needed to turn it on in some config, but couldn't remember where. –  Hi-Angel Sep 6 at 15:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.