14

For some reason I seem to get disconnected from my wifi as noted by the nm-applet going to the disconnected icon. When I hover the mouse it says networking disabled. When I click on enable networking, nothing happens and I am forced to reboot to get my wifi back.

kreuger@Robbies-Laptop:~$ lspci -knn | grep Net -A2
02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
    Subsystem: Lenovo Device [17aa:30a1]
    Kernel driver in use: ath9k

kreuger@Robbies-Laptop:~$ rfkill list  
0: ideapad_wlan: Wireless LAN  
    Soft blocked: no  
    Hard blocked: no  
1: phy0: Wireless LAN  
    Soft blocked: no  
    Hard blocked: no  

kreuger@Robbies-Laptop:~$ uname -a
Linux Robbies-Laptop 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:50 UTC 2015 i686 i686 i686 GNU/Linux

Not sure why it says i686 so many times.

6
  • Try rfkill unblock. It also might be a problem with the network manager. Download Wicd Network Manager from the Ubuntu Software Center.
    – kalpetros
    Jul 22, 2015 at 1:00
  • Please edit your question and add output of lspci -knn | grep Net -A2 terminal command.
    – Pilot6
    Jul 22, 2015 at 8:32
  • I used wicd for a while but for some reason (I don't remember why now) it stopped working.
    – Rob Fitz
    Jul 23, 2015 at 20:12
  • Please add output of rfkill list.
    – Pilot6
    Jul 23, 2015 at 20:19
  • What is Ubuntu version? And output of uname -r.
    – Pilot6
    Jul 23, 2015 at 20:29

2 Answers 2

26

try these commands

These commands will delete the file where network state is stored and restarts the service forcefuly.

sudo rm -f /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager restart
5
  • Don't post code without any explanation about why and how it helps.
    – guntbert
    Jul 22, 2015 at 8:29
  • Ok, this, as barbaric as sudo -f could look, seem to definitely work for eth/wlan disappear with the same driver on 16LTS; good job
    – Blag
    Nov 21, 2016 at 9:14
  • @cafebabe1991 -- thank you man it works for me after struggling for almost 1 hr without internet Jul 27, 2017 at 8:37
  • to restart the networking, is it important to delete the state file?
    – Thufir
    Jul 17, 2018 at 4:24
  • 1
    This works for me. For the record, (on Ubuntu 14.04.5 32-bit), all I have to do is to restart the network-manager service. No need to remove the state file Sep 20, 2018 at 21:45
4

This command solved for me:

sudo nmcli n on

nmcli is the network manager client, n stands for networking and on means that the command must turn networking back on.

If the command above does not solve the issue, run this command:

sudo systemctl start NetworkManager.service

...and then run sudo nmcli n on again.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .