Linux: unable to detect and connect to wifi after sleep/unexpected shutdown





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















After my Ubuntu (18.04) machine went to sleep it is unable to connect to wireless networks. No wireless networks shows up in the GUI. I've tried most of the solutions presented to me after many Google queries but nothing does the trick. It is possible that the battery ran out as well during sleep which might've caused the problem.



I tried:



sudo service network-manager restart 
sudo systemctl restart network-manager


but to no avail.



sudo /etc/init.d/networking restart


gets stuck but eventually says "Failed to start Raise network interfaces."



I checked ifconfig -a which gave me five network interfaces. Before the malfunction I had three interfaces.
lo, enp0s31f6 and wlp1s0 existed before.
The newly added ones are enp0s31f6:avahi and wlp1s0:avahi.
All of the interfaces are UP but only the avahi interfaces has IP addresses.



I tried:



ifconfig <interface> down
ifconfig <interface> up


for all of the network interfaces (only lo says RUNNING right now but wlp used to before sleeping)



I tried changing /etc/network/interfaces to static and then back again



auto lo
iface lo inet loopback

auto wlp1s0
iface wlp1s0 inet dhcp

auto enp0s31f6
iface enp0s31f6 inet dhcp


I tried sudo iwlist scan which shows me the network I want to connect to. iwconfig has data for wlp1s0 but lo and enp0s31f6 says "no wireless extensions". Tx-Power=0 though so I tried



iwconfig wlp1s0 txpower off
iwconfig wlp1s0 txpower on


I tried:



nmcli radio wifi off
nmcli radio wifi on


I also checked the routing table which looks odd to me. There are four entries and two of these are duplicates. netstat -r



Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default 0.0.0.0 0.0.0.0 UG 0 0 0 enp0s31f6
default 0.0.0.0 0.0.0.0 U 0 0 0 wlp1s0
link-local 0.0.0.0 255.255.0.0 U 0 0 0 wlp1s0
link-local 0.0.0.0 255.255.0.0 U 0 0 0 enp0s31f6


When typing rfkill list
it says that wireless LAN is neither soft nor hard blocked.



I have rebooted multiple times after changes to settings and files were made.



I'm a Linux novice so any help and explanations are appreciated. Thanks!










