When I boot my Lenovo ThinkPad X121e (Intel® Core™ i3-2367M CPU @ 1.40GHz × 4) with Ubuntu 11/10 or 12/04 LTS, wake it up from standby or hibernation the wireless connection is always disabled.
I can enable it by right-clicking on the network manager icon in the panel and click on “Enable Wireless”. After I’ve done that the wireless works flawlessly.
I’ve been looking for a solution for it, especially since it is not clear to me whether this is an error in the network manager. After some research on the Ubuntu forum, I found an interesting thread, which describes the solution for my problem.
Here now the fix, to enable WiFi after login automatically:
1. Create a new file, called enable_wifi.sh:
$ sudo touch /etc/profile.d/enable_wifi.sh
2. Edit shell script enable_wifi.sh:
$ sudo gedit enable_wifi.sh
3. Insert command:
#!/bin/bash #script to eanble WiFi after login nmcli nm wifi on
4. Save the changes
5. Reboot your sytem
This makes WiFi enabled whenever I log in.