Fixing Wireless After Crash in Lucid

Warning - Old Content

This post is quite old, and it might not apply anymore, or maybe there's a better way to do the same thing nowadays. Take with a big grain of salt.

In Ubuntu Lucid, there is apparently an infrequent problem with NetworkManager not coming back properly when waking up a laptop from sleep/hibernate. Even though it seemed like the wireless driver was somehow no longer working, it was actually due to an inconsistent state being saved/restored. No amount of stopping/restarting services or reloading modules helped, since the config claimed to be working as expected.

The basic fix:

  1. Edit /var/lib/NetworkManager/NetworkManager.state
  2. Change the NetworkingEnabled line to be: NetworkingEnabled=true
  3. Restart networkmanager: sudo service network-manager restart

It would be very helpful if KNetworkManager provided a GUI way to detect/fix this - I may have a go at adding it.

Full bug report