share|improve this question





























    0















    After my Ubuntu (18.04) machine went to sleep it is unable to connect to wireless networks. No wireless networks shows up in the GUI. I've tried most of the solutions presented to me after many Google queries but nothing does the trick. It is possible that the battery ran out as well during sleep which might've caused the problem.



    I tried:



    sudo service network-manager restart 
    sudo systemctl restart network-manager


    but to no avail.



    sudo /etc/init.d/networking restart


    gets stuck but eventually says "Failed to start Raise network interfaces."



    I checked ifconfig -a which gave me five network interfaces. Before the malfunction I had three interfaces.
    lo, enp0s31f6 and wlp1s0 existed before.
    The newly added ones are enp0s31f6:avahi and wlp1s0:avahi.
    All of the interfaces are UP but only the avahi interfaces has IP addresses.



    I tried:



    ifconfig <interface> down
    ifconfig <interface> up


    for all of the network interfaces (only lo says RUNNING right now but wlp used to before sleeping)



    I tried changing /etc/network/interfaces to static and then back again



    auto lo
    iface lo inet loopback

    auto wlp1s0
    iface wlp1s0 inet dhcp

    auto enp0s31f6
    iface enp0s31f6 inet dhcp


    I tried sudo iwlist scan which shows me the network I want to connect to. iwconfig has data for wlp1s0 but lo and enp0s31f6 says "no wireless extensions". Tx-Power=0 though so I tried



    iwconfig wlp1s0 txpower off
    iwconfig wlp1s0 txpower on


    I tried:



    nmcli radio wifi off
    nmcli radio wifi on


    I also checked the routing table which looks odd to me. There are four entries and two of these are duplicates. netstat -r



    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    default 0.0.0.0 0.0.0.0 UG 0 0 0 enp0s31f6
    default 0.0.0.0 0.0.0.0 U 0 0 0 wlp1s0
    link-local 0.0.0.0 255.255.0.0 U 0 0 0 wlp1s0
    link-local 0.0.0.0 255.255.0.0 U 0 0 0 enp0s31f6


    When typing rfkill list
    it says that wireless LAN is neither soft nor hard blocked.



    I have rebooted multiple times after changes to settings and files were made.



    I'm a Linux novice so any help and explanations are appreciated. Thanks!










    share|improve this question

























      0












      0








      0








      After my Ubuntu (18.04) machine went to sleep it is unable to connect to wireless networks. No wireless networks shows up in the GUI. I've tried most of the solutions presented to me after many Google queries but nothing does the trick. It is possible that the battery ran out as well during sleep which might've caused the problem.



      I tried:



      sudo service network-manager restart 
      sudo systemctl restart network-manager


      but to no avail.



      sudo /etc/init.d/networking restart


      gets stuck but eventually says "Failed to start Raise network interfaces."



      I checked ifconfig -a which gave me five network interfaces. Before the malfunction I had three interfaces.
      lo, enp0s31f6 and wlp1s0 existed before.
      The newly added ones are enp0s31f6:avahi and wlp1s0:avahi.
      All of the interfaces are UP but only the avahi interfaces has IP addresses.



      I tried:



      ifconfig <interface> down
      ifconfig <interface> up


      for all of the network interfaces (only lo says RUNNING right now but wlp used to before sleeping)



      I tried changing /etc/network/interfaces to static and then back again



      auto lo
      iface lo inet loopback

      auto wlp1s0
      iface wlp1s0 inet dhcp

      auto enp0s31f6
      iface enp0s31f6 inet dhcp


      I tried sudo iwlist scan which shows me the network I want to connect to. iwconfig has data for wlp1s0 but lo and enp0s31f6 says "no wireless extensions". Tx-Power=0 though so I tried



      iwconfig wlp1s0 txpower off
      iwconfig wlp1s0 txpower on


      I tried:



      nmcli radio wifi off
      nmcli radio wifi on


      I also checked the routing table which looks odd to me. There are four entries and two of these are duplicates. netstat -r



      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
      default 0.0.0.0 0.0.0.0 UG 0 0 0 enp0s31f6
      default 0.0.0.0 0.0.0.0 U 0 0 0 wlp1s0
      link-local 0.0.0.0 255.255.0.0 U 0 0 0 wlp1s0
      link-local 0.0.0.0 255.255.0.0 U 0 0 0 enp0s31f6


      When typing rfkill list
      it says that wireless LAN is neither soft nor hard blocked.



      I have rebooted multiple times after changes to settings and files were made.



      I'm a Linux novice so any help and explanations are appreciated. Thanks!










      share|improve this question














      After my Ubuntu (18.04) machine went to sleep it is unable to connect to wireless networks. No wireless networks shows up in the GUI. I've tried most of the solutions presented to me after many Google queries but nothing does the trick. It is possible that the battery ran out as well during sleep which might've caused the problem.



      I tried:



      sudo service network-manager restart 
      sudo systemctl restart network-manager


      but to no avail.



      sudo /etc/init.d/networking restart


      gets stuck but eventually says "Failed to start Raise network interfaces."



      I checked ifconfig -a which gave me five network interfaces. Before the malfunction I had three interfaces.
      lo, enp0s31f6 and wlp1s0 existed before.
      The newly added ones are enp0s31f6:avahi and wlp1s0:avahi.
      All of the interfaces are UP but only the avahi interfaces has IP addresses.



      I tried:



      ifconfig <interface> down
      ifconfig <interface> up


      for all of the network interfaces (only lo says RUNNING right now but wlp used to before sleeping)



      I tried changing /etc/network/interfaces to static and then back again



      auto lo
      iface lo inet loopback

      auto wlp1s0
      iface wlp1s0 inet dhcp

      auto enp0s31f6
      iface enp0s31f6 inet dhcp


      I tried sudo iwlist scan which shows me the network I want to connect to. iwconfig has data for wlp1s0 but lo and enp0s31f6 says "no wireless extensions". Tx-Power=0 though so I tried



      iwconfig wlp1s0 txpower off
      iwconfig wlp1s0 txpower on


      I tried:



      nmcli radio wifi off
      nmcli radio wifi on


      I also checked the routing table which looks odd to me. There are four entries and two of these are duplicates. netstat -r



      Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
      default 0.0.0.0 0.0.0.0 UG 0 0 0 enp0s31f6
      default 0.0.0.0 0.0.0.0 U 0 0 0 wlp1s0
      link-local 0.0.0.0 255.255.0.0 U 0 0 0 wlp1s0
      link-local 0.0.0.0 255.255.0.0 U 0 0 0 enp0s31f6


      When typing rfkill list
      it says that wireless LAN is neither soft nor hard blocked.



      I have rebooted multiple times after changes to settings and files were made.



      I'm a Linux novice so any help and explanations are appreciated. Thanks!







      wireless 18.04 network-manager suspend






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 5 at 12:44









      cataclysmiccataclysmic

      11




      11






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131428%2flinux-unable-to-detect-and-connect-to-wifi-after-sleep-unexpected-shutdown%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131428%2flinux-unable-to-detect-and-connect-to-wifi-after-sleep-unexpected-shutdown%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局