Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Internet fails when resuming from sleep or hibernation

  1. #1
    Join Date
    Jul 2010
    Beans
    135

    Internet fails when resuming from sleep or hibernation

    When I resume the computer from sleep (or hibernation), the internet (ethernet adapter -- not wireless) does not work. I must restart the computer in order to get it to work again. I have an HP Pavilion dv4 notebook with Lucid Lynx and all updates installed.

    Thank you in advance for your help!
    Last edited by lbrty; August 24th, 2010 at 05:44 PM.

  2. #2
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet fails when resuming from sleep or hibernation

    That's most likely because your network modules (= network drivers) get unloaded during suspend/resume ...

    Can you please open a terminal and then copy & paste the output of this command:

    Code:
    sudo lspci
    sudo lsusb
    When the system asks for a password: It's your own password. And there won't be any feedback when you type it -- no asterisks, no question marks, nothing. Just type in your password blindly and hit the "enter" key.

    If the system complains that it does not know such a command, please install these packages and then try again:
    Code:
    sudo apt-get install pciutils usbutils
    These commands (lspci, lsusb) should list all PCI and USB devices in your laptop ... this should help us find which modules (= drivers) have to be stopped from unloading at suspend/resume.

    How can they be stopped?

    If you know their names you can insert them into this file:
    /etc/default/acpi-support

    To edit that file you need to open it as root, e.g. via this command:
    Code:
    gksu gedit /etc/default/acpi-support


    In that file there is a line that says:
    Code:
    # Add modules to this list to leave them in the kernel over suspend/resume
    MODULES_WHITELIST=""
    Once you know the name of your network driver modules you will have to enter them into that line, separated by spaces.

    But before we could do that you will need to give us the output of "lspci" and "lsusb" so we know what hardware you have in your laptop ...

  3. #3
    Join Date
    Jun 2010
    Location
    Quebec
    Beans
    29
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Internet fails when resuming from sleep or hibernation

    I had the same problem, but only on 64-bit. That is, if your problem is that it can't find the (wireless) network. If such is the case, I suggest that you try what worked for me: when this problem happens, turn off your wireless card (assuming you have a switch or a key combination to do so) and then turn it back on again. Input the info for your network again.

    For some reason this worked for me, but I have an ASUS UL30a so your mileage may vary.

    EDIT: to clarify, since I did that, I have not once had that problem.

  4. #4
    Join Date
    Jul 2010
    Beans
    135

    Re: Internet fails when resuming from sleep or hibernation

    @scorp123
    Thanks for the reply!

    I did everything as suggested and the internet does not work when resuming.

    I then copied the line below from the command results into this file acpi-support with this command: gksu gedit /etc/default/acpi-support

    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

    # Add modules to this list to leave them in the kernel over suspend/resume
    MODULES_WHITELIST="03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)"

    I then saved the file and tested it out.

    Please let me know what I missed. Thanks!

    Here are the results from the commands below
    sudo lspci
    sudo lsusb

    Code:
    sudo lspci
    00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
    00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
    00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
    00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
    00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
    00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
    00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
    00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
    00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
    00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
    00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
    00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
    02:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
    04:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
    04:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller
    04:00.3 System peripheral: JMicron Technology Corp. MS Host Controller
    04:00.4 System peripheral: JMicron Technology Corp. xD Host Controller
    sudo lsusb
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 002: ID 045e:00d1 Microsoft Corp. Optical Mouse with Tilt Wheel
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 003: ID 174f:1107 Syntek 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    @Thryn
    Thanks for reply! I have a 32-bit OS and I do not use the wireless function on the notebook. This is for a wired connection (ethernet).

  5. #5
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet fails when resuming from sleep or hibernation

    Quote Originally Posted by linuxliberty View Post
    I then copied the line below from the command results into this file acpi-support with this command: gksu gedit /etc/default/acpi-support
    NOOOO!

    Don't do such stuff if you don't know what you're doing!!!


    That "lspci" command will simply spit out the hardware you have BUT YOU DON'T ENTER THAT STUFF INTO THE FILE.

    Patience. Please.

    Once we know the hardware we now have to find the driver names, OK?

    But please undo that crazy editing you have done!

  6. #6
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet fails when resuming from sleep or hibernation

    Please give me the output of this command:
    Code:
    sudo lsmod
    This will spit out all the drivers that are loaded. It should be easy to spot the ones we need now that we know what hardware you have (e.g. the driver for your Broadcom chip will most likely be named bcmxxx-something ... )


    Example:

    One stupid Fujitsu-Siemens laptop that I have here has the same problem. It has a Atheros WiFi chip. So "lspci" will say something like "00x0xxx Atheros Electronics Wireless Network Controller".

    That's the hardware. But to find out what needs to be put into that "acpi-support" file you look at the list of loaded drivers, e.g. this command:
    Code:
    sudo lsmod
    And taaddaaaa ... in that list there was a driver called ath_pci

    So that's what in my case needed to go into the MODULES_WHITELIST= line


    So please ... remove that change you have done and let's find out what driver names need to go in there, OK?

    The reason I asked for "lspci" and "lsusb" is that it is otherwise pointless to look at "lsmod" if we don't know what hardware is in the system ...

    I hope this clears up the misunderstanding. English is not my native language.
    Last edited by scorp123; August 24th, 2010 at 12:10 AM.

  7. #7
    Join Date
    Jul 2010
    Beans
    135

    Re: Internet fails when resuming from sleep or hibernation

    I removed the line from the file acpi-support. Looking forward to your reply! Thank.

  8. #8
    Join Date
    Jan 2010
    Location
    Not Texas
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Lightbulb Re: Internet fails when resuming from sleep or hibernation

    This is not a substitute to any of the great advice being given out here, but sometimes I would have problems when coming out of suspend because I was now connecting to a different WIFI connection. Like, I suspended my computer at home, where I was on my home's wifi, let's say it's name is Home_Internet... Then I wake up my computer at school, where the WIFI is the school's, let's say it's name is School_Auto_login... Until I disconnect from my home wifi and connect to school, the network manager will try connecting [repeatedly] to the home wifi. Obviously it will fail.

  9. #9
    Join Date
    Jul 2010
    Beans
    135

    Re: Internet fails when resuming from sleep or hibernation

    @scorp123
    Broadcom is the wireless network adapter (not using, no issues)
    Realtek is the wired network adapter (the one I use and does not work when resuming the computer from sleep mode)

    Code:
    sudo lsmod
    Module                  Size  Used by
    binfmt_misc             6587  1 
    ppdev                   5259  0 
    vboxnetadp              6326  0 
    vboxnetflt             15280  0 
    vboxdrv               191010  2 vboxnetadp,vboxnetflt
    snd_hda_codec_intelhdmi    11622  1 
    snd_hda_codec_idt      51978  1 
    fbcon                  35102  71 
    tileblit                2031  1 fbcon
    font                    7557  1 fbcon
    bitblit                 4707  1 fbcon
    softcursor              1189  1 bitblit
    vga16fb                11385  0 
    vgastate                8961  1 vga16fb
    snd_hda_intel          22037  2 
    snd_hda_codec          74201  3 snd_hda_codec_intelhdmi,snd_hda_codec_idt,snd_hda_intel
    snd_hwdep               5412  1 snd_hda_codec
    snd_pcm_oss            35308  0 
    snd_mixer_oss          13746  1 snd_pcm_oss
    arc4                    1153  2 
    snd_pcm                70886  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_seq_dummy           1338  0 
    snd_seq_oss            26726  0 
    i915                  285891  3 
    drm_kms_helper         29297  1 i915
    snd_seq_midi            4557  0 
    drm                   163098  4 i915,drm_kms_helper
    snd_rawmidi            19056  1 snd_seq_midi
    snd_seq_midi_event      6003  2 snd_seq_oss,snd_seq_midi
    snd_seq                47263  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    snd_timer              19098  2 snd_pcm,snd_seq
    snd_seq_device          5700  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    b43                   164132  0 
    mac80211              205146  1 b43
    uvcvideo               57022  0 
    videodev               34361  1 uvcvideo
    snd                    54148  17 snd_hda_codec_intelhdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    intel_agp              24415  2 i915
    v4l1_compat            13251  2 uvcvideo,videodev
    jmb38x_ms               7407  0 
    i2c_algo_bit            5028  1 i915
    psmouse                63245  0 
    serio_raw               3978  0 
    agpgart                31788  2 drm,intel_agp
    cfg80211              126517  2 b43,mac80211
    soundcore               6620  1 snd
    snd_page_alloc          7172  2 snd_hda_intel,snd_pcm
    sdhci_pci               5502  0 
    sdhci                  15654  1 sdhci_pci
    memstick                8237  1 jmb38x_ms
    joydev                  8708  0 
    hp_accel               11144  0 
    video                  17375  1 i915
    output                  1871  1 video
    lirc_ene0100            6600  0 
    lirc_dev                8884  1 lirc_ene0100
    lis3lv02d               6096  1 hp_accel
    input_polldev           2482  1 lis3lv02d
    led_class               2864  3 b43,sdhci,hp_accel
    lp                      7028  0 
    parport                32635  2 ppdev,lp
    usbhid                 36174  0 
    hid                    67032  1 usbhid
    ahci                   32232  2 
    r8169                  34300  0 
    mii                     4381  1 r8169
    ssb                    38671  1 b43
    @texaswriter
    Thanks for your reply! I am using a wired connection (ethernet).

  10. #10
    Join Date
    Jul 2010
    Beans
    135

    Re: Internet fails when resuming from sleep or hibernation

    @scorp123
    I found a quick and easy way of finding the driver for the ethernet (Realtek) adapter. Right click the NetworkManager Applet in the system tray and click Connect Information and the information is listed under Driver. The information matches the last command to display the drivers. Driver: r8169

    What do you think? What should the next step be? Thanks!

Page 1 of 4 123 ... LastLast

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
  •