Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Wireless internet dies after suspens

  1. #1
    Join Date
    Apr 2013
    Location
    North Sweden
    Beans
    99
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Wireless internet dies after suspens

    When I flipping down my screen on my laptop, I have chosen to make it go suspend/hibernate.
    But, when opening from that state, and getting back on. The internet is gone. It says my wireless network aren't in reach. And my wireless network is the only one I can see also (even though there are many others here around), it just completely stops working. So fixing that I always have to restart my computer. So suspend option for me seems to be useless so far.

    I wonder how i can fix this problem?

    I have a dual boot on the computer, using windows 7 and ubuntu 13.10. And it's on ubuntu 13.10 this problem is on.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless internet dies after suspens

    Please see here: http://ubuntuforums.org/showthread.p...hlight=suspend As I said in the thread, be sure to substitute your driver if it isn't iwlwifi. If in doubt, post back with the result of:
    Code:
    sudo lshw -C network
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    3,068
    Distro
    Ubuntu Development Release

    Re: Wireless internet dies after suspens

    To add to Chili555's post, some RealTek adapters require the "SUSPEND_MODULES" trick as well. Here is a test I've used. Determine the wifi module in use with "lsmod" in a terminal. In my case:
    Code:
    $ lsmod
    Module                  Size  Used by
    cfg80211              479757  0 
    hid_generic            12548  0 
    parport_pc             32701  0 
    ppdev                  17671  0 
    joydev                 17377  0 
    hid_logitech_dj        18581  0 
    usbhid                 53014  0 
    8192cu                542183  0 
    Then from an account with sudo privileges
    Code:
    sudo modprobe -r <wifi module> without the <> e.g. sudo modprobe -r 8192cu
    sudo modprobe 8192cu
    If the wifi wakes up, the "SUSPEND_MODULES" trick should work in my experience. As I understand it, the problem is that the wifi module should unload prior to suspending, then reload when resuming. Sometimes modules don't unload cleanly prior to suspending so can't be reloaded upon resuming because they're still loaded, or partially so. I've never used hibernate, haven't seen an advantage over a full reboot. YMMV on that, I guess.

  4. #4
    Join Date
    Apr 2013
    Location
    North Sweden
    Beans
    99
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Wireless internet dies after suspens

    Well, I don't understand a single thing.
    But I wrotesudo lshw -C network first and then I wrote lsmod

    Code:
    user@UB:~$ sudo lshw -C network
    [sudo] password for user: 
      *-network               
           description: Ethernet interface
           product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           vendor: Realtek Semiconductor Co., Ltd.
           physical id: 0
           bus info: pci@0000:02:00.0
           logical name: eth0
           version: 02
           serial: 64:31:50:84:04:74
           size: 10Mbit/s
           capacity: 100Mbit/s
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
           resources: irq:43 ioport:3000(size=256) memory:d0010000-d0010fff memory:d0000000-d000ffff memory:d0020000-d003ffff
      *-network
           description: Network controller
           product: BCM4313 802.11bgn Wireless Network Adapter
           vendor: Broadcom Corporation
           physical id: 0
           bus info: pci@0000:06:00.0
           version: 01
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list
           configuration: driver=bcma-pci-bridge latency=0
           resources: irq:17 memory:d2100000-d2103fff
      *-network
           description: Wireless interface
           physical id: 2
           logical name: wlan0
           serial: cc:52:af:0e:13:be
           capabilities: ethernet physical wireless
           configuration: broadcast=yes driver=brcmsmac driverversion=3.11.0-12-generic firmware=610.812 ip=192.168.0.102 link=yes multicast=yes wireless=IEEE 802.11bgn
    
    
    
    user@UB:~$ lsmod
    Module                  Size  Used by
    btrfs                 815968  0 
    raid6_pq               97812  1 btrfs
    zlib_deflate           26885  1 btrfs
    xor                    21411  1 btrfs
    ufs                    74590  0 
    qnx4                   13317  0 
    hfsplus               102646  0 
    hfs                    54590  0 
    minix                  36111  0 
    ntfs                   96882  0 
    msdos                  17332  0 
    jfs                   180909  0 
    xfs                   884143  0 
    libcrc32c              12615  2 xfs,btrfs
    reiserfs              245794  0 
    ext2                   72832  0 
    parport_pc             32701  0 
    ppdev                  17671  0 
    rfcomm                 69070  12 
    bnep                   19564  2 
    snd_hda_codec_hdmi     41276  1 
    joydev                 17377  0 
    btusb                  28267  0 
    hid_logitech_dj        18581  0 
    arc4                   12608  2 
    brcmsmac              562767  0 
    cordic                 12574  1 brcmsmac
    brcmutil               15618  1 brcmsmac
    b43                   387185  0 
    mac80211              596969  2 b43,brcmsmac
    bluetooth             371874  22 bnep,btusb,rfcomm
    hid_generic            12548  0 
    cfg80211              479757  3 b43,brcmsmac,mac80211
    ssb                    57932  1 b43
    hp_wmi                 14062  0 
    sparse_keymap          13948  1 hp_wmi
    uvcvideo               80885  0 
    videobuf2_vmalloc      13216  1 uvcvideo
    usbhid                 53014  0 
    videobuf2_memops       13362  1 videobuf2_vmalloc
    videobuf2_core         40469  1 uvcvideo
    hid                   101512  4 hid_generic,usbhid,hid_logitech_dj
    videodev              133390  2 uvcvideo,videobuf2_core
    kvm                   431315  0 
    microcode              23518  0 
    snd_hda_codec_idt      50341  1 
    psmouse                97626  0 
    serio_raw              13413  0 
    k10temp                13126  0 
    sp5100_tco             13979  0 
    edac_core              62312  0 
    edac_mce_amd           22617  0 
    snd_hda_intel          48171  7 
    snd_hda_codec         188738  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
    snd_hwdep              13602  1 snd_hda_codec
    snd_pcm               102033  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
    snd_seq_midi           13324  0 
    snd_seq_midi_event     14899  1 snd_seq_midi
    snd_rawmidi            30095  1 snd_seq_midi
    snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
    snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
    snd_timer              29433  2 snd_pcm,snd_seq
    snd                    69141  24 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
    radeon               1402449  4 
    bcma                   46670  3 b43,brcmsmac
    ttm                    83995  1 radeon
    lp                     17759  0 
    drm_kms_helper         52651  1 radeon
    parport                42299  3 lp,ppdev,parport_pc
    drm                   296739  6 ttm,drm_kms_helper,radeon
    i2c_algo_bit           13413  1 radeon
    soundcore              12680  1 snd
    i2c_piix4              22106  0 
    ohci_pci               13561  0 
    shpchp                 37032  0 
    wmi                    19070  1 hp_wmi
    video                  19318  0 
    mac_hid                13205  0 
    ahci                   25819  2 
    libahci                31898  1 ahci
    r8169                  67341  0 
    mii                    13934  1 r8169
    user@UB:~$

  5. #5
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless internet dies after suspens

    This technique sometimes, but not always works. We are going to add a file that tells the system that we have a module (a.k.a. driver) that we want to explicitly unload on suspend and reload on resume. The driver we'll unload and reload is your wireless driver brcmsmac. Let's use the text editor gedit to write a file.
    Code:
    sudo gedit /etc/pm/config.d/config
    Add one line:
    Code:
    SUSPEND_MODULES="brcmsmac"
    Proofread carefully, save and close gedit. Reboot.

    How does it work now?

    By the way, there is some controversy about the best driver for your device in Ubuntu 13.10. How does it work for you?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  6. #6
    Join Date
    Apr 2013
    Location
    North Sweden
    Beans
    99
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Wireless internet dies after suspens

    Quote Originally Posted by chili555 View Post
    This technique sometimes, but not always works. We are going to add a file that tells the system that we have a module (a.k.a. driver) that we want to explicitly unload on suspend and reload on resume. The driver we'll unload and reload is your wireless driver brcmsmac. Let's use the text editor gedit to write a file.
    Code:
    sudo gedit /etc/pm/config.d/config
    Add one line:
    Code:
    SUSPEND_MODULES="brcmsmac"
    Proofread carefully, save and close gedit. Reboot.

    How does it work now?

    By the way, there is some controversy about the best driver for your device in Ubuntu 13.10. How does it work for you?
    Alright, I just tried this, I made that command in Terminal and a gedit window popped up and I copied+pasted that code and saved the file.
    Then I tried put down the laptops screen again so it goes to the suspend mode, then opened it up again and pressed the power button so it starts up from the suspend mode. But still, it goes to disconnect and force me to restart computer in order to get network to work again.

    Also your last question I don't understand. I had Ubuntu 12.04.3 LTS on this computer for some days ago and it worked fine what I remember.
    But since I made dual boot with ubuntu 13.10 and windows 7 it doesn't work.

    On Windows 7 I installed some drivers I found on internet, wasn't sure if it's correct but it made the wireless work on Windows 7 anyway.

    For Ubuntu I haven't downloaded anything because I got no idea what I even need. I just had it plugged in with wire as it first had problem with wireless network, but when I then made update the wireless network worked.
    And well, now it sure works but not when after suspend.

    [edit]
    This is how it looks when it's disconnected after suspent
    http://oi41.tinypic.com/315cp3s.jpg
    Last edited by Niemil; November 18th, 2013 at 10:54 PM.

  7. #7
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless internet dies after suspens

    I apologize if my question was unclear. There are two possible drivers for your wireless device. You are using one of them, brcmsmac. Does your wireless connectivity work well? That's really all I am asking.

    What it did under previous Ubuntu versions or under Windows is not what I'm asking. Does it work well now?

    One other note; I asked that you reboot after you wrote the file, not simply suspend. Would you please?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  8. #8
    Join Date
    Apr 2013
    Location
    North Sweden
    Beans
    99
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Wireless internet dies after suspens

    Yeah I also did the suspend after reboot.
    Now I found some update stuffs though. On "Additional drivers", there is one that I cannot select, that says it doesn't work, I think it's the one I have on Windows 7.
    Then there is one driver named "Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (propiertary)".
    I will try apply that one.

    I also tried apply that one earlier just for some minutes ago, but my internet went crazy and I think DNS died or something because Facebook were the only site I could connect, I could chat with my friend but couldn't access youtube or ubuntuforums at all.
    I unplugged the wifi sender/router or whatever it is and plugged it back, which usually fixing that.

    Otherwise, yes, my internet/wifi working good, always been doing that except sometimes problems with DNS or something.
    Now I will apply this driver and hope it will be applied correctly now and then I will restart computer again and try suspend.

  9. #9
    Join Date
    Apr 2013
    Location
    North Sweden
    Beans
    99
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: Wireless internet dies after suspens

    Now I have tried apply that wireless driver that ubuntu found, but it still doesn't work.
    As I said, the wireless network works fine when I start the computer. But after suspend it just doesn't work.

    The only noticable change I have found during this change of driver, is the wireless button I have on my laptop. I remember when I started from suspend before (atleast very early today morning, when I made this thread), then the button were making orange color when I started from suspend.
    Now when I start from suspend, it's orange for just a second, and it goes fast back to blue, which is the color at the button now when internet is on and working.

    However, it still just are disconnected and all after suspend.

  10. #10
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Wireless internet dies after suspens

    So your internet was working well except for suspend and now, because I simply asked a question, you decided to try a different driver and now, as you say:
    I also tried apply that one earlier just for some minutes ago, but my internet went crazy and I think DNS died or something because Facebook were the only site I could connect, I could chat with my friend but couldn't access youtube or ubuntuforums at all.
    I'm sorry I even said a word. I just want to know if it was working as expected. I didn't intend to see if we could wreck your system!

    Did you repair it? Do we have some work to do?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

Page 1 of 3 123 LastLast

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
  •