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

Thread: [SOLVED] [12.04] No wifi working from sleep

  1. #1
    Join Date
    Apr 2008
    Beans
    77

    [SOLVED] [12.04] No wifi working from sleep

    Hello
    I've an old laptop (Lenovo 3000N200) which was fitted with an Intel 5100 wifi card. It ran trouble free for years.
    Lastly, the wifi card began to make huge transmitting errors and caught one packet on 1000.
    As I was unable to get my hand on a mini PCI card that fit inside the laptop and runs well, I switched back to the original Intel PRO/Wireless 3945ABG it has when it left the factory.
    Transmission problem are settled. Fine.
    Now, as usual, the wifi link start on boot (it is set up in /etc/network/interfaces) and runs fine. But when I get back from sleep, the iwconfig shows :
    Code:
    lo        no wireless extensions.
    
    wlan0     IEEE 802.11abg  ESSID:"Good ESSID OF the Wifi"  
              Mode:Managed  Frequency:2.412 GHz  Access Point: <MAC of the WIFI router>   
              Bit Rate=54 Mb/s   Tx-Power=15 dBm   
              Retry  long limit:7   RTS thr:off   Fragment thr:off
              Power Management:off
              Link Quality=70/70  Signal level=-29 dBm  
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:53   Missed beacon:0
    
    eth0      no wireless extensions.
    The ifconfig shows :
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1b:38:09:3f:5f  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:1000 
              Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
              Interruption:19 
    
    eth0:avahi Link encap:Ethernet  HWaddr 00:1b:38:09:3f:5f  
              inet adr:169.254.4.126  Bcast:169.254.255.255  Masque:255.255.0.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              Interruption:19 
    
    lo        Link encap:Boucle locale  
              inet adr:127.0.0.1  Masque:255.0.0.0
              adr inet6: ::1/128 Scope:Hôte
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              Packets reçus:265 erreurs:0 :0 overruns:0 frame:0
              TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:0 
              Octets reçus:26713 (26.7 KB) Octets transmis:26713 (26.7 KB)
    
    wlan0     Link encap:Ethernet  HWaddr 00:1b:77:a4:6f:74  
              inet adr:192.168.0.2  Bcast:192.168.0.255  Masque:255.255.255.0
              adr inet6: fe80::21b:77ff:fea4:6f74/64 Scope:Lien
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Packets reçus:40109 erreurs:0 :0 overruns:0 frame:0
              TX packets:38010 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:1000 
              Octets reçus:37598877 (37.5 MB) Octets transmis:8313314 (8.3 MB)
    but when I try to ping the default router :
    Code:
    root@biniou:~# ping 192.168.0.254
    PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
    From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
    From 192.168.0.2 icmp_seq=5 Destination Host Unreachable
    From 192.168.0.2 icmp_seq=7 Destination Host Unreachable
    From 192.168.0.2 icmp_seq=8 Destination Host Unreachable
    From 192.168.0.2 icmp_seq=11 Destination Host Unreachable
    ^C
    --- 192.168.0.254 ping statistics ---
    14 packets transmitted, 0 received, +7 errors, 100% packet loss, time 13071ms
    I get this on syslog :
    Code:
    Jun 29 12:20:25 biniou dhclient: No DHCPOFFERS received.
    Jun 29 12:20:25 biniou dhclient: No working leases in persistent database - sleeping.
    which puzzle me because the ifconfig shows that the card has an IP address set up...
    And the wifi LED on the laptop flashes like hell.
    The only way I've to make it work is to do :
    Code:
    sudo ifdown wlan0
    sudo ifup wlan0
    Could you help me find what is wrong and how I can make it work again ?
    Many thanks in advance for your help !
    Last edited by georgesgiralt; July 2nd, 2013 at 04:55 PM. Reason: Solved

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    21,194
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: [12.04] No wifi working from sleep

    Please put the laptop to sleep, refill the coffee cup and awake. Before you do anything, please run and post:
    Code:
    lsmod | grep iwl
    Is the driver iwl3945 loaded? All it dependencies, too?
    $ modinfo iwl3945
    filename: /lib/modules/3.8.0-25-generic/kernel/drivers/net/wireless/iwlegacy/iwl3945.ko
    firmware: iwlwifi-3945-2.ucode
    license: GPL
    author: Copyright(c) 2003-2011 Intel Corporation <ilw@linux.intel.com>
    version: in-tree:s
    description: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux
    srcversion: 3E1175EF45527087DD84DA7
    <snip>
    depends: iwlegacy,cfg80211,mac80211
    <snip>
    Is Network Manager removed?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Apr 2008
    Beans
    77

    Re: [12.04] No wifi working from sleep

    Hello !
    Thanks for your answer.
    Here is what I get BEFORE sleep :
    Code:
    root@biniou:~# lsmod | grep iwl
    iwl3945                79087  0 
    iwl_legacy             83098  1 iwl3945
    mac80211              506862  2 iwl3945,iwl_legacy
    cfg80211              205774  3 iwl3945,iwl_legacy,mac80211
    root@biniou:~# service network-manager status
    network-manager stop/waiting
    Everything is working ! Nice !
    And after sleep :
    Code:
    root@biniou:~# lsmod | grep iwl
    iwl3945                79087  0 
    iwl_legacy             83098  1 iwl3945
    mac80211              506862  2 iwl3945,iwl_legacy
    cfg80211              205774  3 iwl3945,iwl_legacy,mac80211
    root@biniou:~#
    As per NetworkManager :
    Code:
    root@biniou:~# service network-manager status
    network-manager stop/waiting
    root@biniou:~#
    The dhclient info in syslog may pertain to eth0 as it is "auto" in /etc/network/interfaces.
    Thanks for your help !

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    21,194
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: [12.04] No wifi working from sleep

    Network Manager and /etc/network/interfaces are designed to work and play well together. They often don't, as i suspect here:
    root@biniou:~# service network-manager status
    network-manager stop/waiting
    root@biniou:~#
    I strongly suggest you pick one or the other and abandon the other. If this is a stay at home computer, you can probably safely remove NM, as I have on this very laptop. If you need to connect down at the internet cafe, I'd recommend commenting out all the entries in /etc/network/interfaces except loopback and rely on NM.

    Thoughts?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  5. #5
    Join Date
    Apr 2008
    Beans
    77

    Re: [12.04] No wifi working from sleep

    Well,
    It has worked like that for years, and NM is disabled and not running. So I wonder why it should play a part here ?
    I need Nm when I travel with the computer and have to choose from various network. Once I've set up my mind, and if I have to stay a while on one place, I revert to a static interface definition and not on NM.
    Tomorrow I'll try to comment out all eth0 lines in interfaces and see what I get.
    If nothing changes I'll follow your advice to remove NM and see where I go.

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    21,194
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: [12.04] No wifi working from sleep

    Tomorrow I'll try to comment out all eth0 lines in interfaces and see what I get.
    I would certainly comment out eth0; however, isn't wireless what you are having trouble with? It might be enough to comment out 'auto eth0.' I'd certainly start there first.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  7. #7
    Join Date
    Apr 2008
    Beans
    77

    Re: [12.04] No wifi working from sleep

    Yess my trouble is with wireless. the commenting out eth0 part was to try to understand why dhclient complains in syslog. In order to ascertain the fact that the dhclient messages are from an unplugged eth0 or a non working wlan0 ....

  8. #8
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    21,194
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: [12.04] No wifi working from sleep

    Quote Originally Posted by georgesgiralt View Post
    Yess my trouble is with wireless. the commenting out eth0 part was to try to understand why dhclient complains in syslog. In order to ascertain the fact that the dhclient messages are from an unplugged eth0 or a non working wlan0 ....
    With auto eth0 declared and no connection, I believe the system will stumble to enable a non-enable-able (if that's a word!) interface. I suggest you comment out 'auto eth0' and see if the behavior improves.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  9. #9
    Join Date
    Apr 2008
    Beans
    77

    Re: [12.04] No wifi working from sleep

    I have commented out all entries except loopback and wifi interface.
    Reboot, then worked a bit. I will put it to sleep and see what goes when I come back from shopping in a couple of hours.

  10. #10
    Join Date
    Apr 2008
    Beans
    77

    Re: [12.04] No wifi working from sleep

    So, back from sleep.
    No network connection as "usual".... Iwconfig; ifconfig say I'm OK but ping still complain "host unreachable".
    No more dhclient messages in syslog.
    Actually no messages pertaining to network in syslog at all.
    Puzzled, baffled, disappointed.....

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
  •