Results 1 to 6 of 6

Thread: Wifi no auto reconnect after suspend

  1. #1
    Join Date
    Mar 2009
    Location
    Here
    Beans
    44
    Distro
    Ubuntu 18.04 Bionic Beaver

    Unhappy Wifi no auto reconnect after suspend

    When the system wakes up after a suspend the wifi connection has been dropped.

    This was not always the case, until recently the wifi would remain connected through the suspend.

    Can someone please help me to either:-

    a) Get it to stay connected throughout the suspend?

    or

    b) Automatically reconnect after waking up from suspend?
    Last edited by Euanbuntu; August 25th, 2019 at 07:09 AM.
    Please help, it's dark in here!

  2. #2
    Join Date
    Mar 2009
    Location
    Here
    Beans
    44
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Wifi no auto reconnect after suspend

    Please help me - I have no idea what is going on
    Please help, it's dark in here!

  3. #3
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,539
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Wifi no auto reconnect after suspend

    When it goes into suspend, it turns off some if not most peripherals to preserve the battery. You may be able to change the settings.
    More info can be found here, https://askubuntu.com/questions/28898/what-is-suspend
    Cheers,


    The Linux Command Line at http://linuxcommand.org/

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Wifi no auto reconnect after suspend

    This was a problem for me in 14.04, I think, though I've not seen it for a long time and certainly not in 18.04.
    However, there was bug raised for this and a solution shown in the shell script which I show below, so copy that save it as NetworkManagerRestart.sh script and add it to the /lib/systemd/system-sleep folder, as mentioned in the file text.
    Code:
    #!/bin/bash
    # Created by Hans Deragon (hans@deragon.biz), 2015-05-14 07:31:11 EDT
    
    # INSTALLATION
    #
    #   - Move this script under: /lib/systemd/system-sleep
    #   - chmod +x /lib/systemd/system-sleep/NetworkManagerRestart.sh
    
    # DESCRIPTION
    #
    #   Restarting the NetworkManager as a workaround for the following bug:
    # 
    #   ∙ https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1380480
    
    
    # 3 seconds delay is necessary apparently.  May be shorter; needs to be
    # tested.  But if no delay is implemented, nm-applet crashes.  Seams that we
    # need to leave the system resume completely before attempting a restart of
    # NetworkManager.
    (sleep 3; systemctl restart NetworkManager.service) &
    disown
    This worked faultlessly for me back in 14.04; I hope it may also work for you.

  5. #5
    Join Date
    Mar 2009
    Location
    Here
    Beans
    44
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Wifi no auto reconnect after suspend

    Thank you for your help him610, but sadly I am not looking for a brief explanation of what suspend is, I'm looking for how to get my wifi to reconnect after one... if you have any ideas how I might do that, please let me know!
    Last edited by Euanbuntu; August 28th, 2019 at 09:28 AM.
    Please help, it's dark in here!

  6. #6
    Join Date
    Mar 2009
    Location
    Here
    Beans
    44
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Wifi no auto reconnect after suspend

    Thanks for this ajgreeny! I will look at both your solution and the other suggestion and see what happens!
    Please help, it's dark in here!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •